rubocop: fix various style issues.
This commit is contained in:
@@ -64,7 +64,7 @@ module Moderator
|
||||
end
|
||||
end
|
||||
|
||||
context "for notes"do
|
||||
context "for notes" do
|
||||
setup do
|
||||
as(@user) do
|
||||
@post = create(:post)
|
||||
|
||||
@@ -6,7 +6,7 @@ module Moderator
|
||||
setup do
|
||||
PoolArchive.delete_all
|
||||
PostArchive.delete_all
|
||||
|
||||
|
||||
travel_to(1.month.ago) do
|
||||
@user = create(:moderator_user)
|
||||
end
|
||||
|
||||
@@ -26,7 +26,7 @@ module Moderator
|
||||
assert_difference("PostDisapproval.count", 1) do
|
||||
post_auth moderator_post_disapprovals_path, @admin, params: { post_disapproval: { post_id: @post.id, reason: "breaks_rules" }, format: "json" }
|
||||
end
|
||||
assert_response :success
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -9,7 +9,7 @@ module Moderator
|
||||
travel_to(1.month.ago) do
|
||||
@user = create(:gold_user)
|
||||
end
|
||||
|
||||
|
||||
as_user do
|
||||
@post = create(:post)
|
||||
end
|
||||
@@ -69,7 +69,7 @@ module Moderator
|
||||
@child = create(:post, parent: @parent)
|
||||
end
|
||||
users = FactoryBot.create_list(:user, 2)
|
||||
users.each do |u|
|
||||
users.each do |u|
|
||||
@child.add_favorite!(u)
|
||||
@child.reload
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user