summaryrefslogtreecommitdiffstats
path: root/test/unit/role_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-03 08:04:13 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-03 08:04:13 +0000
commit44c748f968f6a82e6dab444e6b9127f5a342f0e2 (patch)
tree1b10207d8d1198cf6cb2d6f731d14ca5a824e02d /test/unit/role_test.rb
parentf6defca16de748d8481dd857b31322eec0162b20 (diff)
downloadredmine-44c748f968f6a82e6dab444e6b9127f5a342f0e2.tar.gz
redmine-44c748f968f6a82e6dab444e6b9127f5a342f0e2.zip
Use regular instance methods instead of association extensions.
Rails 5.1 seems to mess things up in this particular case (role.workflow_rules.copy calls the extension declare in Tracker model). git-svn-id: http://svn.redmine.org/redmine/trunk@16597 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/role_test.rb')
-rw-r--r--test/unit/role_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/role_test.rb b/test/unit/role_test.rb
index 092df322e..9ddac8c77 100644
--- a/test/unit/role_test.rb
+++ b/test/unit/role_test.rb
@@ -59,7 +59,7 @@ class RoleTest < ActiveSupport::TestCase
target = Role.new(:name => 'Target')
assert target.save
- target.workflow_rules.copy(source)
+ target.copy_workflow_rules(source)
target.reload
assert_equal rule_count, target.workflow_rules.size
end