jasmine/spec/jasmine_self_test_spec.rb

19 lines
408 B
Ruby
Raw Normal View History

2009-12-28 22:27:02 +00:00
require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))
2009-12-28 20:00:02 +00:00
require 'jasmine_self_test_config'
2009-10-11 00:44:59 +00:00
2009-12-28 22:46:50 +00:00
jasmine_config = JasmineSelfTestConfig.new
spec_builder = Jasmine::SpecBuilder.new(jasmine_config)
2009-10-11 00:44:59 +00:00
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