]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/preferences_test.rb
Make preferences page editable without clicking 'Edit Preferences'
[rails.git] / test / system / preferences_test.rb
index 59a7209f5b4d3728fbb8f3049e4db4a03f0326f4..89728a36ee35658d5e477e6fcae4e66db792a6e2 100644 (file)
@@ -4,7 +4,7 @@ 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_content "Preferences updated"
@@ -13,7 +13,7 @@ class PreferencesTest < ApplicationSystemTestCase
   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"