2020-01-08 02:17:35 +01:00
|
|
|
#!/usr/bin/env bats
|
|
|
|
|
2020-01-09 01:49:02 +01:00
|
|
|
@test "Opening a .bats file loads oni-bats" {
|
2020-01-08 02:17:35 +01:00
|
|
|
run emacs -batch -l package -f package-initialize \
|
|
|
|
-visit test.bats \
|
|
|
|
-eval "(prin1 (featurep 'oni-bats))"
|
|
|
|
|
2020-01-08 22:07:41 +01:00
|
|
|
echo "\"$output\""
|
|
|
|
|
2020-01-08 02:17:35 +01:00
|
|
|
[[ "$output" == *"t" ]]
|
|
|
|
}
|