Skip to content

Commit

Permalink
Use existing directory
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Jan 21, 2022
1 parent a75df10 commit 3b5cec9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/integration/install_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -915,10 +915,10 @@ describe "install" do
end

it "path" do
metadata = {dependencies: {nonexistent: { path: "nonexistent-path"}}}
metadata = {dependencies: {reallynonshardyml: { path: rel_path("reallynoshardyml") }}}
with_shard(metadata) do
ex = expect_raises(FailedCommand) { run "shards install --no-color -v" }
ex.stdout.should contain(%(E: Missing "shard.yml" for "nonexistent" at "#{File.expand_path("nonexistent-path")}"))
ex.stdout.should contain(%(E: Missing "shard.yml" for "reallynonshardyml" at "#{File.expand_path(rel_path("reallynonshardyml"))}"))
end
end
end
Expand Down
3 changes: 3 additions & 0 deletions spec/integration/spec_helper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ private def setup_repositories
create_git_release "noshardyml", "0.1.0", false
create_git_release "noshardyml", "0.2.0"

create_git_repository "reallynoshardyml"
create_git_release "reallynoshardyml", "0.1.0", false

create_git_repository "invalidspec"
create_git_release "invalidspec", "0.1.0", {crystal: [""]}

Expand Down

0 comments on commit 3b5cec9

Please sign in to comment.