summaryrefslogtreecommitdiffstats
path: root/cucumber/features/step_definitions/git.rb
diff options
context:
space:
mode:
Diffstat (limited to 'cucumber/features/step_definitions/git.rb')
-rw-r--r--cucumber/features/step_definitions/git.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/cucumber/features/step_definitions/git.rb b/cucumber/features/step_definitions/git.rb
new file mode 100644
index 00000000..bf6f869d
--- /dev/null
+++ b/cucumber/features/step_definitions/git.rb
@@ -0,0 +1,6 @@
+Then /^the Git repository "([\S]+)" has been cloned successfully$/ do |repo|
+ assert($vm.directory_exist?("/home/#{LIVE_USER}/#{repo}/.git"))
+ assert($vm.file_exist?("/home/#{LIVE_USER}/#{repo}/.git/config"))
+ $vm.execute_successfully("cd '/home/#{LIVE_USER}/#{repo}/' && git status",
+ :user => LIVE_USER)
+end