lib/restpack_service/support/matchers.rb in restpack_service-0.0.73 vs lib/restpack_service/support/matchers.rb in restpack_service-0.0.74
- old
+ new
@@ -36,10 +36,10 @@
def it_fails_with(status, &block)
it "fails with :#{status}" do
expect(response.success?).to eq(false)
expect(response.result).to eq({})
- expect(response.status).to eq(:forbidden)
+ expect(response.status).to eq(status)
instance_eval(&block) if block_given?
end
end
def it_succeeds(message='succeeds', &block)