cucumbers creating cucumbers
October 13th, 2008
I’m preparing to present a practical demonstration of rspec, cucumber and friends at Rails Summit Latin America this Thursday.
<p>I was playing with the idea of using cucumber/rspec to drive the development of a cucumber browser/editor, but I’ve decided that it ends up being a bit too meta for a conference presentation.</p>
<p>Of course, nothing is too meta for a blog post, and clearly I’ve already procrastinated a great deal if it’s just a few days before and I’m still prototyping the app, so why not take some more time away from what I should be doing and post this sillyness?</p>
<p>And with <strong>that</strong> ... enjoy!</p>
Feature: create featureSo that I can easily create new feature As a stakeholder I want to create a feature in a browser
Scenario: create feature When I create a new feature named "Eat Cheese" And I give "Eat Cheese" the narrative: So that I can be happy As a cheese-loving person I want to eat cheese And I add a scenario to "Eat Cheese" named "roquefort" And I add a step to "roquefort" with "Given I am holding my nose" And I add a step to "roquefort" with "When I eat a hunk o' roquefort" And I add a step to "roquefort" with "Then I should smile at its deliciousness"
And I save and run the "roquefort" scenario Then I should see "3 steps pending" And I should see: You can use these snippets to implement pending steps: Given /^I am holding my nose$/ do end When /^I eat a hunk o' roquefort$/ do end Then /^I should smile at its deliciousness$/ do end
DISCLAIMER: This also assumes some support for multi-line steps that has not yet been implemented and may not be supported as depicted here. So please don’t try this at home.


October 13th, 2008 at 4:30 am
Dude, that’s bent
October 13th, 2008 at 4:30 am
wgy wuy wywu uye
October 13th, 2008 at 4:30 am
Hi David…
October 13th, 2008 at 4:30 am
Is there an rspec on rails book on the horizon? If so, about when? Thanks!
October 13th, 2008 at 4:30 am
Hi David, I’m from Brasil and I went to Rails Summit Latin America, and I really enjoyed your presentation.
October 13th, 2008 at 4:30 am
I would say its more transparent
October 13th, 2008 at 4:30 am
Nice work,
http://blog.davidchelimsky.net/articles/2007/05/14/an-introduction-to-rspec-part-i