jasmine/spec/jasmine_self_test_spec.rb
Christian Williams d4683ca485 Refactor.
2009-12-28 16:46:50 -06:00

19 lines
408 B
Ruby

require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))
require 'jasmine_self_test_config'
jasmine_config = JasmineSelfTestConfig.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