Logo Rails Bling
Logo Inverted Logo
  • Categories
  • async
  • development
  • evented
  • federation
  • floss
  • git
  • Go
  • howto
  • humanitarian
  • logging
  • refugees
  • resque
  • rspec
  • ruby
  • threaded
  • tools
Hero Image
Introducing rspec-stubbed_env

ENV stubbing via a shared context for more powerful tests. Installation Add this line to your application’s Gemfile: gem 'rspec-stubbed_env', group: :test And then execute: $ bundle Or install it yourself as: $ gem install rspec-stubbed_env You must configure RSpec to use the :expect syntax, or some compatible alternative. RSpec.configure do |config| config.expect_with :rspec do |c| c.syntax = :expect end end Require the library in your spec/test helper somewhere: require 'rspec/stubbed_env' Usage ENV stubbing:

October 6, 2018 Read
Hero Image
Introducing rspec-block_is_expected

Allows you to use block_is_expected similarly to how you would use is_expected if a block was wrapping the subject. This gem does one very simple thing very well. It allows you to use block_is_expected similarly to how you would use is_expected if a block was wrapping the subject. Supports the same versions of Ruby that RSpec does, 1.8.7 - current ruby-head, as well as the JRuby equivalents. subject { Integer(nil) } it('raises') { block_is_expected.

October 1, 2018 Read
Hero Image
Introducing rspec-pending_for

Mark specs pending or skipped for specific Ruby engine (e.g. MRI or JRuby) / version combinations. Easiest to just show you: it("blah is blah") do pending_for(engine: "rbx") pending_for(engine: "ruby", versions: "2.1.5") pending_for(engine: "jruby", versions: "2.2.2", reason: "due to a bug in Ruby") pending_for(engine: "ruby", versions: "2.0.0", reason: "because I don't have the time") expect("blah").to eq "blah" end Installation Add this line to your application’s Gemfile: gem 'rspec-pending_for' And then execute:

October 22, 2015 Read
Navigation
  • About
  • Skills
  • Experience
  • Projects
Contact me:
  • peter.boling a@t gmail.com
  • +1-925-252-5351

Toha Theme Logo Toha (tweaked by @pboling)
© 2022. All Rights Reserved.
Powered by Hugo Logo