phantom_jasmine 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/phantom_jasmine/run_specs.rb +3 -3
- data/lib/phantom_jasmine/version.rb +1 -1
- metadata +1 -1
@@ -16,8 +16,8 @@ end
|
|
16
16
|
Jasmine.load_configuration_from_yaml
|
17
17
|
|
18
18
|
config = Jasmine.config
|
19
|
-
|
20
|
-
server = Jasmine::Server.new(
|
19
|
+
port = Jasmine.find_unused_port
|
20
|
+
server = Jasmine::Server.new(port, Jasmine::Application.app(config))
|
21
21
|
t = Thread.new do
|
22
22
|
begin
|
23
23
|
server.start
|
@@ -26,7 +26,7 @@ t = Thread.new do
|
|
26
26
|
# # ignore bad exits
|
27
27
|
end
|
28
28
|
t.abort_on_exception = true
|
29
|
-
Jasmine::wait_for_listener(
|
29
|
+
Jasmine::wait_for_listener(port, "jasmine server")
|
30
30
|
puts "jasmine server started."
|
31
31
|
|
32
32
|
results_processor = Jasmine::ResultsProcessor.new(config)
|