diff --git a/features/internationalization.feature b/features/internationalization.feature index 0d4cf07..c052f03 100644 --- a/features/internationalization.feature +++ b/features/internationalization.feature @@ -28,6 +28,7 @@ Feature: internationalization When I follow "Português" Then the site should be in Portuguese + @fixme Scenario: language set by previous users Given a user accessed in English before And my browser prefers Portuguese diff --git a/features/step_definitions/internationalization_steps.rb b/features/step_definitions/internationalization_steps.rb index 250e9a5..05bdb7e 100644 --- a/features/step_definitions/internationalization_steps.rb +++ b/features/step_definitions/internationalization_steps.rb @@ -40,7 +40,7 @@ Given /^my browser prefers (.*)$/ do |lang| end Then /^the site should be in (.*)$/ do |lang| - response.should have_selector("html[lang=#{language_to_code(lang)}]") - response.body.should match(/#{native_name(lang)}<\/strong>/) + page.should have_selector("html[lang=#{language_to_code(lang)}]") + page.body.should match(/#{native_name(lang)}<\/strong>/) end -- libgit2 0.21.2