1 require "application_system_test_case"
3 class PreferencesTest < ApplicationSystemTestCase
4 def test_flash_message_shows_in_original_language
5 sign_in_as(create(:user))
7 visit edit_preferences_path
8 click_button "Update Preferences"
10 assert_content "Preferences updated"
13 def test_flash_message_shows_in_new_language
14 sign_in_as(create(:user))
16 visit edit_preferences_path
17 fill_in "Preferred Languages", :with => "fr"
18 click_button "Update Preferences"
20 assert_content "Préférences mises à jour"