@@ -74,7 +74,7 @@ def test_rebuild_host_returns_password
74
74
end
75
75
76
76
def test_generate_password_returns_random_passwords
77
- assert_not_equal @provider . generate_password , @provider . generate_password
77
+ refute_equal @provider . generate_password , @provider . generate_password
78
78
end
79
79
80
80
def test_generate_password_returns_20_char_long_password
@@ -83,22 +83,22 @@ def test_generate_password_returns_20_char_long_password
83
83
84
84
def test_apply_computername_prefix_should_return_false_when_prefix_is_nil
85
85
provider = Proxy ::AdRealm ::Provider . new ( computername_prefix : nil , realm : 'example.com' )
86
- assert_false provider . apply_computername_prefix? ( 'host.example.com' )
86
+ refute provider . apply_computername_prefix? ( 'host.example.com' )
87
87
end
88
88
89
89
def test_apply_computername_prefix_should_return_false_when_prefix_is_empty
90
90
provider = Proxy ::AdRealm ::Provider . new ( computername_prefix : '' , realm : 'example.com' )
91
- assert_false provider . apply_computername_prefix? ( 'host.example.com' )
91
+ refute provider . apply_computername_prefix? ( 'host.example.com' )
92
92
end
93
93
94
94
def test_apply_computername_prefix_should_return_false_when_hostname_contains_prefix
95
95
provider = Proxy ::AdRealm ::Provider . new ( computername_prefix : 'PREFIX-' , realm : 'example.com' )
96
- assert_false provider . apply_computername_prefix? ( 'prefix-host.example.com' )
96
+ refute provider . apply_computername_prefix? ( 'prefix-host.example.com' )
97
97
end
98
98
99
99
def test_apply_computername_prefix_should_return_true_when_computername_hash_is_used
100
100
provider = Proxy ::AdRealm ::Provider . new ( computername_prefix : 'PREFIX-' , computername_hash : true , realm : 'example.com' )
101
- assert_true provider . apply_computername_prefix? ( 'host.example.com' )
101
+ assert provider . apply_computername_prefix? ( 'host.example.com' )
102
102
end
103
103
104
104
def test_hostfqdn_to_computername_uses_prefix
@@ -121,7 +121,7 @@ def test_unrecognized_realm_raises_exception
121
121
end
122
122
123
123
def test_find
124
- assert_true @provider . find ( 'a_host_fqdn' )
124
+ assert @provider . find ( 'a_host_fqdn' )
125
125
end
126
126
127
127
def test_delete
0 commit comments