From 4b199916e9fc31a41b509f416c8a012bb8d5e639 Mon Sep 17 00:00:00 2001 From: Sam Seed Date: Wed, 8 Feb 2023 16:00:49 +0000 Subject: [PATCH] test: refactor duplicate log test --- spec/services/bulk_upload/lettings/row_parser_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/services/bulk_upload/lettings/row_parser_spec.rb b/spec/services/bulk_upload/lettings/row_parser_spec.rb index 20d9fba68..9bfb366bf 100644 --- a/spec/services/bulk_upload/lettings/row_parser_spec.rb +++ b/spec/services/bulk_upload/lettings/row_parser_spec.rb @@ -195,8 +195,11 @@ RSpec.describe BulkUpload::Lettings::RowParser do end context "when the log already exists in the db" do + before do + parser.log.save! + end + it "is not a valid row" do - parser.log.save expect(parser).not_to be_valid end end