Permalink
Browse files

Fixes the build on 1.8.7 where method names are returned as strings

  • Loading branch information...
1 parent 810dcc1 commit bf77a171a0431ac1d60986a1e9803fa340945d16 @alindeman alindeman committed Apr 7, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rspec/rails/adapters.rb
@@ -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)

0 comments on commit bf77a17

Please sign in to comment.