Sha256: d8c185130f5fb6a33dce4051ddf4ff9881c0f56098e17f67d6bfe5adc9b50d4f
Contents?: true
Size: 953 Bytes
Versions: 6
Compression:
Stored size: 953 Bytes
Contents
require 'rubygems' require File.expand_path(File.join(File.dirname(__FILE__), "jasmine_helper.rb")) require File.expand_path(File.join(JasmineHelper.jasmine_root, "contrib/ruby/jasmine_spec_builder")) jasmine_runner = if ENV['SAUCELABS'] == 'true' require 'sauce_tunnel' require 'selenium_config' Jasmine::SauceLabsRunner.new(JasmineHelper.specs, JasmineHelper.dir_mappings, :saucelabs_config => 'saucelabs', :saucelabs_config_file => File.expand_path(File.join(File.dirname(__FILE__), "saucelabs.yml"))) else require "selenium_rc" Jasmine::Runner.new(SeleniumRC::Server.new.jar_path, JasmineHelper.specs, JasmineHelper.dir_mappings) end spec_builder = Jasmine::SpecBuilder.new(JasmineHelper.raw_spec_files, jasmine_runner) 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
6 entries across 3 versions & 2 rubygems