Files
growstuff/spec/features/locale_spec.rb
2016-11-26 12:06:02 +13:00

13 lines
364 B
Ruby

require 'rails_helper'
feature "Changing locales", js: true do
after { I18n.locale = :en }
scenario "Locale can be set with a query param" do
visit root_path
expect(page).to have_content("a community of food gardeners.")
visit root_path(locale: 'ja')
expect(page).to have_content("はガーデナーのコミュニティです。")
end
end