Refactor config file/path handling.

This commit is contained in:
Christian Williams
2009-12-28 16:27:02 -06:00
parent 2045226ba7
commit 81aeeeedee
15 changed files with 150 additions and 76 deletions
+18
View File
@@ -0,0 +1,18 @@
require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))
require 'jasmine_self_test_config'
jasmine_runner = JasmineSelfTestConfig.new
spec_builder = Jasmine::SpecBuilder.new(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