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