Remove last instance_eval usage in spec

This commit is contained in:
Thibault Jouan 2014-01-20 02:05:30 +00:00
parent 82f8eac319
commit d347b8d6f5
2 changed files with 0 additions and 15 deletions

View File

@ -71,14 +71,6 @@ module Producer::Core
end end
end end
describe '#recipe' do
it 'returns the assigned recipe' do
recipe = double 'recipe'
cli.instance_eval { @recipe = recipe }
expect(cli.recipe).to be recipe
end
end
describe '#run' do describe '#run' do
it 'loads the recipe' do it 'loads the recipe' do
cli.run cli.run

View File

@ -75,13 +75,6 @@ module Producer::Core
end end
describe '#condition' do describe '#condition' do
context 'without block' do
it 'returns the assigned condition' do
dsl.instance_eval { @condition = :some_condition }
expect(dsl.condition).to be :some_condition
end
end
context 'when a block is given' do context 'when a block is given' do
it 'assigns a new evaluated condition' do it 'assigns a new evaluated condition' do
dsl.condition { :some_return_value } dsl.condition { :some_return_value }