spec/simple_navigation/helpers_spec.rb in simple-navigation-4.2.0 vs spec/simple_navigation/helpers_spec.rb in simple-navigation-4.3.0

- old
+ new

@@ -380,11 +380,11 @@ context "and its value isn't a valid level" do it 'raises an exception' do expect{ controller.render_navigation(level: :invalid) - }.to raise_error + }.to raise_error(ArgumentError, 'Invalid navigation level: invalid') end end end context 'when the :levels option is set' do @@ -406,10 +406,10 @@ context 'when no primary configuration is defined' do before { allow(SimpleNavigation).to receive_messages(primary_navigation: nil) } it 'raises an exception' do - expect{controller.render_navigation}.to raise_error + expect{controller.render_navigation}.to raise_error(RuntimeError, 'no primary navigation defined, either use a navigation config file or pass items directly to render_navigation') end end context "when active_item_container is set" do let(:active_item_container) { double(:container).as_null_object }