Skip to content

Instantly share code, notes, and snippets.

@seandenigris
Created March 9, 2010 17:25
Show Gist options
  • Save seandenigris/326844 to your computer and use it in GitHub Desktop.
Save seandenigris/326844 to your computer and use it in GitHub Desktop.
Feature: developer creates a skeleton Ruby application
In order to get to the beach more quickly
As a developer
I want to instantly create a basic Ruby application skeleton
Scenario: create a new application
Given I want to create a new application named "my_amazing_new_application"
And I am in my projects directory
And a sub-directory with the name of my application does not exist
When I type "ruby_app [my application's name]"
Then there should be directory in my projects directory with my application's name
And the following directories should exist under the application directory:
| sub-directory |
| autotest |
| bin |
| config |
| features |
| features/step_definitions |
| features/support |
| lib |
| lib/[application name] |
| spec |
| spec/cucumber |
| spec/[application name] |
And the autotest_discover.rb template file should have been copied to autotest/discover.rb
And there should be a bin/[application_name] file which contains:
"""
#!/usr/bin/env Ruby
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require "[application name]"
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment