From 330d1ae9bce78d7614be288b2e5d06d496d00fc6 Mon Sep 17 00:00:00 2001 From: romanrizzi Date: Mon, 17 Feb 2020 11:46:45 -0300 Subject: [PATCH] DEV: Correct test names --- spec/components/post_action_creator_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/components/post_action_creator_spec.rb b/spec/components/post_action_creator_spec.rb index dd5c97f560d..3c50cab11b6 100644 --- a/spec/components/post_action_creator_spec.rb +++ b/spec/components/post_action_creator_spec.rb @@ -127,7 +127,7 @@ describe PostActionCreator do expect(result.success?).to eq(false) 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) post.last_version_at = 30.hours.ago @@ -137,7 +137,7 @@ describe PostActionCreator do expect(result.reviewable).to be_present 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) post.last_version_at = 1.minute.ago