Skip to content

Commit

Permalink
Removed my redundant test case now that I have the fix from @Peeja.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mat Schaffer committed Jul 1, 2009
1 parent 1790f5a commit 2014a23
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions spec/stub_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,16 +163,6 @@ Screw.Unit(function() {
obj.methodToStub('bar');
expect(originalMethodCalled).to(be_true);
});

it("shouldn't loose track of return values when additional stubs are introduced", function() {
obj = { firstMethod: function() {},
secondMethod: function() {} };
Screw.Stub.shouldReceive(obj, 'firstMethod').withArguments('foo').andReturn('bar');
Screw.Stub.shouldReceive(obj, 'secondMethod').withArguments('not', 'foo');

expect(obj.firstMethod('foo')).to(equal, 'bar');
obj.secondMethod('not', 'foo');
});
});
});
});

0 comments on commit 2014a23

Please sign in to comment.