Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
greysteil committed Jul 23, 2021
1 parent accd319 commit 728eb8e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions maven/spec/dependabot/maven/update_checker/version_finder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,20 @@
let(:maven_central_releases) do
fixture("maven_central_metadata", "with_version_type_releases.xml")
end
let(:maven_central_version_files_url) do
"https://repo.maven.apache.org/maven2/"\
"com/thoughtworks/xstream/xstream/1.4.12-java7/xstream-1.4.12-java7.jar"
end
let(:dependency_version) { "1.4.11-java7" }
its([:version]) { is_expected.to eq(version_class.new("1.4.12-java7")) }

context "and the type is native-mt" do
let(:dependency_version) { "1.4.11-native-mt" }
let(:maven_central_version_files_url) do
"https://repo.maven.apache.org/maven2/"\
"com/thoughtworks/xstream/"\
"xstream/1.4.12-native-mt/xstream-1.4.12-native-mt.jar"
end
its([:version]) do
is_expected.to eq(version_class.new("1.4.12-native-mt"))
end
Expand All @@ -164,6 +173,10 @@
let(:maven_central_releases) do
fixture("maven_central_metadata", "with_version_type_releases.xml")
end
let(:maven_central_version_files_url) do
"https://repo.maven.apache.org/maven2/"\
"com/thoughtworks/xstream/xstream/1.4.12/xstream-1.4.12.jar"
end
let(:dependency_version) { "1.4.11.1" }
its([:version]) { is_expected.to eq(version_class.new("1.4.12")) }
end
Expand Down

0 comments on commit 728eb8e

Please sign in to comment.