Remove if_user and similar methods

Rather than hiding features based on CSS, just avoid including them
in the output. Fixes #1862
This commit is contained in:
Andy Allan 2018-05-16 13:05:20 +08:00
parent 5da01b92c5
commit e1c62f1bf2
13 changed files with 73 additions and 202 deletions

View file

@ -12,7 +12,9 @@ class UserChangesetCommentsTest < ActionDispatch::IntegrationTest
assert_select "div#sidebar" do
assert_select "div#sidebar_content" do
assert_select "div.browse-section" do
assert_select "div.notice.hide_if_logged_in"
assert_select "div.notice" do
assert_select "a[href='/login?referer=%2Fchangeset%2F#{changeset.id}']", :text => I18n.t("browse.changeset.join_discussion"), :count => 1
end
end
end
end