made the locale switcher use less js, more ruby & html

This commit is contained in:
kikito
2015-08-28 17:02:06 +02:00
parent 57917f850c
commit 934512ad7a
6 changed files with 17 additions and 32 deletions

View File

@@ -12,7 +12,7 @@ feature 'Localization' do
scenario 'Available locales appear in the locale switcher' do
visit '/'
within('.js-locale-switcher') do
within('.locale-form .js-location-changer') do
expect(page).to have_content 'Español'
expect(page).to have_content 'English'
end