rubocop: fix various style issues.
This commit is contained in:
@@ -117,16 +117,16 @@ class ForumTopicsControllerTest < ActionDispatch::IntegrationTest
|
||||
get forum_topics_path, params: {:search => {:title_matches => "forum"}}
|
||||
assert_response :success
|
||||
assert_select "a.forum-post-link", @forum_topic.title
|
||||
assert_select "a.forum-post-link", {count: 0, text: @topic1.title}
|
||||
assert_select "a.forum-post-link", {count: 0, text: @topic2.title}
|
||||
assert_select "a.forum-post-link", count: 0, text: @topic1.title
|
||||
assert_select "a.forum-post-link", count: 0, text: @topic2.title
|
||||
end
|
||||
|
||||
should "list nothing for when the search matches nothing" do
|
||||
get forum_topics_path, params: {:search => {:title_matches => "bababa"}}
|
||||
assert_response :success
|
||||
assert_select "a.forum-post-link", {count: 0, text: @forum_topic.title}
|
||||
assert_select "a.forum-post-link", {count: 0, text: @topic1.title}
|
||||
assert_select "a.forum-post-link", {count: 0, text: @topic2.title}
|
||||
assert_select "a.forum-post-link", count: 0, text: @forum_topic.title
|
||||
assert_select "a.forum-post-link", count: 0, text: @topic1.title
|
||||
assert_select "a.forum-post-link", count: 0, text: @topic2.title
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user