Skip to content

Commit

Permalink
Method calls with expanded arrays require parentheses
Browse files Browse the repository at this point in the history
This fixes the following warning:

    lib/rspec/mocks/message_expectation.rb:43: warning: `*' interpreted
    as argument prefix

- Closes rspec#30.
  • Loading branch information
gioele authored and dchelimsky committed Nov 21, 2010
1 parent be136a4 commit 46e8577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/mocks/message_expectation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def build_child(expected_from, method_block, expected_received_count, opts={})
new_gen = error_generator.clone
new_gen.opts = opts
child.error_generator = new_gen
child.clone_args_to_yield *@args_to_yield
child.clone_args_to_yield(*@args_to_yield)
child
end

Expand Down

0 comments on commit 46e8577

Please sign in to comment.