summaryrefslogtreecommitdiffstats
path: root/test/unit/issue_relation_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-12-15 11:02:24 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-12-15 11:02:24 +0000
commit77665b52523d13532c16c97090b83c7ef88e2b62 (patch)
tree1cdc7cc7be982e543bda47d47efaeb8c60966e6f /test/unit/issue_relation_test.rb
parent13756eb3a830e04493ebc048ae72e9271df4411c (diff)
downloadredmine-77665b52523d13532c16c97090b83c7ef88e2b62.tar.gz
redmine-77665b52523d13532c16c97090b83c7ef88e2b62.zip
Store relation type instead of i18n key in journals (#15704).
git-svn-id: http://svn.redmine.org/redmine/trunk@12416 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_relation_test.rb')
-rw-r--r--test/unit/issue_relation_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/issue_relation_test.rb b/test/unit/issue_relation_test.rb
index 6fc408353..7da6147fd 100644
--- a/test/unit/issue_relation_test.rb
+++ b/test/unit/issue_relation_test.rb
@@ -183,11 +183,11 @@ class IssueRelationTest < ActiveSupport::TestCase
assert_equal from.journals.size, (from_journals + 1)
assert_equal to.journals.size, (to_journals + 1)
assert_equal 'relation', from.journals.last.details.last.property
- assert_equal 'label_precedes', from.journals.last.details.last.prop_key
+ assert_equal 'precedes', from.journals.last.details.last.prop_key
assert_equal '2', from.journals.last.details.last.value
assert_nil from.journals.last.details.last.old_value
assert_equal 'relation', to.journals.last.details.last.property
- assert_equal 'label_follows', to.journals.last.details.last.prop_key
+ assert_equal 'follows', to.journals.last.details.last.prop_key
assert_equal '1', to.journals.last.details.last.value
assert_nil to.journals.last.details.last.old_value
end
@@ -205,11 +205,11 @@ class IssueRelationTest < ActiveSupport::TestCase
assert_equal from.journals.size, (from_journals + 1)
assert_equal to.journals.size, (to_journals + 1)
assert_equal 'relation', from.journals.last.details.last.property
- assert_equal 'label_blocks', from.journals.last.details.last.prop_key
+ assert_equal 'blocks', from.journals.last.details.last.prop_key
assert_equal '9', from.journals.last.details.last.old_value
assert_nil from.journals.last.details.last.value
assert_equal 'relation', to.journals.last.details.last.property
- assert_equal 'label_blocked_by', to.journals.last.details.last.prop_key
+ assert_equal 'blocked', to.journals.last.details.last.prop_key
assert_equal '10', to.journals.last.details.last.old_value
assert_nil to.journals.last.details.last.value
end