Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerWitt committed Jan 26, 2025
1 parent 2fd51f7 commit d441c76
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions hex/spec/dependabot/hex/file_parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -391,24 +391,31 @@
package_manager: "hex"
)
)
expect(dependencies).to include(
Dependabot::Dependency.new(
name: "plug",
version: "1.3.6",
requirements: [{
requirement: "~> 1.3.0",
file: "apps/dependabot_business/mix.exs",
groups: [],
source: nil
}, {
requirement: "1.3.6",
file: "apps/dependabot_web/mix.exs",
groups: [],
source: nil
}],
package_manager: "hex"
)

plug_expectation = Dependabot::Dependency.new(
name: "plug",
version: "1.3.6",
requirements: [{
requirement: "~> 1.3.0",
file: "apps/dependabot_business/mix.exs",
groups: [],
source: nil
}, {
requirement: "1.3.6",
file: "apps/dependabot_web/mix.exs",
groups: [],
source: nil
}],
package_manager: "hex"
)

plug_dep = dependencies.find { |d| d.name == "plug" }

expect(plug_dep.name).to eq(plug_expectation.name)
expect(plug_dep.version).to eq(plug_expectation.version)
expect(plug_dep.requirements).to match_array(plug_expectation.requirements)
expect(plug_dep.package_manager).to eq(plug_expectation.package_manager)

expect(dependencies).to include(
Dependabot::Dependency.new(
name: "distillery",
Expand Down

0 comments on commit d441c76

Please sign in to comment.