- html = unless_user(users(:normal_user), :span) { "Test 2" }
- assert_equal "<span class=\"hide_if_user_1\">Test 2</span>", html
+ html = unless_user(user) { "Test 1" }
+ assert_dom_equal "<div class=\"hide_if_user_#{user.id}\">Test 1</div>", html
+
+ html = unless_user(user, :span) { "Test 2" }
+ assert_dom_equal "<span class=\"hide_if_user_#{user.id}\">Test 2</span>", html