features/step_definitions/cli_steps.rb in adhearsion-2.3.5 vs features/step_definitions/cli_steps.rb in adhearsion-2.4.0.beta1

- old
+ new

@@ -4,23 +4,34 @@ steps %Q{ Then the output should contain "ahn create" Then the output should contain "ahn start" Then the output should contain "ahn daemon" Then the output should contain "ahn version" + Then the output should contain "ahn plugin" Then the output should contain "ahn help" } end +Then /^I should see the plugin usage message$/ do + steps %Q{ + Then the output should contain "ahn plugin create_ahnhub_hooks" + Then the output should contain "ahn plugin create_github_hook" + Then the output should contain "ahn plugin create_rubygem_hook" + } +end + When /^I wait (\d+) seconds?$/ do |arg1| sleep arg1.to_i end Given /^that I create a valid app under "([^"]*)"$/ do |path| steps %Q{ When I run `ahn create #{path}` Then there should be a valid adhearsion directory named "#{path}" } + + remove_file "#{path}/Gemfile" end Then /^there should be a valid adhearsion directory named "([^"]*)"$/ do |path| steps %Q{ Then a directory named "#{path}" should exist @@ -53,5 +64,6 @@ pid = File.read(pidfile).to_i Process.kill("TERM", pid) sleep 1 end end +