Skip to content

Commit

Permalink
revert back removed spec
Browse files Browse the repository at this point in the history
  • Loading branch information
kbukum1 committed Nov 6, 2024
1 parent 79f42a9 commit a1e5ea3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions bundler/spec/dependabot/bundler/package_manager_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,26 @@
end
end

context "when version is a Dependabot::Bundler::Version" do
let(:version) { "2" }

it "sets the version correctly" do
expect(package_manager.version).to eq(version)
end

it "sets the name correctly" do
expect(package_manager.name).to eq(Dependabot::Bundler::PACKAGE_MANAGER)
end

it "sets the deprecated_versions correctly" do
expect(package_manager.deprecated_versions).to eq(Dependabot::Bundler::DEPRECATED_BUNDLER_VERSIONS)
end

it "sets the supported_versions correctly" do
expect(package_manager.supported_versions).to eq(Dependabot::Bundler::SUPPORTED_BUNDLER_VERSIONS)
end
end

context "when a requirement is provided" do
let(:version) { "2.1" }
let(:requirement) { Dependabot::Bundler::Requirement.new(">= 1.12.0, ~> 2.3.0") }
Expand Down

0 comments on commit a1e5ea3

Please sign in to comment.