Sha256: 87a7352b28178bf39e0e5825b53257f9e89e5d85dea51a98aa32274e75802c63

Contents?: true

Size: 328 Bytes

Versions: 11

Compression:

Stored size: 328 Bytes

Contents

beforeEach ->
  jasmine.addMatchers
    toMatchText: (util, customEqualityTesters) ->
      compare: (actualString, expectedString) ->
        normalize = (str) ->
          str = up.util.trim(str)
          str = str.replace(/[\n\r\t ]+/g, ' ')
          str

        pass: normalize(actualString) == normalize(expectedString)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
unpoly-rails-0.57.0 spec_app/spec/javascripts/helpers/to_match_text.js.coffee
unpoly-rails-0.56.7 spec_app/spec/javascripts/helpers/to_match_text.js.coffee
unpoly-rails-0.56.6 spec_app/spec/javascripts/helpers/to_match_text.js.coffee
unpoly-rails-0.56.5 spec_app/spec/javascripts/helpers/to_match_text.js.coffee
unpoly-rails-0.56.4 spec_app/spec/javascripts/helpers/to_match_text.js.coffee
unpoly-rails-0.56.3 spec_app/spec/javascripts/helpers/to_match_text.js.coffee
unpoly-rails-0.56.2 spec_app/spec/javascripts/helpers/to_match_text.js.coffee
unpoly-rails-0.56.1 spec_app/spec/javascripts/helpers/to_match_text.js.coffee
unpoly-rails-0.56.0 spec_app/spec/javascripts/helpers/to_match_text.js.coffee
unpoly-rails-0.55.1 spec_app/spec/javascripts/helpers/to_match_text.js.coffee
unpoly-rails-0.55.0 spec_app/spec/javascripts/helpers/to_match_text.js.coffee