Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
bdragon committed Mar 26, 2024
1 parent 3c7c8d3 commit 83b0ae4
Showing 1 changed file with 14 additions and 0 deletions.
Expand Up @@ -231,4 +231,18 @@
group_update_all.perform
end
end

describe "#deduce_updated_dependency" do
it "returns nil if dependency is nil" do
dependency = nil
original_dependency = dependency_snapshot.dependencies.first
expect(group_update_all.deduce_updated_dependency(dependency, original_dependency)).to eq(nil)
end

it "returns nil if original_dependency is nil" do
dependency = dependency_snapshot.dependencies.first
original_dependency = nil
expect(group_update_all.deduce_updated_dependency(dependency, original_dependency)).to eq(nil)
end
end
end

0 comments on commit 83b0ae4

Please sign in to comment.