Skip to content

Commit

Permalink
Revert "update rspec to work with ruby 1.8.7"
Browse files Browse the repository at this point in the history
This reverts commit 9fe8511.
  • Loading branch information
Joshua Hoblitt committed Feb 13, 2014
1 parent a931569 commit 5c5c89d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/defines/nsstools_create_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,32 +91,32 @@

context 'password file' do
it do
should contain_file('/obsolete/nss-password.txt').with({
should contain_file('/obsolete/nss-password.txt').with(
:owner => 'nobody',
:group => 'nobody',
:mode => '0660',
:content => 'secret',
})
)
end
end

context 'database files' do
databases = ['cert8.db', 'key3.db', 'secmod.db']
databases.each do |db|
it do
should contain_file('/obsolete/' + db).with({
should contain_file('/obsolete/' + db).with(
:owner => 'nobody',
:group => 'nobody',
:mode => '0660',
:require => [ 'File[/obsolete/nss-password.txt]', 'Exec[create_nss_db_foo]']
})
)
end
end
end

context 'create nss db' do
it do
should contain_exec('create_nss_db_foo').with({
should contain_exec('create_nss_db_foo').with(
:command => %r{-d /obsolete -f /obsolete},
:creates => [
'/obsolete/cert8.db',
Expand All @@ -127,7 +127,7 @@
'File[/obsolete/nss-password.txt]',
'Class[Nsstools]'
]
})
)
end
end
end # all params
Expand Down

0 comments on commit 5c5c89d

Please sign in to comment.