mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
DEV: Correct test names
This commit is contained in:
parent
f1f9648e88
commit
330d1ae9bc
1 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ describe PostActionCreator do
|
||||||
expect(result.success?).to eq(false)
|
expect(result.success?).to eq(false)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "succesfully flags the post if it was edited after being reviewed" do
|
it "succesfully flags the post if it was reviewed more than 24 hours ago" do
|
||||||
reviewable.update!(updated_at: 25.hours.ago)
|
reviewable.update!(updated_at: 25.hours.ago)
|
||||||
post.last_version_at = 30.hours.ago
|
post.last_version_at = 30.hours.ago
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ describe PostActionCreator do
|
||||||
expect(result.reviewable).to be_present
|
expect(result.reviewable).to be_present
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'succesfully flags the post if it was reviewed more than 24 hours ago' do
|
it "succesfully flags the post if it was edited after being reviewed" do
|
||||||
reviewable.update!(updated_at: 10.minutes.ago)
|
reviewable.update!(updated_at: 10.minutes.ago)
|
||||||
post.last_version_at = 1.minute.ago
|
post.last_version_at = 1.minute.ago
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue