Move DSL guard into before hook

This commit is contained in:
Markus Schirp 2014-06-20 17:53:55 +00:00
parent 7f66748144
commit f5487b554c

View file

@ -8,6 +8,9 @@ describe Mutant::Isolation do
unless RUBY_VERSION.eql?('2.1.2') unless RUBY_VERSION.eql?('2.1.2')
skip 'Series of events is indeterministic cross ruby implementations. Skipping this test under non 2.1.2' skip 'Series of events is indeterministic cross ruby implementations. Skipping this test under non 2.1.2'
end end
if ENV['COVERAGE']
skip 'Simplecov inferences with these tests, skipping'
end
end end
let(:expected_return) { :foo } let(:expected_return) { :foo }
@ -18,16 +21,14 @@ describe Mutant::Isolation do
$stderr = File.open('/dev/null') $stderr = File.open('/dev/null')
end end
unless ENV['COVERAGE'] context 'when block returns mashallable data, and process exists zero' do
context 'when block returns mashallable data, and process exists zero' do let(:block) do
let(:block) do lambda do
lambda do :data_from_child_process
:data_from_child_process
end
end end
it { should eql(:data_from_child_process) }
end end
it { should eql(:data_from_child_process) }
end end
context 'when block does return marshallable data' do context 'when block does return marshallable data' do