lib/restpack_service/support/matchers.rb in restpack_service-0.0.69 vs lib/restpack_service/support/matchers.rb in restpack_service-0.0.70
- old
+ new
@@ -43,8 +43,8 @@
end
def it_succeeds(message='succeeds', &block)
it message do
expect(response.success?).to eq(true)
- instance_eval(&block)
+ instance_eval(&block) if &block
end
end