mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-31 05:02:02 -04:00
Conflicts: spec/features/admin/forums_spec.rb spec/features/crops/alternate_name_spec.rb spec/features/crops/crop_detail_page_spec.rb spec/features/member_profile_spec.rb spec/features/rss/members_spec.rb spec/features/scientific_name_spec.rb spec/features/signin_spec.rb spec/features/signup_spec.rb
14 lines
368 B
Ruby
14 lines
368 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
|