diff options
Diffstat (limited to 'test/oni-bats-test.el')
-rw-r--r-- | test/oni-bats-test.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/oni-bats-test.el b/test/oni-bats-test.el new file mode 100644 index 0000000..7414dc4 --- /dev/null +++ b/test/oni-bats-test.el @@ -0,0 +1,7 @@ +(ert-deftest oni-bats-test-auto-insert () + "Test that ‘auto-insert’ inserts the proper interpreter." + (with-temp-buffer + (bats-mode) + (let ((auto-insert-query nil)) + (auto-insert)) + (should (string= "#!/usr/bin/env bats\n\n" (buffer-string))))) |