DEV: Use proper wording for contexts in specs

This commit is contained in:
Loïc Guitaut
2022-07-27 18:14:14 +02:00
committed by Loïc Guitaut
parent 02987e05d5
commit 3eaac56797
337 changed files with 2172 additions and 2723 deletions

View File

@ -21,7 +21,7 @@ RSpec.describe WatchedWord do
WordWatcher.clear_cache!
end
context "block" do
context "with block" do
def should_block_post(manager)
expect {
result = manager.perform
@ -88,7 +88,7 @@ RSpec.describe WatchedWord do
end
end
context "require_approval" do
context "with require_approval" do
it "should queue the post for approval" do
manager = NewPostManager.new(tl2_user, raw: "My dog's name is #{require_approval_word.word}.", topic_id: topic.id)
result = manager.perform
@ -130,7 +130,7 @@ RSpec.describe WatchedWord do
end
end
context "flag" do
context "with flag" do
def should_flag_post(author, raw, topic)
post = Fabricate(:post, raw: raw, topic: topic, user: author)
expect {