Skip to content

Commit

Permalink
update spec parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
kbukum1 committed Oct 21, 2024
1 parent faf6223 commit 7fb3ee1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions common/spec/dependabot/package_manager_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
let(:concrete_class) do
Class.new(Dependabot::PackageManagerBase) do
def initialize
raw_version = "1.0.0"
super(
"bundler", # ecosystem
"bundler", # name
Dependabot::Version.new("1.0.0"), # version
raw_version,
Dependabot::Version.new(raw_version), # version
[Dependabot::Version.new("1")], # deprecated_versions
[Dependabot::Version.new("1"), Dependabot::Version.new("2")] # supported_versions
)
Expand Down Expand Up @@ -40,10 +42,12 @@ def support_later_versions?
let(:default_concrete_class) do
Class.new(Dependabot::PackageManagerBase) do
def initialize
raw_version = "1.0.0"
super(
"bundler", # ecosystem
"bundler", # name
Dependabot::Version.new("1.0.0"), # version
raw_version,
Dependabot::Version.new(raw_version), # version
)
end
end
Expand Down

0 comments on commit 7fb3ee1

Please sign in to comment.