Sha256: eea46d8358c557195583650d898bc6f93fafd387a5e96abe6d702d99f9e53842

Contents?: true

Size: 275 Bytes

Versions: 40

Compression:

Stored size: 275 Bytes

Contents

Screw.Matchers["have"] = {
  match: function(expected, actual) {
    return actual.find(expected).length > 0;
  },
  failure_message: function(expected, actual, not) {
    return 'expected ' + $.print(actual) + (not ? ' to not have ' : ' to have ') + $.print(expected);
  }
}

Version data entries

40 entries across 40 versions & 8 rubygems

Version Path
screw_server-0.1.14 assets/vendor/screw-unit/example/spec/matchers/have.js
screw_server-0.1.13 assets/vendor/screw-unit/example/spec/matchers/have.js
screw_server-0.1.12 assets/vendor/screw-unit/example/spec/matchers/have.js
screw_server-0.1.11 assets/vendor/screw-unit/example/spec/matchers/have.js
screw_server-0.1.10 assets/vendor/screw-unit/example/spec/matchers/have.js
screw_server-0.1.9 assets/vendor/screw-unit/example/spec/matchers/have.js
screw_server-0.1.8 assets/vendor/screw-unit/example/spec/matchers/have.js
screw_server-0.1.7 assets/vendor/screw-unit/example/spec/matchers/have.js
screw_server-0.1.6 assets/vendor/screw-unit/example/spec/matchers/have.js
screw_server-0.1.4 assets/vendor/screw-unit/example/spec/matchers/have.js
honkster-screw-unit-server-0.6.3 core/example/spec/matchers/have.js
honkster-screw-unit-server-0.6.2 core/example/spec/matchers/have.js
honkster-screw-unit-server-0.6.1 core/example/spec/matchers/have.js
btakita-screw-unit-server-0.6.0 core/example/spec/matchers/have.js
screw-unit-0.5.1 core/example/spec/matchers/have.js
screw-unit-0.3.3 core/example/spec/matchers/have.js
screw-unit-0.3.1 core/example/spec/matchers/have.js
screw-unit-server-0.3.0 core/example/spec/matchers/have.js
screw-unit-0.5.2 core/example/spec/matchers/have.js
screw-unit-server-0.5.3 core/example/spec/matchers/have.js