Sha256: 99f2196caa64c7a43c638970c8b32e4351270cec9b38f5011b5e7fe78993ed92

Contents?: true

Size: 613 Bytes

Versions: 8

Compression:

Stored size: 613 Bytes

Contents

require('/spec/javascripts/external/jquery.min.js')
require('/spec/javascripts/external/jasmine-jquery.js')
require('/spec/javascripts/external/coffee-script.js')

# Helper method to circumvent that Evergreen doesn't load CoffeeScript files.
window.loadCS = (url, callback) ->
  $.ajax
    url: url
    async: false
    success: (data) ->
      eval CoffeeScript.compile data
      callback() if callback


window.load_modularity = ->
  loadCS "/vendor/assets/javascripts/modularity.js.coffee?#{(new Date()).getTime()}"


beforeEach ->
  @addMatchers
    toHaveLength: (expected) ->
      this.length == expected

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
modularity-rails-0.9.0 spec/javascripts/spec_helper.coffee
modularity-rails-0.8.1 spec/javascripts/spec_helper.coffee
modularity-rails-0.8.0 spec/javascripts/spec_helper.coffee
modularity-rails-0.7.1 spec/javascripts/spec_helper.coffee
modularity-rails-0.7.0 spec/javascripts/spec_helper.coffee
modularity-rails-0.6.3 spec/javascripts/spec_helper.coffee
modularity-rails-0.6.2 spec/javascripts/spec_helper.coffee
modularity-rails-0.6.1 spec/javascripts/spec_helper.coffee