2017-04-19 17:42:03 +02:00
|
|
|
require 'net/http'
|
|
|
|
require 'uri'
|
|
|
|
|
|
|
|
require 'serverspec'
|
|
|
|
set :backend, :exec
|
|
|
|
|
|
|
|
describe file('/etc/.git/config') do
|
|
|
|
it { should be_file }
|
|
|
|
end
|
|
|
|
|
2017-04-21 11:23:30 +02:00
|
|
|
describe command("cd /etc && git status --porcelain") do
|
2017-04-19 17:42:03 +02:00
|
|
|
its(:stdout) { should be_empty }
|
|
|
|
end
|
2017-04-19 17:55:45 +02:00
|
|
|
|
2017-04-21 11:23:30 +02:00
|
|
|
describe command("cd /etc && git log --oneline") do
|
2017-04-19 17:55:45 +02:00
|
|
|
its(:exit_status) { should eq 0 }
|
|
|
|
end
|