aboutsummaryrefslogtreecommitdiff
path: root/spec/defines
diff options
context:
space:
mode:
Diffstat (limited to 'spec/defines')
-rw-r--r--spec/defines/dhcp_subnet_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/defines/dhcp_subnet_spec.rb b/spec/defines/dhcp_subnet_spec.rb
index 48ab71b..b679551 100644
--- a/spec/defines/dhcp_subnet_spec.rb
+++ b/spec/defines/dhcp_subnet_spec.rb
@@ -161,7 +161,9 @@ describe 'dhcp::subnet' do
) }
it { should contain_concat__fragment('dhcp.subnet.1.2.3.4').with(
- :ensure => 'absent'
+ :ensure => 'present',
+ :target => '/etc/dhcp/dhcpd.conf',
+ :content => "include \"/etc/dhcp/subnets/1.2.3.4.conf\";\n"
) }
it { should contain_concat__fragment('dhcp.subnet.1.2.3.4.hosts').with(
@@ -185,9 +187,7 @@ describe 'dhcp::subnet' do
} }
it { should contain_concat__fragment('dhcp.subnet.1.2.3.4').with(
- :ensure => 'present',
- :target => '/etc/dhcp/dhcpd.conf',
- :content => "include \"/etc/dhcp/subnets/1.2.3.4.conf\";\n"
+ :ensure => 'absent'
) }
end