diff --git a/spec/components/check_your_answers_summary_component_spec.rb b/spec/components/check_your_answers_summary_component_spec.rb index bafbab2d2..9ecff8f13 100644 --- a/spec/components/check_your_answers_summary_component_spec.rb +++ b/spec/components/check_your_answers_summary_component_spec.rb @@ -21,7 +21,7 @@ let(:id) { "id" } let(:model) do - double( + OpenStruct.new( string: "String value", number: 10, date: Date.new(2020, 1, 1), diff --git a/spec/helpers/proof_of_recognition_helper_spec.rb b/spec/helpers/proof_of_recognition_helper_spec.rb index 0e02c6dd8..2e6c06113 100644 --- a/spec/helpers/proof_of_recognition_helper_spec.rb +++ b/spec/helpers/proof_of_recognition_helper_spec.rb @@ -4,7 +4,7 @@ RSpec.describe ProofOfRecognitionHelper do let(:region) do - double( + OpenStruct.new( name: "Region Name", status_check_written?: status, status_check_online?: status, diff --git a/spec/lib/history_stack_spec.rb b/spec/lib/history_stack_spec.rb index fa94b0ece..4ddfec9fe 100644 --- a/spec/lib/history_stack_spec.rb +++ b/spec/lib/history_stack_spec.rb @@ -10,7 +10,7 @@ history_stack.push_self(request, origin:, check:, reset:) end - let(:request) { double(fullpath: "/path?page=1") } + let(:request) { OpenStruct.new(fullpath: "/path?page=1") } let(:check) { false } context "with an empty session" do