Sha256: 1a167e1ea68e263f8159780d3abffa165ee634cb12b04cfc620e0b8ed3b35715

Contents?: true

Size: 680 Bytes

Versions: 1

Compression:

Stored size: 680 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 :label exists", 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.4 spec/javascripts/vendor/coolerator/coolerator.filter_spec.js