Remove last instance_eval usage in spec
This commit is contained in:
parent
82f8eac319
commit
d347b8d6f5
@ -71,14 +71,6 @@ module Producer::Core
|
||||
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
|
||||
it 'loads the recipe' do
|
||||
cli.run
|
||||
|
@ -75,13 +75,6 @@ module Producer::Core
|
||||
end
|
||||
|
||||
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
|
||||
it 'assigns a new evaluated condition' do
|
||||
dsl.condition { :some_return_value }
|
||||
|
Loading…
x
Reference in New Issue
Block a user