You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/simple_navigation/configuration_spec.rb
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,11 @@
90
90
let(:provider){double(:provider)}
91
91
92
92
it'raises an exception'do
93
-
expect{config.items(provider){}}.toraise_error(RuntimeError,'please specify either items_provider or block, but not both')# rubocop:disable Lint/EmptyBlock
93
+
# rubocop:disable Lint/EmptyBlock
94
+
expectdo
95
+
config.items(provider)do
96
+
end
97
+
end.toraise_error(RuntimeError,'please specify either items_provider or block, but not both')
94
98
end
95
99
end
96
100
@@ -140,7 +144,9 @@
140
144
141
145
context'when items_provider is not specified'do
142
146
it'raises an exception'do
143
-
expect{config.items}.toraise_error(RuntimeError,'please specify either items_provider or block, but not both')
147
+
expectdo
148
+
config.items
149
+
end.toraise_error(RuntimeError,'please specify either items_provider or block, but not both')
expect{controller.render_navigation}.toraise_error(RuntimeError,'no primary navigation defined, either use a navigation config file or pass items directly to render_navigation')
408
+
expectdo
409
+
controller.render_navigation
410
+
end.toraise_error(RuntimeError,
411
+
'no primary navigation defined, either use a navigation config file or pass items directly to render_navigation')
0 commit comments