lib/jasmine-phantom/tasks.rake in jasmine-phantom-0.0.6 vs lib/jasmine-phantom/tasks.rake in jasmine-phantom-0.0.7
- old
+ new
@@ -3,15 +3,10 @@
desc "Run jasmine specs using phantomjs and report the results"
task :ci => "jasmine:require" do
jasmine_config_overrides = File.join(Jasmine::Config.new.project_root, 'spec', 'javascripts' ,'support' ,'jasmine_config.rb')
require jasmine_config_overrides if File.exist?(jasmine_config_overrides)
- config = Jasmine::Config.new
- config.start_jasmine_server
-
- # omg config.jasmine_port finds a new unused port every time!
- port = config.instance_variable_get :@jasmine_server_port
-
+ port = Jasmine::Phantom::Server.start
script = File.join File.dirname(__FILE__), 'run-jasmine.js'
pid = Process.spawn "phantomjs #{script} http://localhost:#{port}"
begin