Sha256: c84f8da01321913fe60ea09c24e3d78117e83925f2269f5e32b88a6b30ca8258

Contents?: true

Size: 786 Bytes

Versions: 3

Compression:

Stored size: 786 Bytes

Contents

#Use this file to set/override Jasmine configuration options
#You can remove it if you don't need it.
#This file is loaded *after* jasmine.yml is interpreted.
#
#Example: using a different boot file.
#Jasmine.configure do |config|
#   @config.boot_dir = '/absolute/path/to/boot_dir'
#   @config.boot_files = lambda { ['/absolute/path/to/boot_dir/file.js'] }
#end
#
Jasmine.configure do |config|
  config.browser = :phantomjs

  # for coffeescript
  config.boot_dir = File.expand_path('boots', File.dirname(__FILE__))
end

# monkey patch for coffeescript
module Jasmine
  def self.runner_template
    File.read(File.join(File.dirname(__FILE__), "run.html.erb"))
  end

  class CoreConfiguration
    def boot_path
      File.expand_path('boots', File.dirname(__FILE__))
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ponytail-0.6.0 spec/javascripts/support/jasmine_helper.rb
ponytail-0.5.0 spec/javascripts/support/jasmine_helper.rb
ponytail-0.4.0 spec/javascripts/support/jasmine_helper.rb