Sha256: d8abf7abf219d462f9de0da178037a61ab361b862fa47608a1096fe6271da6c3

Contents?: true

Size: 593 Bytes

Versions: 10

Compression:

Stored size: 593 Bytes

Contents

$:.unshift(ENV['JASMINE_GEM_PATH']) if ENV['JASMINE_GEM_PATH'] # for gem testing purposes

require 'rubygems'
require 'jasmine'
jasmine_config_overrides = File.expand_path(File.join(File.dirname(__FILE__), 'jasmine_config.rb'))
require jasmine_config_overrides if File.exists?(jasmine_config_overrides)

jasmine_config = Jasmine::Config.new
spec_builder = Jasmine::SpecBuilder.new(jasmine_config)

should_stop = false

Spec::Runner.configure do |config|
  config.after(:suite) do
    spec_builder.stop if should_stop
  end
end

spec_builder.start
should_stop = true
spec_builder.declare_suites

Version data entries

10 entries across 6 versions & 3 rubygems

Version Path
jasmine-ajax-0.0.2 examples/jquery/spec/javascripts/support/jasmine_runner.rb
jasmine-ajax-0.0.2 spec/javascripts/support/jasmine_runner.rb
jasmine-ajax-0.0.2 examples/prototype/spec/javascripts/support/jasmine_runner.rb
jasmine-ajax-0.0.1 examples/prototype/spec/javascripts/support/jasmine_runner.rb
jasmine-ajax-0.0.1 examples/jquery/spec/javascripts/support/jasmine_runner.rb
jasmine-ajax-0.0.1 spec/javascripts/support/jasmine_runner.rb
edgecase-jasmine-1.0.1.1 generators/jasmine/templates/spec/javascripts/support/jasmine_runner.rb
jasmine-1.0.1 generators/jasmine/templates/spec/javascripts/support/jasmine_runner.rb
jasmine-1.0.0 generators/jasmine/templates/spec/javascripts/support/jasmine_runner.rb
jasmine-0.11.1.0 generators/jasmine/templates/spec/javascripts/support/jasmine_runner.rb