This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
merb-plugins / merb_stories
| name | age | message | |
|---|---|---|---|
| .. | |||
| |
Generators | Fri Sep 19 17:58:11 -0700 2008 | |
| |
LICENSE | Mon Mar 03 16:05:03 -0800 2008 | |
| |
README | Fri Sep 19 17:58:11 -0700 2008 | |
| |
Rakefile | Fri Dec 12 16:15:54 -0800 2008 | |
| |
TODO | Sun Feb 10 18:55:29 -0800 2008 | |
| |
lib/ | Fri Sep 19 17:58:11 -0700 2008 |
merb_stories/README
merb_stories ========= A plugin for the Merb framework that provides helper functionality for running stories in the rSpec testing framework. == Stories merb_stories supports rSpec story generation for regular Merb apps. See http://rspec.info for more information on using rSpec plain text stories. When using the generators for the first time, a few extra helper files will be generated. === Generation Examples ==== Simple To generate a simple story use: {{{merb-gen story my_story}}} This will generate all files needed to support that story. - steps/my_story.rb - stories/my_story - stories/my_story.rb ==== Complex You can keep your stories organized by putting stories into sub-directories. To do this with the generator use: {{{merb-gen story complex/story_group/story_file}}} This will generate the following files: - steps/complex_story_group_story_file.rb - stories/complex/story_group/story_file - stories/complex/story_group/story_file.rb === Usage Examples merb_stories has a rake task for running your stories. To include it you need to make merb_stories a dependency in your app. To make the rake file available, in config/init.rb include the following line: {{{dependency "merb_stories" if Merb.environment == "test"}}} Once you have the rake file available you can run the stories: rake story[my_story] OR for complex examples rake story[complex/story_group/story_file] OR to run all the stories rake story[all]







