summaryrefslogtreecommitdiffstats
path: root/test/functional/files_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/files_controller_test.rb')
-rw-r--r--test/functional/files_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/files_controller_test.rb b/test/functional/files_controller_test.rb
index 5e3c9d68b..8691a1818 100644
--- a/test/functional/files_controller_test.rb
+++ b/test/functional/files_controller_test.rb
@@ -68,7 +68,7 @@ class FilesControllerTest < ActionController::TestCase
end
end
assert_redirected_to '/projects/ecookbook/files'
- a = Attachment.find(:first, :order => 'created_on DESC')
+ a = Attachment.order('created_on DESC').first
assert_equal 'testfile.txt', a.filename
assert_equal Project.find(1), a.container
@@ -88,7 +88,7 @@ class FilesControllerTest < ActionController::TestCase
assert_response :redirect
end
assert_redirected_to '/projects/ecookbook/files'
- a = Attachment.find(:first, :order => 'created_on DESC')
+ a = Attachment.order('created_on DESC').first
assert_equal 'testfile.txt', a.filename
assert_equal Version.find(2), a.container
end