def test_flash_message_shows_in_original_language
sign_in_as(create(:user))
- visit edit_preferences_path
- click_button "Update Preferences"
+ visit preferences_path
+ click_on "Update Preferences"
assert_content "Preferences updated"
end
def test_flash_message_shows_in_new_language
sign_in_as(create(:user))
- visit edit_preferences_path
+ visit preferences_path
fill_in "Preferred Languages", :with => "fr"
- click_button "Update Preferences"
+ click_on "Update Preferences"
assert_content "Préférences mises à jour"
end