spec/phare/check_suite_spec.rb in phare-0.5.2 vs spec/phare/check_suite_spec.rb in phare-0.6
- old
+ new
@@ -1,8 +1,10 @@
require 'spec_helper'
describe Phare::CheckSuite do
+ let(:described_class) { Phare::CheckSuite }
+
describe :run do
let(:options) { { directory: '.' } }
let(:suite) { described_class.new(options) }
before do
@@ -28,10 +30,10 @@
it { expect { suite.run }.to change { suite.status }.to(20) }
end
context 'with no failing check' do
- let(:exit_status_proc) { proc { |index| 0 } }
+ let(:exit_status_proc) { proc { 0 } }
it { expect { suite.run }.to change { suite.status }.to(0) }
end
end