Skip to content

Commit

Permalink
Adjust code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Läubrich committed Jan 29, 2025
1 parent 9cb47d0 commit 1372e10
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions maven/spec/dependabot/maven/file_fetcher_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,21 @@
it { is_expected.to be(false) }
end
end

before do
allow(file_fetcher_instance).to receive(:commit).and_return("sha")

stub_request(:get, File.join(url, ".mvn?ref=sha")).
with(headers: { "Authorization" => "token token" }).
to_return(
status: 404
)
stub_request(:get, /.*\?ref=sha/).
with(headers: { "Authorization" => "token token" }).
to_return(
status: 404
)
end

context "with a basic pom" do
before do
Expand Down

0 comments on commit 1372e10

Please sign in to comment.