Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refactor.

  • Loading branch information...
commit d4683ca485474e8bff076f9282a2c55570db5dba 1 parent 81aeeee
@xian xian authored
Showing with 5 additions and 3 deletions.
  1. +3 −1 lib/jasmine/config.rb
  2. +2 −2 spec/jasmine_self_test_spec.rb
View
4 lib/jasmine/config.rb
@@ -29,6 +29,8 @@ def start_servers
@jasmine_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
Process.setpgrp
exec "java -jar #{@selenium_jar_path} -port #{@selenium_server_port} > /dev/null 2>&1"
@@ -37,7 +39,7 @@ def start_servers
@jasmine_server_pid = fork do
Process.setpgrp
- Jasmine::Server.start(@jasmine_server_port, spec_files, @options)
+ server.start
exit! 0
end
puts "jasmine server started. pid is #{@jasmine_server_pid}"
View
4 spec/jasmine_self_test_spec.rb
@@ -2,8 +2,8 @@
require 'jasmine_self_test_config'
-jasmine_runner = JasmineSelfTestConfig.new
-spec_builder = Jasmine::SpecBuilder.new(jasmine_runner)
+jasmine_config = JasmineSelfTestConfig.new
+spec_builder = Jasmine::SpecBuilder.new(jasmine_config)
should_stop = false
Please sign in to comment.
Something went wrong with that request. Please try again.