From 1349b053e81da22eef40b7552473710444b8c65c Mon Sep 17 00:00:00 2001 From: Rachael Booth Date: Fri, 1 Nov 2024 11:34:41 +0000 Subject: [PATCH] Fix form spec --- spec/models/form_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/form_spec.rb b/spec/models/form_spec.rb index c51f71d3f..0d32f3913 100644 --- a/spec/models/form_spec.rb +++ b/spec/models/form_spec.rb @@ -282,10 +282,10 @@ RSpec.describe Form, type: :model do context "and attribute Y is changed such that it is no longer routed to" do it "the value of this attribute is cleared" do - expect(log.stairbought).to be 25 + expect(log.stairbought).to eq 25 log.staircase = 2 log.form.reset_not_routed_questions_and_invalid_answers(log) - expect(log.stairbought).to be nil + expect(log.stairbought).to be_nil end end end