Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit c2b8e3931f6688859a0324f81c1d25ebd9e7828b 1 parent f9d3015
@alindeman alindeman authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rspec/rails/adapters.rb
View
4 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)
Please sign in to comment.
Something went wrong with that request. Please try again.