spec/spec_helper.rb in cuukie-0.1.3 vs spec/spec_helper.rb in cuukie-0.1.4

- old
+ new

@@ -16,10 +16,14 @@ args[0] = "http://localhost:4569#{args[0]}" RestClient.send method.to_s.downcase, *args end end +def html + GET('/').body +end + def start_server start_process "ruby bin/cuukie_server >/dev/null 2>&1" wait_for_server_on_port 4569 end @@ -34,10 +38,6 @@ def stop_server_on_port(port) # the server dies without replying, so we expect an error here RestClient.delete "http://localhost:#{port}/" rescue -end - -def html - GET('/').body end