Skip to content

Commit

Permalink
Fix RSpec/VerifiedDoubles linting errors
Browse files Browse the repository at this point in the history
By swapping the doubles with `OpenStruct`s.
  • Loading branch information
thomasleese committed Jul 2, 2024
1 parent 7dec74c commit e5e26f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
let(:id) { "id" }

let(:model) do
double(
OpenStruct.new(
string: "String value",
number: 10,
date: Date.new(2020, 1, 1),
Expand Down
2 changes: 1 addition & 1 deletion spec/helpers/proof_of_recognition_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/history_stack_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5e26f7

Please sign in to comment.