From 962ed0a3c1540cfaee1e06074d600157116abed9 Mon Sep 17 00:00:00 2001 From: Juan Wajnerman Date: Mon, 20 Apr 2020 11:22:24 -0300 Subject: [PATCH] Add spec for check when there is a version mismatch --- spec/integration/check_spec.cr | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/spec/integration/check_spec.cr b/spec/integration/check_spec.cr index a5514456..0e76b09d 100644 --- a/spec/integration/check_spec.cr +++ b/spec/integration/check_spec.cr @@ -63,4 +63,16 @@ describe "check" do ex.stderr.should be_empty end end + + it "succeeds when shard.yml version doesn't match git tag" do + metadata = { + dependencies: { + version_mismatch: {git: git_url(:version_mismatch), version: "0.2.0"}, + }, + } + with_shard(metadata) do + run "shards install" + run "shards check" + end + end end