Browse Source

Fix form spec

pull/2746/head
Rachael Booth 8 months ago
parent
commit
1349b053e8
  1. 4
      spec/models/form_spec.rb

4
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 context "and attribute Y is changed such that it is no longer routed to" do
it "the value of this attribute is cleared" 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.staircase = 2
log.form.reset_not_routed_questions_and_invalid_answers(log) 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 end
end end

Loading…
Cancel
Save