Implement source keyword feature for recipes
This commit is contained in:
1 parent
65643e065e
commit
c7295fb977
4 files changed
+30
No files matched your search
Vendored
+1
@@ -0,0 +1 @@
|
||||
raise 'error from recipe'
|
||||
@@ -45,6 +45,15 @@ module Producer::Core
|
||||
expect { dsl }.to raise_error(RuntimeError, 'error from recipe')
|
||||
end
|
||||
end
|
||||
|
||||
describe '#source' do
|
||||
let(:code) { "source '#{fixture_path_for 'recipes/error'}'" }
|
||||
let(:dsl) { Recipe::DSL.new code }
|
||||
|
||||
it 'evaluates its code' do
|
||||
expect { dsl }.to raise_error(RuntimeError, 'error from recipe')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user