Allow jasmine::runner to take an optional list of styesheets

This commit is contained in:
Rajan Agaskar & Ryan Dy
2009-10-13 15:12:35 -07:00
parent fd37be4dff
commit 6d8557608c
18 changed files with 20 additions and 18 deletions

View File

@@ -186,6 +186,8 @@ module Jasmine
@dir_mappings = dir_mappings
@jasmine_files = jasmine_files
@browser = options[:browser] || 'firefox'
@stylesheets = options[:stylesheets] || []
@selenium_pid = nil
@jasmine_server_pid = nil
@@ -214,7 +216,7 @@ module Jasmine
@jasmine_server_pid = fork do
Process.setpgrp
Jasmine::SimpleServer.start(@jasmine_server_port, @spec_files, @dir_mappings, @jasmine_files)
Jasmine::SimpleServer.start(@jasmine_server_port, @spec_files, @dir_mappings, @jasmine_files, @stylesheets)
exit! 0
end
puts "jasmine server started. pid is #{@jasmine_server_pid}"