spec/sprinkle/verify_spec.rb in sprinkle-0.2.6 vs spec/sprinkle/verify_spec.rb in sprinkle-0.3.0
- old
+ new
@@ -34,10 +34,13 @@
ruby_can_load 'a', 'b', 'c'
# Check that a gem exists
has_gem 'rails'
has_gem 'rails', '2.1.0'
+
+ # Check for a certain RPM package
+ has_rpm 'ntp'
end
end
@verification = @package.verifications[0]
@delivery = mock(Sprinkle::Deployment, :process => true)
@verification.delivery = @delivery
@@ -87,9 +90,13 @@
end
it 'should check that a ruby gem is installed' do
@verification.commands.should include("sudo gem list | grep -e '^rails (.*.*)$'")
@verification.commands.should include("sudo gem list | grep -e '^rails (.*2\\.1\\.0.*)$'")
+ end
+
+ it 'should check that an RPM is installed' do
+ @verification.commands.should include("rpm -qa | grep ntp")
end
end
describe 'with configurations' do
# Make sure it includes Sprinkle::Configurable
\ No newline at end of file