Sha256: a6b91fd44ab05d2bc59ea93587dd316fe20edc4f6e675a6e6dda7e5a98afe268

Contents?: true

Size: 696 Bytes

Versions: 117

Compression:

Stored size: 696 Bytes

Contents

# stub frameworks like to gum up Object, so this is deliberately
# set NOT to run so that you don't accidentally run it when you
# run this dir.

# To run it, stand in this directory and say:
#
#   RUN_RR_EXAMPLE=true ruby ../bin/spec mocking_with_rr.rb

if ENV['RUN_RR_EXAMPLE']
  Spec::Runner.configure do |config|
    config.mock_with :rr
  end
  describe "RR framework" do
    it "should should be made available by saying config.mock_with :rr" do
      o = Object.new
      mock(o).msg("arg")
      o.msg
    end
    it "should should be made available by saying config.mock_with :rr" do
      o = Object.new
      mock(o) do |m|
        m.msg("arg")
      end
      o.msg
    end
  end
end

Version data entries

117 entries across 117 versions & 20 rubygems

Version Path
deckshuffler-0.0.2 vendor/plugins/rspec/failing_examples/mocking_with_rr.rb
picolena-0.0.99 app_generators/picolena/templates/vendor/plugins/rspec/failing_examples/mocking_with_rr.rb
picolena-0.1.1 rails_plugins/rspec/failing_examples/mocking_with_rr.rb
picolena-0.1.0 rails_plugins/rspec/failing_examples/mocking_with_rr.rb
picolena-0.1.3 rails_plugins/rspec/failing_examples/mocking_with_rr.rb
picolena-0.1.4 rails_plugins/rspec/failing_examples/mocking_with_rr.rb
picolena-0.1.2 rails_plugins/rspec/failing_examples/mocking_with_rr.rb
picolena-0.1.6 rails_plugins/rspec/failing_examples/mocking_with_rr.rb
picolena-0.1.5 rails_plugins/rspec/failing_examples/mocking_with_rr.rb
picolena-0.1.7 rails_plugins/rspec/failing_examples/mocking_with_rr.rb
picolena-0.1.8 rails_plugins/rspec/failing_examples/mocking_with_rr.rb
pictrails-0.5.0 vendor/plugins/rspec/failing_examples/mocking_with_rr.rb
radiant-0.6.5.1 vendor/plugins/rspec/failing_examples/mocking_with_rr.rb
radiant-0.6.5 vendor/plugins/rspec/failing_examples/mocking_with_rr.rb
radiant-0.6.6 vendor/plugins/rspec/failing_examples/mocking_with_rr.rb
radiant-0.6.7 vendor/plugins/rspec/failing_examples/mocking_with_rr.rb
radiant-0.6.8 vendor/plugins/rspec/failing_examples/mocking_with_rr.rb
radiant-0.6.9 vendor/plugins/rspec/failing_examples/mocking_with_rr.rb
rspec-0.0.10 failing_examples/mocking_with_rr.rb
rspec-1.1.10 failing_examples/mocking_with_rr.rb