Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (26 sloc) 0.832 kB
require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper")
require "webrat/selenium/application_servers/rails"
RAILS_ROOT = "." unless defined?(RAILS_ROOT)
describe Webrat::Selenium::ApplicationServers::Rails do
include Webrat::Selenium::SilenceStream
before do
@server = Webrat::Selenium::ApplicationServers::Rails.new
# require "rubygems"; require "ruby-debug"; Debugger.start; debugger
@server.stub!(:system)
@server.stub!(:at_exit)
class Rails
def self.root
RAILS_ROOT
end
end
end
describe "boot" do
it "should wait for the server to start on 0.0.0.0" do
TCPSocket.should_receive(:wait_for_service_with_timeout).
with(hash_including(:host => "0.0.0.0"))
silence_stream(STDERR) do
@server.boot
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.