remove jasmine server; use jasmine init to copy (or append) a Rakefile with common jasmine tasks

This commit is contained in:
ragaskar
2009-11-24 22:42:15 -08:00
parent 7c043eb5d0
commit bece09bba8
8 changed files with 99 additions and 44 deletions

View File

@@ -0,0 +1,22 @@
require 'rubygems'
require "selenium_rc"
require File.expand_path(File.join(File.dirname(__FILE__), "jasmine_helper.rb"))
require File.expand_path(File.join(JasmineHelper.root, "contrib/ruby/jasmine_spec_builder"))
jasmine_runner = Jasmine::Runner.new(SeleniumRC::Server.new.jar_path,
JasmineHelper.specs,
JasmineHelper.dir_mappings)
spec_builder = Jasmine::SpecBuilder.new(JasmineHelper.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