spec/simple_navigation/adapters/sinatra_spec.rb in simple-navigation-4.2.0 vs spec/simple_navigation/adapters/sinatra_spec.rb in simple-navigation-4.3.0
- old
+ new
@@ -7,10 +7,10 @@
describe '#context_for_eval' do
context "when adapter's context is not set" do
it 'raises an exception' do
allow(adapter).to receive_messages(context: nil)
- expect{ adapter.context_for_eval }.to raise_error
+ expect{ adapter.context_for_eval }.to raise_error(RuntimeError, 'no context set for evaluation the config file')
end
end
context "when adapter's context is set" do
it 'returns the context' do