Navigation Menu

Skip to content

Commit

Permalink
Remove a level of include chaining.
Browse files Browse the repository at this point in the history
No need to trigger an additional include on inclusion.
  • Loading branch information
myronmarston committed Dec 24, 2012
1 parent b76bf4f commit c7005c6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/rspec/core/let.rb
Expand Up @@ -94,16 +94,12 @@ def let!(name, &block)
end

# @private
module ExampleMethods
# @private
def __memoized
@__memoized ||= {}
end
def __memoized
@__memoized ||= {}
end

def self.included(mod)
mod.extend ExampleGroupMethods
mod.__send__ :include, ExampleMethods
end
end
end
Expand Down

0 comments on commit c7005c6

Please sign in to comment.