ban fixes
This commit is contained in:
@@ -31,8 +31,8 @@ class PostDisapprovalTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
should "remove the associated post from alice's moderation queue" do
|
||||
assert(!Post.available_for_moderation.map(&:id).include?(@post_1.id))
|
||||
assert(Post.available_for_moderation.map(&:id).include?(@post_2.id))
|
||||
assert(!Post.available_for_moderation(false).map(&:id).include?(@post_1.id))
|
||||
assert(Post.available_for_moderation(false).map(&:id).include?(@post_2.id))
|
||||
end
|
||||
end
|
||||
|
||||
@@ -43,8 +43,8 @@ class PostDisapprovalTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
should "not remove the associated post from brittony's moderation queue" do
|
||||
assert(Post.available_for_moderation.map(&:id).include?(@post_1.id))
|
||||
assert(Post.available_for_moderation.map(&:id).include?(@post_2.id))
|
||||
assert(Post.available_for_moderation(false).map(&:id).include?(@post_1.id))
|
||||
assert(Post.available_for_moderation(false).map(&:id).include?(@post_2.id))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user