Skip to content

Commit

Permalink
remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Oct 22, 2013
1 parent 4932f3c commit 88f2a76
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Expand Up @@ -171,7 +171,7 @@ def verify_combined_implementation
end

it 'warns when the inner implementation block is overriden' do
expect(RSpec).to receive(:warning).with /overriding a previous implementation/
expect(RSpec).to receive(:warning).with(/overriding a previous implementation/)
double.stub(:foo).with(:arg) { :with_block }.at_least(:once) { :at_least_block }
end

Expand Down
2 changes: 1 addition & 1 deletion spec/rspec/mocks/matchers/receive_messages_spec.rb
Expand Up @@ -85,7 +85,7 @@ module Mocks

it 'fails with the correct location' do
expect(obj).to receive_messages(:a => 1, :b => 2); line = __LINE__
expect(expectation_error.backtrace[0]).to match /#{__FILE__}:#{line}/
expect(expectation_error.backtrace[0]).to match(/#{__FILE__}:#{line}/)
end

it_behaves_like "complains when given blocks"
Expand Down
3 changes: 2 additions & 1 deletion spec/rspec/mocks/space_spec.rb
Expand Up @@ -20,7 +20,8 @@ module RSpec::Mocks
parent = parent_class.new
child = child_class.new

grandparent_proxy = space.proxy_for(grandparent)
space.proxy_for(grandparent)

parent_proxy = space.proxy_for(parent)
child_proxy = space.proxy_for(child)

Expand Down

0 comments on commit 88f2a76

Please sign in to comment.