[rspec-users] How is everyone structuring stories?

Zach Dennis zach.dennis at gmail.com
Tue Oct 23 18:44:38 EDT 2007


On the note of suffixes, I've been using _story over _spec for story files.
I have also add two top level directories in my project:
  project/
     specs/
     stories/


Zach


On 10/23/07, Ashley Moran <work at ashleymoran.me.uk> wrote:
>
> Bleeding-edge story-writers,
>
> How are you structuring your specs?
>
> I am working on a new project and tried this:
>
> ./lib
>    ./blah
> ./spec
>    ./blah
>    ./stories
>
> But it breaks autotest, so I moved stories parallel to lib and spec.
>
> Also what about suffixes?
>
> I have adopted "xyz_story_spec.rb", and "xyz.story" for the time
> being, with the line
>    runner = Spec::Story::Runner::PlainTextStoryRunner.new(
>                File.expand_path(__FILE__).gsub("_story_spec.rb",
> ".story")
>             )
>
> in the former.  Simple to make TextMate recognise the RSpec files
> (even though they aren't, as such) and to give an extension to the
> stories.
>
>
> Ashley
>
>
> --
> blog @ http://aviewfromafar.net/
> linked-in @ http://www.linkedin.com/in/ashleymoran
> currently @ home
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



-- 
Zach Dennis
http://www.continuousthinking.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071023/fd2dabeb/attachment.html 


More information about the rspec-users mailing list