Permalink
Browse files

fix warnings

- #90
  • Loading branch information...
1 parent 8c6ffba commit 45430829e53308eb8998f3a8d113c85d02d1ea79 @dchelimsky dchelimsky committed Dec 6, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/rspec/mocks/any_instance/recorder.rb
  2. +2 −2 lib/rspec/mocks/message_expectation.rb
@@ -41,8 +41,8 @@ def stub(method_name_or_method_map, &block)
# argument.
#
# @see Methods#stub_chain
- def stub_chain(*args, &block)
- normalize_chain(*args) do |method_name, args|
+ def stub_chain(*method_names_and_optional_return_values, &block)
+ normalize_chain(*method_names_and_optional_return_values) do |method_name, args|
observe!(method_name)
message_chains.add(method_name, StubChainChain.new(*args, &block))
end
@@ -178,8 +178,8 @@ def invoke(*args, &block)
@order_group.handle_order_constraint self
begin
- Kernel::raise @exception_to_raise unless @exception_to_raise.nil?
- Kernel::throw *@args_to_throw unless @args_to_throw.empty?
+ Kernel::raise(@exception_to_raise) unless @exception_to_raise.nil?
+ Kernel::throw(*@args_to_throw) unless @args_to_throw.empty?
default_return_val = if !@method_block.nil?
invoke_method_block(*args, &block)

0 comments on commit 4543082

Please sign in to comment.