Skip to content

Commit

Permalink
eliminate some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Nov 7, 2010
1 parent 80ee73d commit 45e2841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/mocks/argument_expectation.rb
Expand Up @@ -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

Expand Down

0 comments on commit 45e2841

Please sign in to comment.