Skip to content

Commit

Permalink
handle 1.8.7 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed May 30, 2013
1 parent 518f6a9 commit 71d1262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/matchers/built_in/be.rb
Expand Up @@ -136,7 +136,7 @@ def initialize(*args, &block)
def matches?(actual)
@actual = actual

if actual.private_methods.include? predicate
if actual.private_methods.include?(predicate.to_sym) || actual.private_methods.include?(predicate.to_s)
@error_message = "but it's a private method"
return
end
Expand Down

0 comments on commit 71d1262

Please sign in to comment.