mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-24 17:54:59 -04:00
13 lines
364 B
Ruby
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
|