We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e8b2e64 + 3e27745 commit 80a6949Copy full SHA for 80a6949
test/config_test.rb
@@ -18,7 +18,7 @@ def test_read_config_from_path
18
19
def test_read_global_config_file
20
config = Rugged::Config.global
21
- assert config['user.name'] != nil
+ refute_nil config['user.name']
22
assert_nil config['core.bare']
23
end
24
test/lib_test.rb
@@ -34,8 +34,14 @@ def test_search_path
34
['search_path_system', '/tmp/system']]
35
36
paths.each do |opt, path|
37
+ before = Rugged::Settings[opt]
38
Rugged::Settings[opt] = path
- assert_equal(path, Rugged::Settings[opt])
39
+
40
+ begin
41
+ assert_equal(path, Rugged::Settings[opt])
42
+ ensure
43
+ Rugged::Settings[opt] = before
44
+ end
45
46
47
0 commit comments