spec/reek/cli/application_spec.rb in reek-5.4.0 vs spec/reek/cli/application_spec.rb in reek-5.4.1
- old
+ new
@@ -7,10 +7,10 @@
call = lambda do
Reek::CLI::Silencer.silently do
described_class.new ['--foo']
end
end
- expect(call).to raise_error(SystemExit) do |error|
+ expect(&call).to raise_error(SystemExit) do |error|
expect(error.status).to eq Reek::CLI::Status::DEFAULT_ERROR_EXIT_CODE
end
end
end