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

Version Path
btakita-screw-unit-server-0.3.0 core/example/spec/models/cat_spec.js
btakita-screw_unit-0.3.0 core/example/spec/models/cat_spec.js
pivotal-screw-unit-0.4.0 core/example/spec/models/cat_spec.js
pivotal-screw-unit-0.4.1 core/example/spec/models/cat_spec.js
pivotal-screw-unit-0.4.2 core/example/spec/models/cat_spec.js
pivotal-screw-unit-0.4.3 core/example/spec/models/cat_spec.js
pivotal-screw-unit-0.5.0 core/example/spec/models/cat_spec.js
pivotal-screw-unit-0.5.1 core/example/spec/models/cat_spec.js
pivotal-screw-unit-0.5.2 core/example/spec/models/cat_spec.js
pivotal-screw-unit-0.5.3 core/example/spec/models/cat_spec.js
pivotal-screw-unit-server-0.5.10 core/example/spec/models/cat_spec.js
pivotal-screw-unit-server-0.5.11 core/example/spec/models/cat_spec.js
pivotal-screw-unit-server-0.5.12 core/example/spec/models/cat_spec.js
pivotal-screw-unit-server-0.5.3 core/example/spec/models/cat_spec.js
pivotal-screw-unit-server-0.5.4 core/example/spec/models/cat_spec.js
pivotal-screw-unit-server-0.5.5 core/example/spec/models/cat_spec.js
pivotal-screw-unit-server-0.5.6 core/example/spec/models/cat_spec.js
pivotal-screw-unit-server-0.5.7 core/example/spec/models/cat_spec.js
pivotal-screw-unit-server-0.5.8 core/example/spec/models/cat_spec.js
pivotal-screw-unit-server-0.5.9 core/example/spec/models/cat_spec.js