diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-13 13:18:41 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-13 13:18:41 +0000 |
commit | d46a0a3a4fd91108da013bd2d348a575d9f860d6 (patch) | |
tree | fcd69cfcbc4ef2380401bb1a018bbbd2174b99b5 /test/unit | |
parent | 0a773bcbb3ecc5ae82abeb4b409e6f3225e14190 (diff) | |
download | redmine-d46a0a3a4fd91108da013bd2d348a575d9f860d6.tar.gz redmine-d46a0a3a4fd91108da013bd2d348a575d9f860d6.zip |
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
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/attachment_test.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb index ad759152f..8e6a58c9f 100644 --- a/test/unit/attachment_test.rb +++ b/test/unit/attachment_test.rb @@ -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)) |