diff --git a/spec/integration/mechanize/spec/spec_helper.rb b/spec/integration/mechanize/spec/spec_helper.rb index 038ae76..95ad24a 100644 --- a/spec/integration/mechanize/spec/spec_helper.rb +++ b/spec/integration/mechanize/spec/spec_helper.rb @@ -21,7 +21,9 @@ Spec::Runner.configure do |config| end config.after :suite do - Process.kill("TERM", File.read("rack.pid").to_i) + if File.exists?("rack.pid") + Process.kill("TERM", File.read("rack.pid").to_i) + end end end