Permalink
Browse files

Reordered expectation

  • Loading branch information...
1 parent e6fca73 commit ced8a7749f1bb027894c3e6bb6bd9a0c09191dfc @fabiokr fabiokr committed Feb 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/moo_moo/base_spec.rb
View
2 spec/moo_moo/base_spec.rb
@@ -55,10 +55,10 @@ class SampleService < MooMoo::Base
it "should encapsulate response" do
result = {:the => :result}
command = stub()
+ command.should_receive(:run).with("thehost", "thekey", "theuser", "theport").and_return(result)
MooMoo::Command.should_receive(:new)
.with("theaction", "theobject", {}, "thecookie")
.and_return(command)
- command.should_receive(:run).with("thehost", "thekey", "theuser", "theport").and_return(result)
response = @service.run_command("theaction", "theobject", {}, "thecookie")
response.result.should == result

0 comments on commit ced8a77

Please sign in to comment.