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
btakita-screw-unit-server-0.3.0 core/example/spec/matchers/have.js
btakita-screw_unit-0.3.0 core/example/spec/matchers/have.js
pivotal-screw-unit-0.4.0 core/example/spec/matchers/have.js
pivotal-screw-unit-0.4.1 core/example/spec/matchers/have.js
pivotal-screw-unit-0.4.2 core/example/spec/matchers/have.js
pivotal-screw-unit-0.4.3 core/example/spec/matchers/have.js
pivotal-screw-unit-0.5.0 core/example/spec/matchers/have.js
pivotal-screw-unit-0.5.1 core/example/spec/matchers/have.js
pivotal-screw-unit-0.5.2 core/example/spec/matchers/have.js
pivotal-screw-unit-0.5.3 core/example/spec/matchers/have.js
pivotal-screw-unit-server-0.5.10 core/example/spec/matchers/have.js
pivotal-screw-unit-server-0.5.11 core/example/spec/matchers/have.js
pivotal-screw-unit-server-0.5.12 core/example/spec/matchers/have.js
pivotal-screw-unit-server-0.5.3 core/example/spec/matchers/have.js
pivotal-screw-unit-server-0.5.4 core/example/spec/matchers/have.js
pivotal-screw-unit-server-0.5.5 core/example/spec/matchers/have.js
pivotal-screw-unit-server-0.5.6 core/example/spec/matchers/have.js
pivotal-screw-unit-server-0.5.7 core/example/spec/matchers/have.js
pivotal-screw-unit-server-0.5.8 core/example/spec/matchers/have.js
pivotal-screw-unit-server-0.5.9 core/example/spec/matchers/have.js