Change url from /run.html to /.

This commit is contained in:
Christian Williams & Kim Eric Mittler 2009-09-02 12:51:39 -07:00
parent 17b513eafb
commit 8ba804e299
4 changed files with 8 additions and 8 deletions

View File

@ -89,7 +89,7 @@ task :jasmine_server do
}
puts "your tests are here:"
puts " http://localhost:8888/run.html"
puts " http://localhost:8888/"
Jasmine::SimpleServer.start(8888, includes + spec_files, dir_mappings)
end

View File

@ -114,8 +114,8 @@ module Jasmine
require 'thin'
config = {
'/' => Jasmine::Redirect.new('/run.html'),
'/run.html' => Jasmine::RunAdapter.new(spec_files_or_proc)
'/run.html' => Jasmine::Redirect.new('/'),
'/' => Jasmine::RunAdapter.new(spec_files_or_proc)
}
mappings.each do |from, to|
config[from] = Rack::File.new(to)
@ -150,7 +150,7 @@ module Jasmine
def connect
@driver.start
@driver.open("/run.html")
@driver.open("/")
end
def disconnect

View File

@ -20,7 +20,7 @@ describe Jasmine::SimpleServer do
Jasmine::wait_for_listener(@port)
run_html = open("http://localhost:#{@port}/run.html").read
run_html = open("http://localhost:#{@port}/").read
run_html.should =~ /<script src="file1"/
run_html.should =~ /<script src="file2"/
end
@ -39,11 +39,11 @@ describe Jasmine::SimpleServer do
Jasmine::wait_for_listener(@port)
run_html = open("http://localhost:#{@port}/run.html").read
run_html = open("http://localhost:#{@port}/").read
run_html.should =~ /<script src="file1"/
run_html.should =~ /<script src="file2"/
run_html = open("http://localhost:#{@port}/run.html").read
run_html = open("http://localhost:#{@port}/").read
run_html.should =~ /<script src="file1"/
run_html.should =~ /<script src="file2"/
run_html.should =~ /<script src="file3"/

View File

@ -20,7 +20,7 @@ task :jasmine_server do
spec_files = Dir.glob("spec/**/*[Ss]pec.js")
puts "your tests are here:"
puts " http://localhost:8888/run.html"
puts " http://localhost:8888/"
Jasmine::SimpleServer.start(8888, spec_files, dir_mappings)
end