diff --git a/spec/defines/iface_spec.rb b/spec/defines/iface_spec.rb index 13cb3b0..ec08d59 100644 --- a/spec/defines/iface_spec.rb +++ b/spec/defines/iface_spec.rb @@ -10,3 +10,14 @@ should contain_concat__fragment('interfaces::iface_lo').with_content("iface lo inet loopback\n\t\n\n") } end + +describe 'interfaces::iface' do + let(:title) { 'eth0' } + let(:params) { { :family => 'inet', :method => 'dhcp', :auto => 1 } } + + it { + should contain_interfaces__auto('eth0') + should contain_concat__fragment('interfaces::iface_eth0').with_target('/etc/network/interfaces') + should contain_concat__fragment('interfaces::iface_eth0').with_content("iface eth0 inet dhcp\n\t\n\n") + } +end