Skip to content

Commit

Permalink
Fixes the build on 1.8.7 where method names are returned as strings
Browse files Browse the repository at this point in the history
  • Loading branch information
alindeman committed Apr 7, 2013
1 parent 810dcc1 commit bf77a17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rspec/rails/adapters.rb
Expand Up @@ -24,8 +24,8 @@ def assertion_instance
end

assertion_modules.each do |mod|
mod.instance_methods.each do |method|
next if method == :method_missing
mod.public_instance_methods.each do |method|
next if method == :method_missing || method == "method_missing"
class_eval <<-EOM, __FILE__, __LINE__ + 1
def #{method}(*args, &block)
assertion_instance.send(:#{method}, *args, &block)
Expand Down

0 comments on commit bf77a17

Please sign in to comment.