spec/spec_helper.rb in cuukie-0.2.2 vs spec/spec_helper.rb in cuukie-0.3.0
- old
+ new
@@ -8,11 +8,14 @@
Process.detach fork { exec command }
end
def run_cucumber(feature = '')
system "cd spec/test_project &&
- cucumber features/#{feature} --format cuukie"
+ cucumber features/#{feature} \
+ --require ../../lib/cuukie \
+ --require features \
+ --format Cuukie::Formatter"
end
require 'rest-client'
[:GET, :POST, :PUT, :DELETE].each do |method|
@@ -26,7 +29,7 @@
GET('/').body
end
def start_server
start_process "ruby bin/cuukie --server >/dev/null 2>&1"
- wait_for_server_on_port 4569
+ wait_for_server_at 4569
end