Refactor recipe spec

This commit is contained in:
Thibault Jouan 2013-07-28 16:11:12 +00:00
parent 7b4b2872fc
commit e5d5fc0a41

View File

@ -32,7 +32,7 @@ module Producer::Core
let(:code) { "raise '#{message}'" }
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