Skip to content

Commit

Permalink
Remove unused method.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Jun 2, 2012
1 parent d1669a8 commit f77357e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/rspec/mocks/stub_const.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,6 @@ def self.stubbers
@stubbers ||= []
end

def self.find_original_value_for(constant_name)
stubber = stubbers.find { |s| s.full_constant_name == constant_name }
yield stubber.original_value if stubber
self
end

def self.raise_on_invalid_const
lambda do |const_name, failed_name|
raise "Cannot stub constant #{failed_name} on #{const_name} " +
Expand Down

0 comments on commit f77357e

Please sign in to comment.