- html = if_user(users(:normal_user), :span) { "Test 2" }
- assert_dom_equal "<span class=\"hidden show_if_user_1\">Test 2</span>", html
+ html = if_user(user) { "Test 1" }
+ assert_dom_equal "<div class=\"hidden show_if_user_#{user.id}\">Test 1</div>", html
+
+ html = if_user(user, :span) { "Test 2" }
+ assert_dom_equal "<span class=\"hidden show_if_user_#{user.id}\">Test 2</span>", html