Skip to content

Commit

Permalink
Git resolver doesn't pull tags anymore (failing test)
Browse files Browse the repository at this point in the history
refs #211
  • Loading branch information
ysbaddaden committed Jun 17, 2018
1 parent 1241113 commit 13405a9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/integration/update_test.cr
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,23 @@ class UpdateCommandTest < Minitest::Test
end
end

def test_finds_then_updates_new_compatible_version
metadata = { dependencies: { web: "~> 1.1.0" } }
lock = { web: "1.1.2" }

with_shard(metadata, lock) do
run "shards install"
assert_installed "web", "1.1.2"
end

create_git_release "web", "1.1.3"

with_shard(metadata, lock) do
run "shards update"
assert_installed "web", "1.1.3"
end
end

def test_wont_generate_lockfile_for_empty_dependencies
metadata = { dependencies: {} of Symbol => String }
with_shard(metadata) do
Expand Down

0 comments on commit 13405a9

Please sign in to comment.