spec/odata4/entity_set_spec.rb in odata4-0.9.0 vs spec/odata4/entity_set_spec.rb in odata4-0.9.1
- old
+ new
@@ -99,10 +99,10 @@
expect(existing_entity).to be_a(OData4::Entity)
expect(existing_entity['ID']).to eq(0)
end
it 'raises an error when no entity was found' do
- expect { nonexistant_entity }.to raise_error(RuntimeError, /Not Found/)
+ expect { nonexistant_entity }.to raise_error(OData4::Errors::NotFound)
end
describe 'eager loading' do
it 'works with a single property' do
product_with_categories = subject[1, expand: 'Categories']