spec/grape/dsl/inside_route_spec.rb in grape-0.13.0 vs spec/grape/dsl/inside_route_spec.rb in grape-0.14.0

- old
+ new

@@ -341,11 +341,12 @@ end describe '#declared' do # see endpoint_spec.rb#declared for spec coverage - it 'returns an empty hash' do - expect(subject.declared({})).to eq({}) + it 'is not available by default' do + expect { subject.declared({}) }.to raise_error( + Grape::DSL::InsideRoute::MethodNotYetAvailable) end end end end end