mirror of
https://github.com/redmine/redmine.git
synced 2026-03-05 20:11:36 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user