Add context for multiple when branches
This commit is contained in:
parent
6547412f61
commit
4e641859ee
1 changed files with 211 additions and 209 deletions
|
@ -7,6 +7,7 @@ describe Mutant::Mutator::Node::Case do
|
||||||
Mutant::Random.stub(:hex_string => random_string)
|
Mutant::Random.stub(:hex_string => random_string)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context 'with multiple when branches' do
|
||||||
let(:source) do
|
let(:source) do
|
||||||
<<-RUBY
|
<<-RUBY
|
||||||
case :condition
|
case :condition
|
||||||
|
@ -217,4 +218,5 @@ describe Mutant::Mutator::Node::Case do
|
||||||
end
|
end
|
||||||
|
|
||||||
it_should_behave_like 'a mutator'
|
it_should_behave_like 'a mutator'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue