diff --git a/Rakefile b/Rakefile index 1531441..52257a0 100644 --- a/Rakefile +++ b/Rakefile @@ -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 \ No newline at end of file diff --git a/contrib/ruby/jasmine_runner.rb b/contrib/ruby/jasmine_runner.rb index 0a6b3a9..fa22cad 100644 --- a/contrib/ruby/jasmine_runner.rb +++ b/contrib/ruby/jasmine_runner.rb @@ -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 diff --git a/contrib/ruby/spec/jasmine_runner_spec.rb b/contrib/ruby/spec/jasmine_runner_spec.rb index 4339db7..20484ef 100644 --- a/contrib/ruby/spec/jasmine_runner_spec.rb +++ b/contrib/ruby/spec/jasmine_runner_spec.rb @@ -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 =~ /