Sha256: 7be30da6e0ffb7d9034430827b0182d60079bc8204b9de5175dc9b315286e432

Contents?: true

Size: 263 Bytes

Versions: 23

Compression:

Stored size: 263 Bytes

Contents

beforeEach ->
  jasmine.addMatchers
    toBeError: (util, customEqualityTesters) ->
      compare: (actual, message) ->
        pass: (actual instanceof Error) && (!message || (message instanceof RegExp && actual.message =~ message) || actual.message == message)

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
unpoly-rails-0.56.7 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.56.6 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.56.5 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.56.4 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.56.3 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.56.2 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.56.1 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.56.0 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.55.1 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.55.0 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.54.1 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.54.0 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.53.4 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.53.3 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.53.2 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.53.1 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.53.0 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.52.0 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.51.1 spec_app/spec/javascripts/helpers/to_be_error.coffee
unpoly-rails-0.51.0 spec_app/spec/javascripts/helpers/to_be_error.coffee