From 69d499043e78e3f6eb48496e47f9e273aaa24876 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Wed, 19 Apr 2017 17:55:45 +0200 Subject: [PATCH] etc-git: more tests --- etc-git/tasks/main.yml | 1 - etc-git/tests/spec/etc-git_spec.rb | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/etc-git/tasks/main.yml b/etc-git/tasks/main.yml index 92e98905..77a85f16 100644 --- a/etc-git/tasks/main.yml +++ b/etc-git/tasks/main.yml @@ -48,7 +48,6 @@ failed_when: False register: git_log check_mode: no - - name: initial commit is present? shell: "git add -A . && git commit -m \"Initial commit via Ansible\"" diff --git a/etc-git/tests/spec/etc-git_spec.rb b/etc-git/tests/spec/etc-git_spec.rb index 9c95ad01..82a03229 100644 --- a/etc-git/tests/spec/etc-git_spec.rb +++ b/etc-git/tests/spec/etc-git_spec.rb @@ -11,3 +11,7 @@ end describe command("cd /git && git status --porcelain") do its(:stdout) { should be_empty } end + +describe command("cd /git && git log --oneline") do + its(:exit_status) { should eq 0 } +end