Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

Commit 9fe8511

Browse files
author
Joshua Hoblitt
committed
update rspec to work with ruby 1.8.7
1 parent 868d5ae commit 9fe8511

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec/defines/nsstools_create_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,32 +91,32 @@
9191

9292
context 'password file' do
9393
it do
94-
should contain_file('/obsolete/nss-password.txt').with(
94+
should contain_file('/obsolete/nss-password.txt').with({
9595
:owner => 'nobody',
9696
:group => 'nobody',
9797
:mode => '0660',
9898
:content => 'secret',
99-
)
99+
})
100100
end
101101
end
102102

103103
context 'database files' do
104104
databases = ['cert8.db', 'key3.db', 'secmod.db']
105105
databases.each do |db|
106106
it do
107-
should contain_file('/obsolete/' + db).with(
107+
should contain_file('/obsolete/' + db).with({
108108
:owner => 'nobody',
109109
:group => 'nobody',
110110
:mode => '0660',
111111
:require => [ 'File[/obsolete/nss-password.txt]', 'Exec[create_nss_db_foo]']
112-
)
112+
})
113113
end
114114
end
115115
end
116116

117117
context 'create nss db' do
118118
it do
119-
should contain_exec('create_nss_db_foo').with(
119+
should contain_exec('create_nss_db_foo').with({
120120
:command => %r{-d /obsolete -f /obsolete},
121121
:creates => [
122122
'/obsolete/cert8.db',
@@ -127,7 +127,7 @@
127127
'File[/obsolete/nss-password.txt]',
128128
'Class[Nsstools]'
129129
]
130-
)
130+
})
131131
end
132132
end
133133
end # all params

0 commit comments

Comments
 (0)