flowerbox-delivery/features/step_definitions/then/server_should_be_running.rb
2012-01-19 15:59:05 -05:00

8 lines
187 B
Ruby

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