From c62a5ec9c6fb7d9ae1d00386d27d18c8ee2b6697 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 8 Feb 2021 22:30:54 -0800 Subject: Use ‘conf-unix-mode’ for ‘.service’ files --- test/integration/oni-conf.bats | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) mode change 100644 => 100755 test/integration/oni-conf.bats (limited to 'test') diff --git a/test/integration/oni-conf.bats b/test/integration/oni-conf.bats old mode 100644 new mode 100755 index 1f9f2d3..aa1cc88 --- 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" ]] } -- cgit v1.2.3-54-g00ecf