Sha256: cd921cd34a98079e4a71d437a6c503b14e09d8e75876b1a3fe9f2436141b18ac

Contents?: true

Size: 296 Bytes

Versions: 64

Compression:

Stored size: 296 Bytes

Contents

window.describeCapability = (capability, examples) ->
  if up.browser[capability]()
    examples()

window.describeFallback = (capability, examples) ->
  describe "in a browser without #{capability}", ->
    beforeEach ->
      spyOn(up.browser, capability).and.returnValue(false)
    examples()

Version data entries

64 entries across 64 versions & 2 rubygems

Version Path
unpoly-rails-0.20.0 spec_app/spec/javascripts/helpers/browser_switches.js.coffee
upjs-rails-0.19.0 spec_app/spec/javascripts/helpers/browser_switches.js.coffee
upjs-rails-0.18.1 spec_app/spec/javascripts/helpers/browser_switches.js.coffee
upjs-rails-0.18.0 spec_app/spec/javascripts/helpers/browser_switches.js.coffee