Permalink
Browse files

Merge pull request #764 from sobrinho/master

Remove unnecessary assignment from RSpec::Core::Let.get_constant_or_yield
  • Loading branch information...
2 parents 93a5bf6 + ae4546c commit c5786976bfc37fd3960e380b60566a12aeb846c3 @myronmarston myronmarston committed Jan 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rspec/core/let.rb
View
@@ -49,7 +49,7 @@ def self.get_constant_or_yield(example_group, name)
# uses a `let` should get its own `LetDefinitions` module.
def self.get_constant_or_yield(example_group, name)
if example_group.const_defined?(name, (check_ancestors = false))
- example_group.const_get(name, (check_ancestors = false))
+ example_group.const_get(name, check_ancestors)
else
yield
end

0 comments on commit c578697

Please sign in to comment.