]> source.dussan.org Git - redmine.git/commitdiff
Fix "unexpected invocation" test failure in IssueTest with Mocha 2.2.0 (#40603).
authorGo MAEDA <maeda@farend.jp>
Tue, 23 Apr 2024 01:43:07 +0000 (01:43 +0000)
committerGo MAEDA <maeda@farend.jp>
Tue, 23 Apr 2024 01:43:07 +0000 (01:43 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22786 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/issue_test.rb

index 599c0046dd8d3e579b70aa0f004d9974ed896766..21a295aa1753abb652fd420b0d70cc1b382d471c 100644 (file)
@@ -707,9 +707,6 @@ class IssueTest < ActiveSupport::TestCase
     issue.expects(:project_id=).in_sequence(seq)
     issue.expects(:tracker_id=).in_sequence(seq)
     issue.expects(:subject=).in_sequence(seq)
-    assert_raise Exception do
-      issue.attributes = {:subject => 'Test'}
-    end
     assert_nothing_raised do
       issue.attributes = {:tracker_id => 2, :project_id => 1, :subject => 'Test'}
     end