diff --git a/spec/proposals/system/amendable/amendment_diff_spec.rb b/spec/proposals/system/amendable/amendment_diff_spec.rb index 746f86e..22f6f6b 100644 --- a/spec/proposals/system/amendable/amendment_diff_spec.rb +++ b/spec/proposals/system/amendable/amendment_diff_spec.rb @@ -136,11 +136,11 @@ let(:user) { proposal.creator_author } before do + login_as user, scope: :user proposal.update(title: { en: "Updated long enough title" }, body: { en: "Updated one liner body" }) # The last version of the emendation should hold the amending attribute values. emendation.update(title: { en: "Amended long enough title" }, body: { en: "Amended one liner body" }) visit emendation_path - login_as user, scope: :user visit decidim.review_amend_path(amendment) end