Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix warnings

- #90
  • Loading branch information...
commit 45430829e53308eb8998f3a8d113c85d02d1ea79 1 parent 8c6ffba
@dchelimsky dchelimsky authored
View
4 lib/rspec/mocks/any_instance/recorder.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
View
4 lib/rspec/mocks/message_expectation.rb
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.