Skip to content

Commit

Permalink
better location for requires
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Jul 3, 2010
1 parent 3eff88d commit 092f785
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rspec/mocks.rb
@@ -1,5 +1,5 @@
require 'rspec/mocks/framework' require 'rspec/mocks/framework'
require 'rspec/mocks/extensions/object' require 'rspec/mocks/extensions'
require 'rspec/mocks/version' require 'rspec/mocks/version'


module RSpec module RSpec
Expand Down
1 change: 1 addition & 0 deletions lib/rspec/mocks/extensions.rb
@@ -1 +1,2 @@
require 'rspec/mocks/extensions/object' require 'rspec/mocks/extensions/object'
require 'rspec/mocks/extensions/instance_exec'
1 change: 0 additions & 1 deletion lib/rspec/mocks/message_expectation.rb
Expand Up @@ -88,7 +88,6 @@ def and_yield(*args, &block)
end end


if block if block
require 'rspec/mocks/extensions/instance_exec'
@eval_context = Object.new @eval_context = Object.new
@eval_context.extend RSpec::Mocks::InstanceExec @eval_context.extend RSpec::Mocks::InstanceExec
yield @eval_context yield @eval_context
Expand Down

0 comments on commit 092f785

Please sign in to comment.