Refactor recipe spec
This commit is contained in:
parent
7b4b2872fc
commit
e5d5fc0a41
@ -32,7 +32,7 @@ module Producer::Core
|
|||||||
let(:code) { "raise '#{message}'" }
|
let(:code) { "raise '#{message}'" }
|
||||||
|
|
||||||
it 'evaluates its code' do
|
it 'evaluates its code' do
|
||||||
expect { recipe.evaluate }.to raise_error(RuntimeError, 'error from recipe')
|
expect { recipe.evaluate }.to raise_error(RuntimeError, message)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user