spec/spec.matchers.js in jspec-2.11.10 vs spec/spec.matchers.js in jspec-2.11.12

- old
+ new

@@ -454,13 +454,26 @@ it 'should fail with negation with return values' personWithPets.should.not.receive('addPets').with_args('izzy').and_return(an_instance_of(Array)) personWithPets.addPets('izzy') end - it 'should fail with negation with times' - personWithPets.should.not.receive('addPets', 'twice') + it 'should fail with negation when called once with no times specified' + personWithPets.should.not.receive('addPets') personWithPets.addPets('izzy') - personWithPets.addPets('max') + end + + it 'should fail with negation when called more than once with no times specified' + personWithPets.should.not.receive('addPets') + personWithPets.addPets('izzy') + personWithPets.addPets('izzy') + end + + it 'should fail with negation when called more than the times specified' + personWithPets.should.not.receive('addPets', 3) + personWithPets.addPets('izzy') + personWithPets.addPets('izzy') + personWithPets.addPets('izzy') + personWithPets.addPets('izzy') end it 'should fail with boolean args' foo = { bar : function(arg){ return arg }} foo.should.receive('bar').with_args(true) \ No newline at end of file