mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Fix specs deprecations (#16059)
This commit is contained in:
@@ -73,7 +73,7 @@ RSpec.describe ReviewableQueuedPost, type: :model do
|
||||
expect(notifications).to be_present
|
||||
|
||||
# We can't approve twice
|
||||
expect(-> { reviewable.perform(moderator, :approve_post) }).to raise_error(Reviewable::InvalidAction)
|
||||
expect { reviewable.perform(moderator, :approve_post) }.to raise_error(Reviewable::InvalidAction)
|
||||
end
|
||||
|
||||
it "skips validations" do
|
||||
@@ -113,7 +113,7 @@ RSpec.describe ReviewableQueuedPost, type: :model do
|
||||
expect(Post.count).to eq(post_count)
|
||||
|
||||
# We can't reject twice
|
||||
expect(-> { reviewable.perform(moderator, :reject_post) }).to raise_error(Reviewable::InvalidAction)
|
||||
expect { reviewable.perform(moderator, :reject_post) }.to raise_error(Reviewable::InvalidAction)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user