Skip to content

Commit

Permalink
register the bundler package manager for the job to parse
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishnha committed Apr 24, 2024
1 parent aff6df5 commit d3da0b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions updater/spec/dependabot/update_files_command_spec.rb
Expand Up @@ -4,6 +4,8 @@
require "spec_helper"
require "dependabot/exception_capturer"
require "dependabot/update_files_command"
require "dependabot/file_parsers"
require "dependabot/bundler"
require "tmpdir"

RSpec.describe Dependabot::UpdateFilesCommand do
Expand All @@ -25,6 +27,7 @@
let(:job_id) { "123123" }

before do
Dependabot::FileParsers.register("bundler", ::Dependabot::Bundler::FileParser)
allow(Dependabot::Service).to receive(:new).and_return(service)
allow(Dependabot::Environment).to receive(:job_id).and_return(job_id)
allow(Dependabot::Environment).to receive(:job_token).and_return("mock_token")
Expand Down

0 comments on commit d3da0b1

Please sign in to comment.