Skip to content
Browse files

silence more warnings

  • Loading branch information...
1 parent fe40efd commit 5d8a2333c0656744c577ce9843e2ddda278e6235 @dchelimsky dchelimsky committed Apr 22, 2012
Showing with 4 additions and 4 deletions.
  1. +3 −3 lib/rspec/matchers/matcher.rb
  2. +1 −1 spec/rspec/matchers/yield_spec.rb
View
6 lib/rspec/matchers/matcher.rb
@@ -223,14 +223,14 @@ def does_not_match?(actual)
end
def respond_to?(method, include_private=false)
- super || @matcher_execution_context.respond_to?(method, include_private)
+ super || matcher_execution_context.respond_to?(method, include_private)
end
private
def method_missing(method, *args, &block)
- if @matcher_execution_context.respond_to?(method)
- @matcher_execution_context.send method, *args, &block
+ if matcher_execution_context.respond_to?(method)
+ matcher_execution_context.send method, *args, &block
else
super(method, *args, &block)
end
View
2 spec/rspec/matchers/yield_spec.rb
@@ -11,7 +11,7 @@ def _yield_with_no_args
end
def _yield_with_args(*args)
- yield *args
+ yield(*args)
end
end

0 comments on commit 5d8a233

Please sign in to comment.
Something went wrong with that request. Please try again.