Sha256: 305723e636215dd5a63d53a5c92634756555652a4de645a5baadd6450d4aec7e

Contents?: true

Size: 533 Bytes

Versions: 57

Compression:

Stored size: 533 Bytes

Contents

describe("j$.HtmlSpecFilter", function() {

  it("should match when no string is provided", function() {
    var specFilter = new j$.HtmlSpecFilter();

    expect(specFilter.matches("foo")).toBe(true);
    expect(specFilter.matches("*bar")).toBe(true);
  });

  it("should only match the provided string", function() {
    var specFilter = new j$.HtmlSpecFilter({
      filterString: function() { return "foo"; }
    });

    expect(specFilter.matches("foo")).toBe(true);
    expect(specFilter.matches("bar")).toBe(false);
  });
});

Version data entries

57 entries across 57 versions & 4 rubygems

Version Path
jasmine-core-2.3.2 ./lib/jasmine-core/spec/html/HtmlSpecFilterSpec.js
upjs-rails-0.3.3 spec_app/vendor/assets/bower_components/jasmine/spec/html/HtmlSpecFilterSpec.js
jasmine-core-2.3.0 ./lib/jasmine-core/spec/html/HtmlSpecFilterSpec.js
upjs-rails-0.3.2 spec_app/vendor/assets/bower_components/jasmine/spec/html/HtmlSpecFilterSpec.js
upjs-rails-0.3.0 spec_app/vendor/assets/bower_components/jasmine/spec/html/HtmlSpecFilterSpec.js
upjs-rails-0.2.2 spec_app/vendor/assets/bower_components/jasmine/spec/html/HtmlSpecFilterSpec.js
upjs-rails-0.2.1 spec_app/vendor/assets/bower_components/jasmine/spec/html/HtmlSpecFilterSpec.js
upjs-rails-0.2.0 spec_app/vendor/assets/bower_components/jasmine/spec/html/HtmlSpecFilterSpec.js
jasmine-core-2.2.0 ./lib/jasmine-core/spec/html/HtmlSpecFilterSpec.js
jasmine-core-2.1.3 ./lib/jasmine-core/spec/html/HtmlSpecFilterSpec.js
jasmine-core-2.1.2 ./lib/jasmine-core/spec/html/HtmlSpecFilterSpec.js
jasmine-core-2.1.1 ./lib/jasmine-core/spec/html/HtmlSpecFilterSpec.js
jasmine-core-2.1.0 ./lib/jasmine-core/spec/html/HtmlSpecFilterSpec.js
jasmine-core-2.0.2 ./lib/jasmine-core/spec/html/HtmlSpecFilterSpec.js
jasmine-core-2.0.1 ./lib/jasmine-core/spec/html/HtmlSpecFilterSpec.js
jasmine-core-2.0.0 ./lib/jasmine-core/spec/html/HtmlSpecFilterSpec.js
jasmine-core-2.0.0.rc5 ./lib/jasmine-core/spec/html/HtmlSpecFilterSpec.js