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.
This commit is contained in:
benjamin wil
2022-07-30 16:35:03 -07:00
committed by benjamin wil
parent 10ae969139
commit b0a1f8a004
+1 -1
View File
@@ -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