Skip to content

Commit

Permalink
Use correct options for Cucumber setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristandunn committed Oct 22, 2013
1 parent fee2c83 commit 4e4f97c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/pusher-fake/cucumber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
end

# Set the host and port to the fake web server.
Pusher.host = PusherFake.configuration.web_host
Pusher.port = PusherFake.configuration.web_port
PusherFake.configuration.web_options.tap do |options|
Pusher.host = options[:host]
Pusher.port = options[:port]
end

# Start the fake web server.
fork { PusherFake::Server.start }.tap do |id|
Expand Down

0 comments on commit 4e4f97c

Please sign in to comment.