From e5127ad0d27c1bb0ad5af05f48835eae565ff120 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 7 Jan 2020 21:50:29 -0800 Subject: [PATCH] Add test loading oni-bookmark --- test/integration/oni-bookmark.bats | 9 +++++++++ test/oni-bookmark-test.el | 5 ----- 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 test/integration/oni-bookmark.bats diff --git a/test/integration/oni-bookmark.bats b/test/integration/oni-bookmark.bats new file mode 100644 index 0000000..0c6faac --- /dev/null +++ b/test/integration/oni-bookmark.bats @@ -0,0 +1,9 @@ +#!/usr/bin/env bats + +@test "Loading bookmark loads oni-bookmark" { + run emacs -batch -l package -f package-initialize \ + -l bookmark \ + -eval "(prin1 (featurep 'oni-bookmark))" + + [ "$output" = "t" ] +} diff --git a/test/oni-bookmark-test.el b/test/oni-bookmark-test.el index 32d0c77..5ccbbbb 100644 --- a/test/oni-bookmark-test.el +++ b/test/oni-bookmark-test.el @@ -2,8 +2,3 @@ "Test that oni-bookarks works." (require 'bookmark) (should (string-match "/data/" bookmark-default-file))) - -(ert-deftest oni-bookmark-test-autoloads () - "Test that `oni-bookmark' gets loaded automatically." - (require 'bookmark) - (should (featurep 'oni-bookmark)))