Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundler: Delete unused fixture files #3454

Merged
merged 1 commit into from
Apr 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@
stub_request(:get, old_index_url + "?gems=business,statesman").
to_return(
status: 200,
body: fixture("ruby",
"rubygems_responses",
body: fixture("rubygems_responses",
"dependencies-default-gemfile")
)
end
Expand Down
6 changes: 3 additions & 3 deletions bundler/helpers/v1/spec/shared_contexts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,18 @@ def in_tmp_folder(&block)
stub_request(:get, "https://index.rubygems.org/versions").
to_return(
status: 200,
body: fixture("ruby", "rubygems_responses", "index")
body: fixture("rubygems_responses", "index")
)

# Stub the Rubygems response for each dependency we have a fixture for
fixtures =
Dir[File.join("../../spec", "fixtures", "ruby", "rubygems_responses", "info-*")]
Dir[File.join("../../spec", "fixtures", "rubygems_responses", "info-*")]
fixtures.each do |path|
dep_name = path.split("/").last.gsub("info-", "")
stub_request(:get, "https://index.rubygems.org/info/#{dep_name}").
to_return(
status: 200,
body: fixture("ruby", "rubygems_responses", "info-#{dep_name}")
body: fixture("rubygems_responses", "info-#{dep_name}")
)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@
stub_request(:get, old_index_url + "?gems=business,statesman").
to_return(
status: 200,
body: fixture("ruby",
"rubygems_responses",
body: fixture("rubygems_responses",
"dependencies-default-gemfile")
)
end
Expand Down
6 changes: 3 additions & 3 deletions bundler/helpers/v2/spec/shared_contexts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ def in_tmp_folder(&block)
stub_request(:get, "https://index.rubygems.org/versions").
to_return(
status: 200,
body: fixture("ruby", "rubygems_responses", "index")
body: fixture("rubygems_responses", "index")
)

# Stub the Rubygems response for each dependency we have a fixture for
fixtures =
Dir[File.join("../../spec", "fixtures", "ruby", "rubygems_responses", "info-*")]
Dir[File.join("../../spec", "fixtures", "rubygems_responses", "info-*")]
fixtures.each do |path|
dep_name = path.split("/").last.gsub("info-", "")
stub_request(:get, "https://index.rubygems.org/info/#{dep_name}").
to_return(
status: 200,
body: fixture("ruby", "rubygems_responses", "info-#{dep_name}")
body: fixture("rubygems_responses", "info-#{dep_name}")
)
end
end
Expand Down
8 changes: 4 additions & 4 deletions bundler/spec/dependabot/bundler/metadata_finder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"https://repo.fury.io/grey/quick/Marshal.4.8/business-1.0.gemspec.rz"
end
let(:gemspec_response) do
fixture("ruby", "rubygems_responses", "business-1.0.0.gemspec.rz")
fixture("rubygems_responses", "business-1.0.0.gemspec.rz")
end
let(:rubygems_response) { fixture("ruby", "rubygems_response.json") }
before do
Expand Down Expand Up @@ -377,7 +377,7 @@

context "when there is a changelog link in the rubygems response" do
let(:rubygems_response) do
fixture("ruby", "rubygems_responses", "api_changelog_uri.json")
fixture("rubygems_responses", "api_changelog_uri.json")
end

it "gets the URL from the changelog_uri" do
Expand Down Expand Up @@ -421,7 +421,7 @@
"https://repo.fury.io/grey/quick/Marshal.4.8/business-1.0.gemspec.rz"
end
let(:gemspec_response) do
fixture("ruby", "rubygems_responses", "business-1.0.0.gemspec.rz")
fixture("rubygems_responses", "business-1.0.0.gemspec.rz")
end

context "but the response is a 400" do
Expand All @@ -440,7 +440,7 @@
context "and there is a changelog URL in the gemspec" do
let(:gemspec_response) do
fixture(
"ruby", "rubygems_responses", "activerecord-5.2.1.gemspec.rz"
"rubygems_responses", "activerecord-5.2.1.gemspec.rz"
)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
end

let(:rubygems_versions) do
fixture("ruby", "rubygems_responses", "versions-public_suffix.json")
fixture("rubygems_responses", "versions-public_suffix.json")
end

before do
Expand Down
6 changes: 0 additions & 6 deletions bundler/spec/fixtures/ruby/gemfiles/Gemfile

This file was deleted.

6 changes: 0 additions & 6 deletions bundler/spec/fixtures/ruby/gemfiles/bad_branch

This file was deleted.

6 changes: 0 additions & 6 deletions bundler/spec/fixtures/ruby/gemfiles/bad_branch_business

This file was deleted.

6 changes: 0 additions & 6 deletions bundler/spec/fixtures/ruby/gemfiles/bad_ref

This file was deleted.

4 changes: 0 additions & 4 deletions bundler/spec/fixtures/ruby/gemfiles/block_source_rubygems

This file was deleted.

6 changes: 0 additions & 6 deletions bundler/spec/fixtures/ruby/gemfiles/blocked_by_subdep

This file was deleted.

8 changes: 0 additions & 8 deletions bundler/spec/fixtures/ruby/gemfiles/bundler_specified

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions bundler/spec/fixtures/ruby/gemfiles/cant_unlock_subdep

This file was deleted.

4 changes: 0 additions & 4 deletions bundler/spec/fixtures/ruby/gemfiles/comments

This file was deleted.

5 changes: 0 additions & 5 deletions bundler/spec/fixtures/ruby/gemfiles/config_variable_source

This file was deleted.

8 changes: 0 additions & 8 deletions bundler/spec/fixtures/ruby/gemfiles/default_gem_specified

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions bundler/spec/fixtures/ruby/gemfiles/eval_gemfile

This file was deleted.

6 changes: 0 additions & 6 deletions bundler/spec/fixtures/ruby/gemfiles/eval_gemfile_absolute

This file was deleted.

7 changes: 0 additions & 7 deletions bundler/spec/fixtures/ruby/gemfiles/eval_gemfile_variable

This file was deleted.

6 changes: 0 additions & 6 deletions bundler/spec/fixtures/ruby/gemfiles/exec_error

This file was deleted.

5 changes: 0 additions & 5 deletions bundler/spec/fixtures/ruby/gemfiles/explicit_ruby

This file was deleted.

5 changes: 0 additions & 5 deletions bundler/spec/fixtures/ruby/gemfiles/explicit_ruby_old

This file was deleted.

5 changes: 0 additions & 5 deletions bundler/spec/fixtures/ruby/gemfiles/function_version

This file was deleted.

3 changes: 0 additions & 3 deletions bundler/spec/fixtures/ruby/gemfiles/gem_with_number

This file was deleted.

10 changes: 0 additions & 10 deletions bundler/spec/fixtures/ruby/gemfiles/git_source

This file was deleted.

5 changes: 0 additions & 5 deletions bundler/spec/fixtures/ruby/gemfiles/git_source_circular

This file was deleted.

5 changes: 0 additions & 5 deletions bundler/spec/fixtures/ruby/gemfiles/git_source_internal

This file was deleted.

4 changes: 0 additions & 4 deletions bundler/spec/fixtures/ruby/gemfiles/git_source_no_ref

This file was deleted.

7 changes: 0 additions & 7 deletions bundler/spec/fixtures/ruby/gemfiles/git_source_undeclared

This file was deleted.

10 changes: 0 additions & 10 deletions bundler/spec/fixtures/ruby/gemfiles/git_source_unparseable

This file was deleted.

6 changes: 0 additions & 6 deletions bundler/spec/fixtures/ruby/gemfiles/git_source_unreleased

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions bundler/spec/fixtures/ruby/gemfiles/git_source_with_version

This file was deleted.

5 changes: 0 additions & 5 deletions bundler/spec/fixtures/ruby/gemfiles/github_source

This file was deleted.

4 changes: 0 additions & 4 deletions bundler/spec/fixtures/ruby/gemfiles/gte_matcher

This file was deleted.

7 changes: 0 additions & 7 deletions bundler/spec/fixtures/ruby/gemfiles/imports_gemspec

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading