Link GPX fixture files instead of stubbing
[rails.git] / test / controllers / user_controller_test.rb
index a5d723c91f0f8d0dc3881474d4a07ee76e409c27..0276186316217819a7f88a6340caf9373a50cbd4 100644 (file)
@@ -813,7 +813,7 @@ class UserControllerTest < ActionController::TestCase
     assert_select "form#accountForm > fieldset > div.form-row > select#user_preferred_editor > option[selected]", false
 
     # Changing to an uploaded image should work
-    image = Rack::Test::UploadedFile.new("test/traces/a.gif", "image/gif")
+    image = Rack::Test::UploadedFile.new("test/gpx/fixtures/a.gif", "image/gif")
     post :account, { :display_name => user.display_name, :image_action => "new", :user => user.attributes.merge(:image => image) }, { :user => user.id }
     assert_response :success
     assert_template :account