mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
DEV: Use proper wording for contexts in specs
This commit is contained in:

committed by
Loïc Guitaut

parent
02987e05d5
commit
3eaac56797
@ -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 {
|
||||
|
Reference in New Issue
Block a user