diff --git a/bin/add-exercise b/bin/add-exercise index e472dee..0db70ee 100755 --- a/bin/add-exercise +++ b/bin/add-exercise @@ -79,7 +79,7 @@ jq --arg slug "${slug}" \ ' "${conf}" > "${conf}.tmp" \ && mv "${conf}.tmp" "${conf}" -cp exercises/practice/hello-world/bats-extra.bash exercises/practice/"${slug}" +cp -pt exercises/practice/"${slug}" lib/bats-*.bash ./bin/generate_tests "${slug}" diff --git a/bin/generate_tests b/bin/generate_tests index 9c24367..7631299 100755 --- a/bin/generate_tests +++ b/bin/generate_tests @@ -114,6 +114,7 @@ writeTestFile() { #!/usr/bin/env bats # generated on $(date --utc "+%FT%TZ") load bats-extra +load bats-jq END_PREAMBLE jq -r --arg slug "$slug" \