etc-git: more tests
This commit is contained in:
parent
33314828b1
commit
69d499043e
|
@ -49,7 +49,6 @@
|
||||||
register: git_log
|
register: git_log
|
||||||
check_mode: no
|
check_mode: no
|
||||||
|
|
||||||
|
|
||||||
- name: initial commit is present?
|
- name: initial commit is present?
|
||||||
shell: "git add -A . && git commit -m \"Initial commit via Ansible\""
|
shell: "git add -A . && git commit -m \"Initial commit via Ansible\""
|
||||||
args:
|
args:
|
||||||
|
|
|
@ -11,3 +11,7 @@ end
|
||||||
describe command("cd /git && git status --porcelain") do
|
describe command("cd /git && git status --porcelain") do
|
||||||
its(:stdout) { should be_empty }
|
its(:stdout) { should be_empty }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe command("cd /git && git log --oneline") do
|
||||||
|
its(:exit_status) { should eq 0 }
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue