b0VIM 7.3&1P*martinchabotmartin-chabots-macbook-3.local~martinchabot/dev/my_gems/rubyc/features/step_definitions/rubyc_steps.rb 3210#"! Utphadbh($_[" N J  Z V   y u   E A X T B < 8  f+%! _'#"}|.D@?F?fbaend output_lines[2].should match(/^\w+\s+\w+/) output_lines[1].should match(/^\s*$/) # [0] is our banner, which we've checked for output_lines.should have_at_least(3).items output_lines = all_output.split(/\n/)Then /^there should be a one line summary of what the app does$/ doend step %(the output should match /v\\d+\\.\\d+\\.\\d+/)Then /^the banner should include the version$/ doend step %(the output should match /Usage: #{@app_name}\\s*\(\\[options\\]\)?$/)Then /^the banner should document that this app takes no arguments$/ doend step %(the output should not contain "Options") step %(the output should not contain "[options]")Then /^the banner should document that this app takes no options$/ doend step %(the output should contain "#{expected_arguments}") }.join(' ') option option = "[#{option}]" if row[1] == 'optional' || row[1] == 'which is optional' option = row[0] expected_arguments = table.raw.map { |row|Then /^the banner should document that this app's arguments are:$/ do |table|end step %(the output should contain "Options") step %(the output should match /\[options\]/)Then /^the banner should document that this app takes options$/ doend step %(the output should match /Usage: #{@app_name}/)Then /^the banner should be present$/ doend step %(the output should match /\\s*#{Regexp.escape(option)}[\\s\\W]+\\w\\w\\w+/)Then /^the option "([^"]*)" should be documented$/ do |option|end end step %(the option "#{option[0]}" should be documented) options.raw.each do |option|Then /^the following options should be documented:$/ do |options|end step %(I run `#{app_name} --help`) @app_name = app_nameWhen /^I get help for "([^"]*)"$/ do |app_name|end end module Cucumber # # Then there should be a one line summary of what the app does # # * Check for a usage description which occurs after the banner and a blank line # # Then the banner should document that this app takes no arguments # # * Do the opposite; check that your app doesn't take any arguments # # |bar|which is required| # |foo|which is optional| # Then the banner should document that this app's arguments are # # * Checks that the app's usage banner documents that its arguments are args # # Then the banner should document that this app takes no options # # * Do the opposite; check that you don't indicate options are accepted # # Then the banner should document that this app takes options # # * Checks that the usage banner indicates it takes options via [options] # # Then the banner should include the version # # * Checks that the banner includes the version # # Then the banner should be present # # * Checks that the help has a proper usage banner # # Then the option "--force" should be documented # # * Check an individual option for documentation: # # |-x | # |--force| # Then the following options should be documented: # # * Make sure that each option shows up in the help and has *some* sort of documentation # # When I get help for "command_to_run" # # * Run command_to_run --help using aruba # # gain access to the steps defined in this file. They provide you with the following: # By require'ing methadone/cucumber in your Cucumber setup (e.g. in env.rb), youmodule Methadone