spec/jstd-runner/server_spec.rb in jstd-runner-0.0.2 vs spec/jstd-runner/server_spec.rb in jstd-runner-0.0.3
- old
+ new
@@ -6,9 +6,13 @@
let(:server) { Server.new(4224) }
let(:mock_process) { mock(ChildProcess, :start => true) }
let(:connected_poller) { mock(:connected? => true, :closed? => false) }
let(:closed_poller) { mock(:connected? => false, :closed? => true) }
+ it "has a correct reference to the bundled jar" do
+ File.exist?(Server::JAR).should be_true
+ end
+
it "launches the server on the given port" do
server.stub!(:immediate_poller => closed_poller)
ChildProcess.should_receive(:new).with(
"java", "-jar", /JsTestDriver.+\.jar/, "--port", "4224"