diff --git a/spec/acceptance/selenium_hub_spec.rb b/spec/acceptance/selenium_hub_spec.rb index 238db0f..e89d1f4 100644 --- a/spec/acceptance/selenium_hub_spec.rb +++ b/spec/acceptance/selenium_hub_spec.rb @@ -33,7 +33,11 @@ class { 'selenium::hub': } it { should be_file } it { should be_owned_by 'selenium' } it { should be_grouped_into 'selenium' } - it { should be_mode 644} + if fact('operatingsystem') == 'Ubuntu' + it { should be_mode 664 } + else + it { should be_mode 644 } + end end end diff --git a/spec/acceptance/selenium_node_spec.rb b/spec/acceptance/selenium_node_spec.rb index 389c1ff..dc7b43f 100644 --- a/spec/acceptance/selenium_node_spec.rb +++ b/spec/acceptance/selenium_node_spec.rb @@ -33,7 +33,11 @@ class { 'selenium::node': } it { should be_file } it { should be_owned_by 'selenium' } it { should be_grouped_into 'selenium' } - it { should be_mode 644} + if fact('operatingsystem') == 'Ubuntu' + it { should be_mode 664 } + else + it { should be_mode 644 } + end end end diff --git a/spec/acceptance/selenium_server_spec.rb b/spec/acceptance/selenium_server_spec.rb index 92f1a8a..1019d25 100644 --- a/spec/acceptance/selenium_server_spec.rb +++ b/spec/acceptance/selenium_server_spec.rb @@ -33,7 +33,11 @@ class { 'selenium::server': } it { should be_file } it { should be_owned_by 'selenium' } it { should be_grouped_into 'selenium' } - it { should be_mode 644} + if fact('operatingsystem') == 'Ubuntu' + it { should be_mode 664 } + else + it { should be_mode 644 } + end end end