Sha256: 789e2816544d9470965fda88e71e0857656da3c28b8cae54e70b9b2c1e9d25e6

Contents?: true

Size: 684 Bytes

Versions: 1

Compression:

Stored size: 684 Bytes

Contents

//= require <support/spec_helper>

Screw.Unit(function(c) { with(c) {
  describe("Coolerator.Filter", function() {
    it("is added to the Coolerator namespace", function() {
      expect(typeof Coolerator.Filter).to(equal, 'function');
    });

    context("when created with a configuration object", function() {
      context("when the configuration contains a :label", function() {
        var filter = new Coolerator.Filter({
          label : 'so cool!',
          scope : 'everywhere'
        });

        it("is created with a label", function() {
          expect(Coolerator.Filters.get('everywhere')[0].label).to(equal, 'so cool!');
        });
      });
    });
  });
}});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
coolerator.vision-0.2.3 spec/javascripts/vendor/coolerator/coolerator.filter_spec.js