Skip to content

Commit

Permalink
fixup! Refactor Dependency with git and path properties
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Feb 11, 2020
1 parent fea2da6 commit de8f216
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/git_resolver_test.cr
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ module Shards
end

def test_origin_changed
dependency = Dependency.new("library", {"git" => git_url("library")})
dependency = Dependency.new("library")
dependency.git = git_url("library")
library = GitResolver.new(dependency)
library.install("0.1.2")

Expand All @@ -62,7 +63,7 @@ module Shards
]

same_origins.each do |origin|
dependency["git"] = origin
dependency.git = origin
refute library.origin_changed?, origin
end

Expand All @@ -78,7 +79,7 @@ module Shards
]

changed_origins.each do |origin|
dependency["git"] = origin
dependency.git = origin
assert library.origin_changed?, origin
end
end
Expand Down

0 comments on commit de8f216

Please sign in to comment.