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
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to