Minimal coverage for SELENIUM_SERVER_PORT
This commit is contained in:
@@ -141,4 +141,13 @@ describe Jasmine::Config do
|
||||
end
|
||||
end
|
||||
|
||||
describe "#start_selenium_server" do
|
||||
it "should use an existing selenium server if SELENIUM_SERVER_PORT is set" do
|
||||
config = Jasmine::Config.new
|
||||
ENV.stub!(:[], "SELENIUM_SERVER_PORT").and_return(1234)
|
||||
Jasmine.should_receive(:wait_for_listener).with(1234, "selenium server")
|
||||
config.start_selenium_server
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user