jasmine/spec/jasmine_spec.rb

17 lines
332 B
Ruby
Raw Normal View History

2009-12-28 20:00:02 +00:00
require 'jasmine_self_test_config'
2009-10-11 00:44:59 +00:00
2009-12-28 18:08:23 +00:00
jasmine_runner = JasmineSelfTestRunner.new
spec_builder = Jasmine::SpecBuilder.new(jasmine_runner)
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