spec/unit/spec.utils.js in jspec-4.3.2 vs spec/unit/spec.utils.js in jspec-4.3.3

- old
+ new

@@ -80,9 +80,18 @@ }) object.post('http://jspec.info', function(text){ text.should_eql 'is awesome' }) end + + it 'should overwrite previous stub' + stub(object, 'toString').and_return('I am stub overriden') + object.toString().should.eql 'I am stub overriden' + + destub(object, 'toString') + object.toString().should.eql '<Im an object>' + end + end describe 'destub()' it 'should restore old methods' destub(object, 'toString')