Move DSL guard into before hook
This commit is contained in:
parent
7f66748144
commit
f5487b554c
1 changed files with 9 additions and 8 deletions
|
@ -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,7 +21,6 @@ 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
|
||||||
|
@ -28,7 +30,6 @@ describe Mutant::Isolation do
|
||||||
|
|
||||||
it { should eql(:data_from_child_process) }
|
it { should eql(:data_from_child_process) }
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
context 'when block does return marshallable data' do
|
context 'when block does return marshallable data' do
|
||||||
let(:block) do
|
let(:block) do
|
||||||
|
|
Loading…
Reference in a new issue