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