Skip to content

Commit

Permalink
Update gitignore template (#5480)
Browse files Browse the repository at this point in the history
* Fix docs directory in gitignore.ecr (renamed in #4937)
  • Loading branch information
bcardiff committed Dec 29, 2017
1 parent 12cc7f2 commit 4f56a57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions spec/compiler/crystal/tools/init_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ module Crystal
end

describe_file "example/.gitignore" do |gitignore|
gitignore.should contain("/docs/")
gitignore.should contain("/.shards/")
gitignore.should contain("/shard.lock")
gitignore.should contain("/lib/")
end

describe_file "example_app/.gitignore" do |gitignore|
gitignore.should contain("/docs/")
gitignore.should contain("/.shards/")
gitignore.should_not contain("/shard.lock")
gitignore.should contain("/lib/")
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/crystal/tools/init/template/gitignore.ecr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/doc/
/docs/
/lib/
/bin/
/.shards/
Expand Down

0 comments on commit 4f56a57

Please sign in to comment.