Skip to content
Browse files

eliminate some warnings

  • Loading branch information...
1 parent 80ee73d commit 45e284180c7b7b5f3047e8312a9b9fa6dd1c76ad @dchelimsky dchelimsky committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rspec/mocks/argument_expectation.rb
View
2 lib/rspec/mocks/argument_expectation.rb
@@ -5,7 +5,7 @@ class ArgumentExpectation
def initialize(*args, &block)
@args = args
- @matchers_block = block if args.empty?
+ @matchers_block = args.empty? ? block : nil
@match_any_args = false
@matchers = nil

0 comments on commit 45e2841

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