Skip to content
Browse files

better location for requires

  • Loading branch information...
1 parent 3eff88d commit 092f785286b47d817a10405bc903a2d124ef77dc @dchelimsky dchelimsky committed Jul 3, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/rspec/mocks.rb
  2. +1 −0 lib/rspec/mocks/extensions.rb
  3. +0 −1 lib/rspec/mocks/message_expectation.rb
View
2 lib/rspec/mocks.rb
@@ -1,5 +1,5 @@
require 'rspec/mocks/framework'
-require 'rspec/mocks/extensions/object'
+require 'rspec/mocks/extensions'
require 'rspec/mocks/version'
module RSpec
View
1 lib/rspec/mocks/extensions.rb
@@ -1 +1,2 @@
require 'rspec/mocks/extensions/object'
+require 'rspec/mocks/extensions/instance_exec'
View
1 lib/rspec/mocks/message_expectation.rb
@@ -88,7 +88,6 @@ def and_yield(*args, &block)
end
if block
- require 'rspec/mocks/extensions/instance_exec'
@eval_context = Object.new
@eval_context.extend RSpec::Mocks::InstanceExec
yield @eval_context

0 comments on commit 092f785

Please sign in to comment.
Something went wrong with that request. Please try again.