summaryrefslogtreecommitdiffstats
path: root/test/unit/attachment_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/attachment_test.rb')
-rw-r--r--test/unit/attachment_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb
index 1b292b9bf..6af8b79d7 100644
--- a/test/unit/attachment_test.rb
+++ b/test/unit/attachment_test.rb
@@ -113,13 +113,13 @@ class AttachmentTest < ActiveSupport::TestCase
end
def test_filesize_greater_than_2gb_should_be_supported
- with_settings :attachment_max_size => (50.gigabyte / 1024) do
+ with_settings :attachment_max_size => (50.gigabytes / 1024) do
a = Attachment.create!(:container => Issue.find(1),
:file => uploaded_test_file("testfile.txt", "text/plain"),
:author => User.find(1))
- a.filesize = 20.gigabyte
+ a.filesize = 20.gigabytes
a.save!
- assert_equal 20.gigabyte, a.reload.filesize
+ assert_equal 20.gigabytes, a.reload.filesize
end
end