{"id":197,"date":"2010-06-01T14:00:41","date_gmt":"2010-06-01T20:00:41","guid":{"rendered":"http:\/\/www.pervasivecode.com\/blog\/?p=197"},"modified":"2010-06-01T14:02:30","modified_gmt":"2010-06-01T20:02:30","slug":"the-princess-and-the-pea-as-a-cucumber-feature","status":"publish","type":"post","link":"http:\/\/www.pervasivecode.com\/blog\/2010\/06\/01\/the-princess-and-the-pea-as-a-cucumber-feature\/","title":{"rendered":"The Princess and the Pea, as a Cucumber Feature"},"content":{"rendered":"<p><a href=\"http:\/\/twitter.com\/kentbeck\/\">Kent Beck<\/a> tweeted:<\/p>\n<blockquote><p>\nUser story: &#8220;As a princess I want to confirm my royalty so I get bruised after sleeping on 40 mattresses over a pea&#8221;. Just tell real stories&#8221;\n<\/p><\/blockquote>\n<p>That sounded so much like a <a href=\"http:\/\/cukes.info\/\">Cucumber<\/a> feature that I decided to write it as one:<\/p>\n<pre>\r\nFeature: Physical Sensitivity\r\n  In order to confirm my royalty\r\n  As a princess\r\n  I want to be very delicate\r\n\r\n  Scenario: 40 mattresses on a pea\r\n  Given there is a pea on the bed\r\n  And there is a stack of 20 mattresses on the pea\r\n  And there is a stack of 20 featherbeds on the mattresses\r\n  When I try to sleep on top of the stack of featherbeds\r\n  Then I should not be able to sleep\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Kent Beck tweeted: User story: &#8220;As a princess I want to confirm my royalty so I get bruised after sleeping on 40 mattresses over a pea&#8221;. Just tell real stories&#8221; That sounded so much like a Cucumber feature that I decided to write it as one: Feature: Physical Sensitivity In order to confirm my royalty &hellip; <a href=\"http:\/\/www.pervasivecode.com\/blog\/2010\/06\/01\/the-princess-and-the-pea-as-a-cucumber-feature\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;The Princess and the Pea, as a Cucumber Feature&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,30,1],"tags":[],"class_list":["post-197","post","type-post","status-publish","format-standard","hentry","category-ruby","category-testing","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts\/197"}],"collection":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/comments?post=197"}],"version-history":[{"count":4,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts\/197\/revisions"}],"predecessor-version":[{"id":200,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts\/197\/revisions\/200"}],"wp:attachment":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/media?parent=197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/categories?post=197"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/tags?post=197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}