#!/usr/bin/env roundup

describe 'sinatra-gen: generates a starter Sinatra project'

sinatra_gen='./sinatra-gen'

it_displays_help_when_called_without_arguments() {
  $sinatra_gen | grep USAGE
}

it_displays_help_when_called_with_h() {
  $sinatra_gen -h | grep USAGE
}

it_displays_help_when_called_with_help() {
  $sinatra_gen --help | grep USAGE
}

it_fails_when_called_with_an_unknown_argument() {
  $sinatra_gen -f | grep UNKNOWN
  $sinatra_gen --he | grep UNKNOWN
}

it_displays_the_unknown_argument_in_the_error_message() {
  $sinatra_gen -f | grep "\-f"
  $sinatra_gen --he | grep "--he"
}

#!/usr/bin/env roundup

describe 'sinatra-gen: generates a starter Sinatra project'

sinatra_gen='./sinatra-gen'

it_displays_help_when_called_without_arguments() {
  $sinatra_gen | grep USAGE
}

it_displays_help_when_called_with_h() {
  $sinatra_gen -h | grep USAGE
}

it_displays_help_when_called_with_help() {
  $sinatra_gen --help | grep USAGE
}

it_fails_when_called_with_an_unknown_argument() {
  $sinatra_gen -f | grep UNKNOWN
  $sinatra_gen -f | grep "\-f"
  $sinatra_gen --he | grep UNKNOWN
  $sinatra_gen --he | grep "--he"
}
}

--- 
+++ 
@@ -18,8 +18,10 @@
 
 it_fails_when_called_with_an_unknown_argument() {
   $sinatra_gen -f | grep UNKNOWN
+  $sinatra_gen --he | grep UNKNOWN
+}
+
+it_displays_the_unknown_argument_in_the_error_message() {
   $sinatra_gen -f | grep "\-f"
-  $sinatra_gen --he | grep UNKNOWN
   $sinatra_gen --he | grep "--he"
 }
-}
Add 'flag in error message' checks to their own test
