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 (
| name | age | message | |
|---|---|---|---|
| |
Commands/ | Mon Sep 29 16:42:22 -0700 2008 | |
| |
Preferences/ | Tue May 20 10:21:23 -0700 2008 | |
| |
README | Thu Sep 18 21:23:47 -0700 2008 | |
| |
Snippets/ | Thu Sep 18 21:23:47 -0700 2008 | |
| |
Support/ | Mon Sep 15 19:03:52 -0700 2008 | |
| |
Syntaxes/ | Mon Sep 15 11:45:54 -0700 2008 | |
| |
color_themes/ | Tue May 20 10:21:23 -0700 2008 | |
| |
info.plist | Thu Sep 18 21:23:47 -0700 2008 |
README
Textmate Bundle for RSpec plain text stories How to install: mkdir -p ~/Library/Application\ Support/TextMate/Bundles/ cd ~/Library/Application\ Support/TextMate/Bundles git clone git://github.com/bmabey/rspec-story-tmbundle.git RSpec\ Story.tmbundle In TextMate: From your drop down menu, select Bundles -> Bundle Editor -> Reload Bundles If you are doing ruby development with webrat you may also want the webrat bundle: http://github.com/bmabey/webrat-tmbundle/ Features: * Color highlighting for plain text stories * Themes that have been modified to take advantage of this can be found in color_themes/ * Snippets for plain text stories and step files. * Predefined completions (escape key) for common story keywords. * Spellchecking turned on by default for the plaintext stories. * Run the current plain text story and display in HTML. Clickable backtrace and all. * Switch between plain text story and corresponding step matcher file. * Automatically create template step file with pending steps based on the steps used in the story. Caveats: * Requires RSpec 1.1.4 * The running of stories and file switching relies on the following directory structure convention: Basic stories (no sub-directories): /project_root/stories |- basic_story.rb |- stories | |- basic_story.story (extension must be .story) | |- steps |- basic_story_steps.rb Using feature sub-directories: /project_root/stories |- feature_one | |- some_story.rb | |- stories | | |- some_story.story (extension must be .story) | | | |- steps | |- some_story_steps.rb | |- feature_two | ..... These directory structures can be used together (basic stories can reside in the root stories directory, and feature sets can be put in sub directories). TODO: * 6/1/2008 4:10AM - If in story file, and are switching to any other file, if a runner file doesn't exist - prompt to create it (right now - going to specific step from story file dies if not) * Run All Stories command. * Run Selected Stories command. * (MAYBE) Make running a story more robust to work with any configuration. * Warning / prompt about creating step runner file (when creating either a story or a steps file) TODONE: * Improve HTML output to show failing information. * If in story file, and step file doesn't exist, and going to specific step - make snippets work correctly - currently inserts new step and tag name of step file - steps_for(:Given "blah blah" ...) * When in step file - if doing SHIFT-CTRL-OPTION-DOWN - go to first step that match * Switch Command * Easily switch between a plain text story and it's runner ruby file. * Step Navigation * Be able to quickly navigate to the step files that are being used for the current story. * Automatically go to the selected step or create it if it does not exist. Authors: John Thornton Ben Mabey Original language part of the bundle taken from: http://www.movesonrails.com/articles/2007/11/06/rspec-plain-text-stories this was improved upon by John, Ben, and Jake Cahoon.







