From f91342d6d090223f2198c48be8a6cd2893f3ed91 Mon Sep 17 00:00:00 2001 From: Philip Harrison Date: Mon, 29 Mar 2021 14:52:22 +0100 Subject: [PATCH] Use project fixtures for GitSourceRemover --- .../bundler/file_updater/git_source_remover_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundler/spec/dependabot/bundler/file_updater/git_source_remover_spec.rb b/bundler/spec/dependabot/bundler/file_updater/git_source_remover_spec.rb index 2ef07dee0d..83764e89f5 100644 --- a/bundler/spec/dependabot/bundler/file_updater/git_source_remover_spec.rb +++ b/bundler/spec/dependabot/bundler/file_updater/git_source_remover_spec.rb @@ -21,7 +21,9 @@ describe "#rewrite" do subject(:rewrite) { remover.rewrite(content) } - let(:content) { fixture("ruby", "gemfiles", "git_source") } + let(:content) do + bundler_project_dependency_file("git_source", filename: "Gemfile").content + end context "with a dependency that specifies a ref" do let(:dependency_name) { "business" }