flowerbox-delivery/features/step_definitions/then/server_should_be_running.rb

8 lines
187 B
Ruby
Raw Permalink Normal View History

require 'net/http'
Then /^the server should have started on port "([^"]*)", interface "([^"]*)"$/ do |port, interface|
socket = TCPSocket.new(interface, port.to_i)
socket.close
end