Small fix for poltergeist.

This commit is contained in:
Mario Visic 2012-05-25 00:13:55 +08:00
parent 4c5d6c92d0
commit 3a27845fe5
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ end
# try to render a page by slug # try to render a page by slug
When /^I view the rendered page at "([^"]*)"$/ do |path| When /^I view the rendered page at "([^"]*)"$/ do |path|
# If we're running selenium then we need to use a different port # If we're running poltergeist then we need to use a different port
if Capybara.current_driver == :selenium if Capybara.current_driver == :poltergeist
visit "http://#{@site.domains.first}:#{Capybara.server_port}#{path}" visit "http://#{@site.domains.first}:#{Capybara.server_port}#{path}"
else else
visit "http://#{@site.domains.first}#{path}" visit "http://#{@site.domains.first}#{path}"