test_spec.rb 537 B

123456789101112131415161718192021222324252627
  1. require 'serverspec'
  2. # Required by serverspec
  3. set :backend, :exec
  4. describe file('/usr/local/sbin/alfred') do
  5. it { should exist }
  6. it { should be_executable }
  7. end
  8. describe file('/usr/local/sbin/alfred-gpsd') do
  9. it { should_not exist }
  10. it { should_not be_executable }
  11. end
  12. describe file('/usr/local/sbin/batadv-vis') do
  13. it { should_not exist }
  14. it { should_not be_executable }
  15. end
  16. describe package('libgps-dev') do
  17. it { should_not be_installed }
  18. end
  19. describe file('/etc/init.d/batadv-vis') do
  20. it { should_not exist }
  21. end