spec/unit/action/deploy/module_spec.rb in r10k-3.6.0 vs spec/unit/action/deploy/module_spec.rb in r10k-3.7.0
- old
+ new
@@ -24,10 +24,14 @@
it 'can accept a puppet-path option' do
described_class.new({ 'puppet-path': '/nonexistent' }, [])
end
+ it 'can accept a puppet-conf option' do
+ described_class.new({ 'puppet-conf': '/nonexistent' }, [])
+ end
+
it 'can accept a cachedir option' do
described_class.new({ cachedir: '/nonexistent' }, [])
end
end
@@ -123,9 +127,18 @@
subject { described_class.new({ config: '/some/nonexistent/path', 'puppet-path': '/nonexistent' }, []) }
it 'sets puppet_path' do
expect(subject.instance_variable_get(:@puppet_path)).to eq('/nonexistent')
+ end
+ end
+
+ describe 'with puppet-conf' do
+
+ subject { described_class.new({ config: '/some/nonexistent/path', 'puppet-conf': '/nonexistent' }, []) }
+
+ it 'sets puppet_conf' do
+ expect(subject.instance_variable_get(:@puppet_conf)).to eq('/nonexistent')
end
end
describe 'with cachedir' do