Sha256: 0cd38a0b85f04793ad84c8d776b1582f118b7e47babc8c31c2ef35339c7ff60e
Contents?: true
Size: 840 Bytes
Versions: 37
Compression:
Stored size: 840 Bytes
Contents
Screw.Unit(function() { describe('Cat', function() { var cat; describe('#cross_path', function() { describe('when the cat has black fur', function() { before(function() { cat = new Cat({color: 'black'}); }); it("decrements the man's luck by 5", function() { var man = new Man({luck: 5}); cat.cross_path(man); expect(man.luck()).to(equal, 0); }); }); describe('when the cat has non-black fur', function() { before(function() { cat = new Cat({color: 'white'}); }); it("does not change the man's luck", function() { var man = new Man({luck: 5}); cat.cross_path(man); expect(man.luck()).to(equal, 5); }); }); }); }); });
Version data entries
37 entries across 37 versions & 8 rubygems