Commit 4b71cdfa375f1813c001d62f9a3265af663217fa

Authored by Antonio Terceiro
1 parent 8de4f2de

Noosfero#url_options: fix selenium tests for Capybara > 2.0

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/noosfero.rb
@@ -95,7 +95,7 @@ module Noosfero @@ -95,7 +95,7 @@ module Noosfero
95 development_url_options 95 development_url_options
96 when 'cucumber' 96 when 'cucumber'
97 if Capybara.current_driver == :selenium 97 if Capybara.current_driver == :selenium
98 - { :host => Capybara.current_session.driver.rack_server.host, :port => Capybara.current_session.driver.rack_server.port } 98 + { :host => Capybara.current_session.server.host, :port => Capybara.current_session.server.port }
99 end 99 end
100 end || { } 100 end || { }
101 end 101 end