Refactor.
This commit is contained in:
parent
81aeeeedee
commit
d4683ca485
|
@ -29,6 +29,8 @@ module Jasmine
|
||||||
@jasmine_server_port = Jasmine::find_unused_port
|
@jasmine_server_port = Jasmine::find_unused_port
|
||||||
@selenium_server_port = Jasmine::find_unused_port
|
@selenium_server_port = Jasmine::find_unused_port
|
||||||
|
|
||||||
|
server = Jasmine::Server.new(@jasmine_server_port, self)
|
||||||
|
|
||||||
@selenium_pid = fork do
|
@selenium_pid = fork do
|
||||||
Process.setpgrp
|
Process.setpgrp
|
||||||
exec "java -jar #{@selenium_jar_path} -port #{@selenium_server_port} > /dev/null 2>&1"
|
exec "java -jar #{@selenium_jar_path} -port #{@selenium_server_port} > /dev/null 2>&1"
|
||||||
|
@ -37,7 +39,7 @@ module Jasmine
|
||||||
|
|
||||||
@jasmine_server_pid = fork do
|
@jasmine_server_pid = fork do
|
||||||
Process.setpgrp
|
Process.setpgrp
|
||||||
Jasmine::Server.start(@jasmine_server_port, spec_files, @options)
|
server.start
|
||||||
exit! 0
|
exit! 0
|
||||||
end
|
end
|
||||||
puts "jasmine server started. pid is #{@jasmine_server_pid}"
|
puts "jasmine server started. pid is #{@jasmine_server_pid}"
|
||||||
|
|
|
@ -2,8 +2,8 @@ require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))
|
||||||
|
|
||||||
require 'jasmine_self_test_config'
|
require 'jasmine_self_test_config'
|
||||||
|
|
||||||
jasmine_runner = JasmineSelfTestConfig.new
|
jasmine_config = JasmineSelfTestConfig.new
|
||||||
spec_builder = Jasmine::SpecBuilder.new(jasmine_runner)
|
spec_builder = Jasmine::SpecBuilder.new(jasmine_config)
|
||||||
|
|
||||||
should_stop = false
|
should_stop = false
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue