now-cli: Fix test (#48866)

- The examples [were
  moved](ec867ed3dc)
  between the now archived, and the `markdown` example was somehow
  removed. (I can't find a reason why.)
- Replace `now init markdown` with `now init jekyll` as that was the
  easiest thing I could think of that did exist, as it's still based on
  Markdown files and isn't an entire JS thing.
This commit is contained in:
Issy Long 2020-01-10 21:18:24 +00:00 committed by GitHub
parent a360318799
commit 3d46ebb92c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,8 +24,8 @@ class NowCli < Formula
end end
test do test do
system "#{bin}/now", "init", "markdown" system "#{bin}/now", "init", "jekyll"
assert_predicate testpath/"markdown/now.json", :exist?, "now.json must exist" assert_predicate testpath/"jekyll/_config.yml", :exist?, "_config.yml must exist"
assert_predicate testpath/"markdown/README.md", :exist?, "README.md must exist" assert_predicate testpath/"jekyll/README.md", :exist?, "README.md must exist"
end end
end end