X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7e14ecbc28b5a29e5f0b34da7295610b4fff2bdf..967e6d4:/test/system/preferences_test.rb diff --git a/test/system/preferences_test.rb b/test/system/preferences_test.rb index 6a4d2397f..89728a36e 100644 --- a/test/system/preferences_test.rb +++ b/test/system/preferences_test.rb @@ -4,19 +4,19 @@ class PreferencesTest < ApplicationSystemTestCase def test_flash_message_shows_in_original_language sign_in_as(create(:user)) - visit edit_preferences_path + visit preferences_path click_on "Update Preferences" - assert page.has_content?("Preferences updated") + 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_on "Update Preferences" - assert page.has_content?("Préférences mises à jour") + assert_content "Préférences mises à jour" end end