Skip to content

Commit 6a9a71d

Browse files
committed
Add acceptence test
1 parent d419476 commit 6a9a71d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

spec/acceptance/stdlib_deferrable_epp_spec.rb

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@
1111
port=<%= $port %>
1212
password=<%= $password %>
1313
|EPP
14-
file{ "#{testfile}"
14+
$_testfile = ? $facts['os']['family'] ? {
15+
'windows' => 'C:\\test.epp',
16+
default => '/tmp/test.epp,
17+
}
18+
19+
file{ $_testfile:
1520
ensure => file,
1621
content => $_epp,
1722
}
@@ -20,7 +25,11 @@
2025

2126
before(:each) do
2227
rm_testfile = <<-MANIFEST
23-
file { "#{testfile}.rendered":
28+
$_testfile = ? $facts['os']['family'] ? {
29+
'windows' => 'C:\\test.epp',
30+
default => '/tmp/test.epp,
31+
}
32+
file { "${_testfile}.rendered":
2433
ensure => absent,
2534
}
2635
MANIFEST

0 commit comments

Comments
 (0)