Skip to content

Commit

Permalink
Culerity::run_rails returns the result for 'fork' which is a pid itse…
Browse files Browse the repository at this point in the history
…lf, not an object that responds to 'pid'
  • Loading branch information
jason-o-matic committed Mar 14, 2010
1 parent 874a640 commit f51bb2a
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,7 +1,7 @@
require 'culerity'

Before do
$rails_server ||= Culerity::run_rails(:environment => 'culerity', :port => 3001)
$rails_server_pid ||= Culerity::run_rails(:environment => 'culerity', :port => 3001)
$server ||= Culerity::run_server
unless $browser
$browser = Culerity::RemoteBrowserProxy.new $server, {:browser => :firefox3,
Expand All @@ -22,7 +22,7 @@
at_exit do
$browser.exit if $browser
$server.close if $server
Process.kill(6, $rails_server.pid.to_i) if $rails_server
Process.kill(6, $rails_server_pid) if $rails_server_pid
end

Given /^(?:|I )am on (.+)$/ do |page_name|
Expand Down

0 comments on commit f51bb2a

Please sign in to comment.