summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-06 01:30:29 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-06 01:30:29 +0000
commitfab81930f7861b11969c35ade4cb8dd04c51e7c0 (patch)
tree3bfc9278256194b4c991af8f2265f2b4cf50ce39 /test
parent54de8a19d10d6eefeacf36e0d0c8bccff5b42941 (diff)
downloadredmine-fab81930f7861b11969c35ade4cb8dd04c51e7c0.tar.gz
redmine-fab81930f7861b11969c35ade4cb8dd04c51e7c0.zip
Rails4: replace hard-coded html with class at ApplicationHelperTest#test_link_to_user_should_link_to_locked_user_if_current_user_is_admin
See r12784 comment. git-svn-id: http://svn.redmine.org/redmine/trunk@12827 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/helpers/application_helper_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index 504981938..1b6218412 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -1145,7 +1145,8 @@ RAW
with_current_user User.find(1) do
user = User.find(5)
assert user.locked?
- assert_equal '<a href="/users/5" class="user locked">Dave2 Lopper2</a>', link_to_user(user)
+ result = link_to("Dave2 Lopper2", "/users/5", :class => "user locked")
+ assert_equal result, link_to_user(user)
end
end