]> source.dussan.org Git - redmine.git/commitdiff
NoMethodError: private method `now' called for DateTime:Class error in tests with...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 13 Dec 2012 13:18:41 +0000 (13:18 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 13 Dec 2012 13:18:41 +0000 (13:18 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10993 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/attachment_test.rb

index ad759152f9809213fb2761039355a65561286b41..8e6a58c9f875917e21d9194faf9be6b35d122ff4 100644 (file)
@@ -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))