Sha256: ccaaf19c4edafc054e6e64281ffab4f97423b494a25ff4f5e9083492df988c70
Contents?: true
Size: 983 Bytes
Versions: 5
Compression:
Stored size: 983 Bytes
Contents
require File.expand_path("#{File.dirname(__FILE__)}/../spec_helper") module SeleniumRC describe Server do before do @server = Server.new stub(@server).log stub(@server).fork.yields end describe "#start" do it "launches java with the jar file and port" do stub(Server).port { "5555" } expected_command = %Q{java -jar "/path/to/the.jar" -port 5555} mock(@server).system(expected_command) mock(@server).jar_path {"/path/to/the.jar"} @server.start end context "when passed additional arguments" do it "adds the additional arguments to the selenium start command" do expected_command = %Q{java -jar "/path/to/the.jar" -port 4444 -browserSideLog -suppressStupidness} mock(@server).system(expected_command) mock(@server).jar_path {"/path/to/the.jar"} @server.start("-browserSideLog", "-suppressStupidness") end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems