Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyskoedijk committed Oct 23, 2024
1 parent 7dd6f8d commit 057d250
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 23 deletions.
2 changes: 1 addition & 1 deletion updater/spec/dependabot/update_files_command_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@

it "sends dependency metadata to the service" do
expect(service).to receive(:update_dependency_list)
.with(dependency_snapshot: an_instance_of(Dependabot::DependencySnapshot))
.with(dependency_snapshot: snapshot)

perform_job
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,36 +1,18 @@
{
"job": {
"allowed-updates": [
{
"dependency-type": "direct",
"update-type": "all"
},
{
"dependency-type": "indirect",
"update-type": "security"
}
],
"allowed-updates": [],
"credentials": [
{
"type": "git_source",
"host": "github.com",
"username": "x-access-token",
"password": "v1.exampletokenfromgithubinityesitisforsure"
},
{
"type": "rubygems_index",
"host": "my.rubygems-host.org",
"token": "secret"
}
],
"credentials-metadata": [
{
"type": "git_source",
"host": "github.com"
},
{
"type": "rubygems_index",
"host": "my.rubygems-host.org"
}
],
"dependencies": null,
Expand All @@ -39,10 +21,10 @@
"ignore-conditions": [],
"security-advisories": [],
"package_manager": "bundler",
"repo-name": "dependabot-fixtures/dependabot-test-ruby-package",
"repo-name": "dependabot-fixtures/dependabot-test-discovery",
"source": {
"provider": "github",
"repo": "dependabot-fixtures/dependabot-test-ruby-package",
"repo": "dependabot-fixtures/dependabot-test-discovery",
"directory": "/",
"branch": null,
"hostname": "github.com",
Expand All @@ -58,7 +40,7 @@
},
"base64_dependency_files":[
{
"name":"dependabot-test-ruby-package.gemspec",
"name":"dependabot-test-discovery.gemspec",
"content":"IyBmcm96ZW5fc3RyaW5nX2xpdGVyYWw6IHRydWUKCkdlbTo6U3BlY2lmaWNh\ndGlvbi5uZXcgZG8gfHNwZWN8CiAgc3BlYy5uYW1lICAgICA9ICdkZXBlbmRh\nYm90LXRlc3QtcnVieS1wYWNrYWdlJwogIHNwZWMudmVyc2lvbiAgPSAnMS4w\nLjEnCiAgc3BlYy5zdW1tYXJ5ICA9ICdBIGR1bW15IHBhY2thZ2UgZm9yIHRl\nc3RpbmcgRGVwZW5kYWJvdCcKICBzcGVjLmF1dGhvciAgID0gJ0RlcGVuZGFi\nb3QnCiAgc3BlYy5saWNlbnNlICA9ICdNSVQnCiAgc3BlYy5lbWFpbCAgICA9\nICdub3JlcGx5QGdpdGh1Yi5jb20nCiAgc3BlYy5ob21lcGFnZSA9ICdodHRw\nOi8vZ2l0aHViLmNvbS9kZXBlbmRhYm90LWZpeHR1cmVzL2RlcGVuZGFib3Qt\ndGVzdC1ydWJ5LXBhY2thZ2UnCmVuZAo=\n",
"directory":"/",
"type":"file",
Expand Down

0 comments on commit 057d250

Please sign in to comment.