NoMethodError: private method `now' called for DateTime:Class error in tests with ruby < 1.9.3 (#5298).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10993 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0a773bcbb3
commit
d46a0a3a4f
@ -138,9 +138,6 @@ class AttachmentTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def test_identical_attachments_at_the_same_time_should_not_overwrite
|
||||
time = DateTime.now
|
||||
DateTime.stubs(:now).returns(time)
|
||||
|
||||
a1 = Attachment.create!(:container => Issue.find(1),
|
||||
:file => uploaded_test_file("testfile.txt", ""),
|
||||
:author => User.find(1))
|
||||
|
Loading…
x
Reference in New Issue
Block a user