Skip to content

Commit

Permalink
Add spec for check when there is a version mismatch (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
waj committed Apr 20, 2020
1 parent 80ed079 commit d955d70
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/integration/check_spec.cr
Expand Up @@ -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

0 comments on commit d955d70

Please sign in to comment.