[rspec-users] [ANN] StepSpecr

Matthias Hennemeyer mhennemeyer at googlemail.com
Mon Apr 21 10:55:28 EDT 2008


Hi,
I've written a micro-dsl to spec the step-implementations for rspec  
user stories.

Here is a blog post about it:

http://www.workunitgroup.com/2008/4/21/introducing-stepspecr

It lives on github:
http://github.com/mhennemeyer/stepspecr

Some info (from the README)

StepSpecr is a Rails plugin intended to be used with Rspec User Stories.
It provides a 'testing' framework for speccing Given/When/Then steps  
within Rspec examples. This lets you implement GWT-steps the BDD way:


   describe "Given $count articles" do
     it "should create 1 articles for count=1" do

       StepSpecr.spec "Given 1 articles" do
         step_group :articles
         before do
           class Article
           end
           Article.should_receive(:create)
         end
       end

     end
   end

Thanks
matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080421/4fd2bff9/attachment-0001.html 


More information about the rspec-users mailing list