spec/darwin/matchers_spec.rb in serverspec-0.2.26 vs spec/darwin/matchers_spec.rb in serverspec-0.2.27
- old
+ new
@@ -1,8 +1,8 @@
require 'spec_helper'
-describe 'Serverspec matchers of Red Hat family', :os => :darwin do
+describe 'Serverspec matchers of Darwin', :os => :darwin do
it_behaves_like 'support be_running matcher', 'sshd'
it_behaves_like 'support be_running.under("supervisor") matcher', 'growthforecast'
it_behaves_like 'support be_running.under("not implemented") matcher', 'growthforecast'
it_behaves_like 'support be_listening matcher', 22
it_behaves_like 'support be_file matcher', '/etc/ssh/sshd_config'
@@ -60,9 +60,13 @@
it_behaves_like 'support be_executable matcher', '/dev'
it_behaves_like 'support be_executable_by_owner matcher', '/dev'
it_behaves_like 'support be_executable_by_group matcher', '/dev'
it_behaves_like 'support be_executable_by_others matcher', '/dev'
+
+ it_behaves_like 'support be_readable_by_specific_user matcher', '/tmp', '_appleevents'
+ it_behaves_like 'support be_writable_by_specific_user matcher', '/tmp', '_appleevents'
+ it_behaves_like 'support be_executable_by_specific_user matcher', '/tmp', '_appleevents'
it_behaves_like 'support return_exit_status matcher', 'ls /tmp', 0
it_behaves_like 'support return_stdout matcher', 'cat /etc/resolv.conf', 'localhost'
it_behaves_like 'support return_stdout matcher with regexp', 'cat /etc/resolv.conf', /localhost/