Skip to content

Commit

Permalink
fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed Oct 1, 2013
1 parent 45c06af commit 93670c4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 25 deletions.
2 changes: 1 addition & 1 deletion manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
$group = $selenium::params::group,
$install_path = $selenium::params::install_path,
) inherits selenium::params {
validate_string($user)
validate_string($user)
validate_string($group)
validate_string($install_path)

Expand Down
54 changes: 30 additions & 24 deletions spec/classes/selenium_install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,36 @@
let(:title) { 'redhat' }
let(:facts) {{ :osfamily=> 'RedHat' }}

it do
should include_class('wget')
should contain_class('selenium::install').with_version('2.35.0')
should contain_file('/opt/selenium').with({
'ensure' => 'directory',
'owner' => 'selenium',
'group' => 'selenium',
})
should contain_file('/opt/selenium/jars').with({
'ensure' => 'directory',
'owner' => 'selenium',
'group' => 'selenium',
})
should contain_file('/opt/selenium/log').with({
'ensure' => 'directory',
'owner' => 'selenium',
'group' => 'selenium',
})
should contain_file('/var/log/selenium').with({
'ensure' => 'link',
'owner' => 'root',
'group' => 'root',
})
should contain_wget__fetch('selenium-server-standalone')
context 'no params' do
let :pre_condition do
'include selenium::server'
end

it do
should include_class('wget')
should contain_class('selenium::install').with_version('2.35.0')
should contain_file('/opt/selenium').with({
'ensure' => 'directory',
'owner' => 'selenium',
'group' => 'selenium',
})
should contain_file('/opt/selenium/jars').with({
'ensure' => 'directory',
'owner' => 'selenium',
'group' => 'selenium',
})
should contain_file('/opt/selenium/log').with({
'ensure' => 'directory',
'owner' => 'selenium',
'group' => 'selenium',
})
should contain_file('/var/log/selenium').with({
'ensure' => 'link',
'owner' => 'root',
'group' => 'root',
})
should contain_wget__fetch('selenium-server-standalone')
end
end

end

0 comments on commit 93670c4

Please sign in to comment.