@@ -42,6 +42,13 @@ def reset_validations!; end
42
42
end
43
43
end
44
44
45
+ describe '#unset_global_setting' do
46
+ it 'delegates to unset' do
47
+ expect ( subject ) . to receive ( :unset ) . with ( :global , :dummy )
48
+ subject . unset_global_setting ( :dummy )
49
+ end
50
+ end
51
+
45
52
describe '#route_setting' do
46
53
it 'delegates to get_or_set' do
47
54
expect ( subject ) . to receive ( :get_or_set ) . with ( :route , :dummy , 1 )
@@ -58,6 +65,13 @@ def reset_validations!; end
58
65
end
59
66
end
60
67
68
+ describe '#unset_route_setting' do
69
+ it 'delegates to unset' do
70
+ expect ( subject ) . to receive ( :unset ) . with ( :route , :dummy )
71
+ subject . unset_route_setting ( :dummy )
72
+ end
73
+ end
74
+
61
75
describe '#namespace_setting' do
62
76
it 'delegates to get_or_set' do
63
77
expect ( subject ) . to receive ( :get_or_set ) . with ( :namespace , :dummy , 1 )
@@ -94,6 +108,13 @@ def reset_validations!; end
94
108
end
95
109
end
96
110
111
+ describe '#unset_namespace_setting' do
112
+ it 'delegates to unset' do
113
+ expect ( subject ) . to receive ( :unset ) . with ( :namespace , :dummy )
114
+ subject . unset_namespace_setting ( :dummy )
115
+ end
116
+ end
117
+
97
118
describe '#namespace_inheritable' do
98
119
it 'delegates to get_or_set' do
99
120
expect ( subject ) . to receive ( :get_or_set ) . with ( :namespace_inheritable , :dummy , 1 )
@@ -120,6 +141,13 @@ def reset_validations!; end
120
141
end
121
142
end
122
143
144
+ describe '#unset_namespace_inheritable' do
145
+ it 'delegates to unset' do
146
+ expect ( subject ) . to receive ( :unset ) . with ( :namespace_inheritable , :dummy )
147
+ subject . unset_namespace_inheritable ( :dummy )
148
+ end
149
+ end
150
+
123
151
describe '#namespace_stackable' do
124
152
it 'delegates to get_or_set' do
125
153
expect ( subject ) . to receive ( :get_or_set ) . with ( :namespace_stackable , :dummy , 1 )
@@ -146,13 +174,27 @@ def reset_validations!; end
146
174
end
147
175
end
148
176
177
+ describe '#unset_namespace_stackable' do
178
+ it 'delegates to unset' do
179
+ expect ( subject ) . to receive ( :unset ) . with ( :namespace_stackable , :dummy )
180
+ subject . unset_namespace_stackable ( :dummy )
181
+ end
182
+ end
183
+
149
184
describe '#api_class_setting' do
150
185
it 'delegates to get_or_set' do
151
186
expect ( subject ) . to receive ( :get_or_set ) . with ( :api_class , :dummy , 1 )
152
187
subject . api_class_setting ( :dummy , 1 )
153
188
end
154
189
end
155
190
191
+ describe '#unset_api_class_setting' do
192
+ it 'delegates to unset' do
193
+ expect ( subject ) . to receive ( :unset ) . with ( :api_class , :dummy )
194
+ subject . unset_api_class_setting ( :dummy )
195
+ end
196
+ end
197
+
156
198
describe '#within_namespace' do
157
199
it 'calls start and end for a namespace' do
158
200
expect ( subject ) . to receive :namespace_start
0 commit comments