diff options
author | Tom Willemse | 2021-02-08 22:30:54 -0800 |
---|---|---|
committer | Tom Willemse | 2021-02-08 22:31:50 -0800 |
commit | c62a5ec9c6fb7d9ae1d00386d27d18c8ee2b6697 (patch) | |
tree | 7d7faf9a2db56f8fb5587b46ab7fb9a2191a92b5 /test | |
parent | d8249988845a0c0ab08c16d9ada9d6c8fa848600 (diff) | |
download | emacs-config-c62a5ec9c6fb7d9ae1d00386d27d18c8ee2b6697.tar.gz emacs-config-c62a5ec9c6fb7d9ae1d00386d27d18c8ee2b6697.zip |
Use ‘conf-unix-mode’ for ‘.service’ files
Diffstat (limited to 'test')
-rwxr-xr-x[-rw-r--r--] | test/integration/oni-conf.bats | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/integration/oni-conf.bats b/test/integration/oni-conf.bats index 1f9f2d3..aa1cc88 100644..100755 --- a/test/integration/oni-conf.bats +++ b/test/integration/oni-conf.bats @@ -7,5 +7,15 @@ echo "$output" - [ "$output" = "t" ] + [[ "$output" == *"t" ]] +} + +@test "Opening a .service file enables conf-mode" { + run emacs -batch -l package -f package-initialize \ + -visit test.service \ + -eval "(prin1 (derived-mode-p major-mode 'conf-mode))" + + echo "$output" + + [[ "$output" == *"t" ]] } |