Permalink
Browse files

eliminate some warnings

  • Loading branch information...
dchelimsky committed Nov 7, 2010
1 parent 80ee73d commit 45e284180c7b7b5f3047e8312a9b9fa6dd1c76ad
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.