Sha256: 0729a38e3db952f24667430db202eb03f589f9f3c90031723c82320f35265f69

Contents?: true

Size: 461 Bytes

Versions: 11

Compression:

Stored size: 461 Bytes

Contents

u = up.util

beforeEach ->
  jasmine.addMatchers
    toMatchList: (util, customEqualityTesters) ->
      compare: (actualList, expectedList) ->
        actualList = u.toArray(actualList) if actualList
        expectedList = u.toArray(expectedList) if expectedList

        pass:
          actualList &&
            expectedList &&
            actualList.length == expectedList.length &&
            u.every(expectedList, (elem) -> u.contains(actualList, elem))

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
unpoly-rails-1.0.3 spec_app/spec/javascripts/helpers/to_match_list.coffee
unpoly-rails-1.0.1 spec_app/spec/javascripts/helpers/to_match_list.coffee
unpoly-rails-1.0.0 spec_app/spec/javascripts/helpers/to_match_list.coffee
unpoly-rails-0.62.1 spec_app/spec/javascripts/helpers/to_match_list.coffee
unpoly-rails-0.62.0 spec_app/spec/javascripts/helpers/to_match_list.coffee
unpoly-rails-0.61.1 spec_app/spec/javascripts/helpers/to_match_list.coffee
unpoly-rails-0.61.0 spec_app/spec/javascripts/helpers/to_match_list.coffee
unpoly-rails-0.60.3 spec_app/spec/javascripts/helpers/to_match_list.coffee
unpoly-rails-0.60.2 spec_app/spec/javascripts/helpers/to_match_list.coffee
unpoly-rails-0.60.1 spec_app/spec/javascripts/helpers/to_match_list.coffee
unpoly-rails-0.60.0 spec_app/spec/javascripts/helpers/to_match_list.coffee