From b0a1f8a00492829bd4634629e086fb57a31b8583 Mon Sep 17 00:00:00 2001 From: benjamin wil Date: Sat, 30 Jul 2022 16:35:03 -0700 Subject: [PATCH] Refactor test teardown I saw a random (??) failure on the test on line 1098. This trivial chang e just ensures that the configuration under test (the default keybinding) is explicitly being set to `nil` after test runs. --- test/test_app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_app.rb b/test/test_app.rb index a0808791..36789e7c 100644 --- a/test/test_app.rb +++ b/test/test_app.rb @@ -1086,11 +1086,11 @@ context "Default keybindings" do @wiki = Gollum::Wiki.new(@path) @url = '/gollum/create/test' Precious::App.set(:gollum_path, @path) - Precious::App.set(:wiki_options, {}) end teardown do FileUtils.rm_rf(@path) + Precious::App.set(:wiki_options, {default_keybinding: nil}) end test 'keybinding unset' do