spec/sprinkle/verify_spec.rb in sprinkle-0.7.6 vs spec/sprinkle/verify_spec.rb in sprinkle-0.7.6.1

- old
+ new

@@ -53,10 +53,13 @@ has_gem 'rails', '2.1.0' # Check for a certain RPM package has_rpm 'ntp' + runner "some random command" + runs_without_error "some other random command" + belongs_to_user "/etc/", "me" belongs_to_user "/etc/", 2 belongs_to_group "/etc/", "root" belongs_to_group "/etc/", 0 end @@ -117,9 +120,17 @@ @verification.commands.should include("test `version` == \"one\"") end it 'should use to check for user in group' do @verification.commands.should include("id -nG alf | xargs -n1 echo | grep alien") + end + + it 'should have the command from runner' do + @verification.commands.should include('some random command') + end + + it 'should have the command from runs_without_error' do + @verification.commands.should include('some other random command') end it 'should use id to check for user' do @verification.commands.should include('id bob') end