Skip to content

Commit

Permalink
Fixing RSpec deprecation warning 'mock is deprecated. Use double inst…
Browse files Browse the repository at this point in the history
…ead.'
  • Loading branch information
James White authored and ggilder committed Feb 11, 2014
1 parent 5225fa9 commit 6da72a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/command_spec.rb
Expand Up @@ -50,21 +50,21 @@
end

it "calling the #call method by default when an object is called" do
object = mock 'Object'
object = double 'Object'
object.should_receive(:call).once
@command.when_called object
@command.run 'foo'
end

it "should allow #action as an alias to #when_called" do
object = mock 'Object'
object = double 'Object'
object.should_receive(:call).once
@command.action object
@command.run 'foo'
end

it "calling an arbitrary method when an object is called" do
object = mock 'Object'
object = double 'Object'
object.should_receive(:foo).once
@command.when_called object, :foo
@command.run 'foo'
Expand Down

0 comments on commit 6da72a9

Please sign in to comment.