Sha256: 469dd6bc426df1649471751b62c25359382b118fa41d7004c89b128e9ff34dc9

Contents?: true

Size: 263 Bytes

Versions: 11

Compression:

Stored size: 263 Bytes

Contents

u = up.util
$ = jQuery

beforeEach ->
  jasmine.addMatchers
    toHaveClass: (util, customEqualityTesters) ->
      compare: (element, expectedClass) ->
        element = up.element.get(element)
        pass: element && element.classList.contains(expectedClass)

Version data entries

11 entries across 11 versions & 1 rubygems

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