From 8ba804e299cfd44597e137db45d87e41f9714a34 Mon Sep 17 00:00:00 2001 From: Christian Williams & Kim Eric Mittler Date: Wed, 2 Sep 2009 12:51:39 -0700 Subject: [PATCH] Change url from /run.html to /. --- Rakefile | 2 +- contrib/ruby/jasmine_runner.rb | 6 +++--- contrib/ruby/spec/jasmine_runner_spec.rb | 6 +++--- examples/ruby/Rakefile | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) 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 =~ /