Commit 504ccb3d7af97bd90ab9e437fa9c135f5fee5b10
1 parent
ab476aee
Exists in
master
and in
22 other branches
internationalization.feature
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
features/internationalization.feature
features/step_definitions/internationalization_steps.rb
| ... | ... | @@ -40,7 +40,7 @@ Given /^my browser prefers (.*)$/ do |lang| |
| 40 | 40 | end |
| 41 | 41 | |
| 42 | 42 | Then /^the site should be in (.*)$/ do |lang| |
| 43 | - response.should have_selector("html[lang=#{language_to_code(lang)}]") | |
| 44 | - response.body.should match(/<strong>#{native_name(lang)}<\/strong>/) | |
| 43 | + page.should have_selector("html[lang=#{language_to_code(lang)}]") | |
| 44 | + page.body.should match(/<strong>#{native_name(lang)}<\/strong>/) | |
| 45 | 45 | end |
| 46 | 46 | ... | ... |