Skip to content

Commit

Permalink
Fix spec by passing Hash instead of kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawa Ometto authored and dometto committed Jan 7, 2023
1 parent 0cf8d93 commit 0d6854d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/dependency_worker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def to_s
header = "Bearer #{token}"
worker.instance_variable_set(:@auth_token, token)
expect(::CuttingEdge::GitlabRepository).to receive(:headers).with(token).exactly(:once).and_call_original
expect(HTTP).to receive(:headers).with(:authorization => 'Bearer token').exactly(:once).and_call_original
expect(HTTP).to receive(:headers).with({:authorization => 'Bearer token'}).exactly(:once).and_call_original
expect_any_instance_of(HTTP::Client).to receive(:get).with(url).and_return(response_ok)
expect(worker.send(:http_get, url)).to eq 'body'
end
Expand Down Expand Up @@ -131,4 +131,4 @@ def to_s
end

end
end
end

0 comments on commit 0d6854d

Please sign in to comment.