lib/restpack_service/support/matchers.rb in restpack_service-0.0.70 vs lib/restpack_service/support/matchers.rb in restpack_service-0.0.71
- 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) if &block
+ instance_eval(&block) if block_given?
end
end