diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-06 01:30:29 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-06 01:30:29 +0000 |
commit | fab81930f7861b11969c35ade4cb8dd04c51e7c0 (patch) | |
tree | 3bfc9278256194b4c991af8f2265f2b4cf50ce39 /test | |
parent | 54de8a19d10d6eefeacf36e0d0c8bccff5b42941 (diff) | |
download | redmine-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.rb | 3 |
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 |