<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Firebones &#187; rspec</title>
	<atom:link href="http://blog.firebones.com/category/rspec/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.firebones.com</link>
	<description>Code.  Money.  Literature.</description>
	<lastBuildDate>Mon, 21 Feb 2011 03:59:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Write for Valleywag: the rspec Story</title>
		<link>http://blog.firebones.com/2008/02/25/how-to-write-for-valleywag-the-rspec-story/</link>
		<comments>http://blog.firebones.com/2008/02/25/how-to-write-for-valleywag-the-rspec-story/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 03:49:01 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[rspec]]></category>
		<category><![CDATA[bdd]]></category>
		<category><![CDATA[snark]]></category>
		<category><![CDATA[tdd]]></category>
		<category><![CDATA[valleywag]]></category>

		<guid isPermaLink="false">http://blog.firebones.com/2008/02/25/how-to-write-for-valleywag-the-rspec-story/</guid>
		<description><![CDATA[The last week or so I&#8217;ve been playing with rspec, a Behavior-Driven Development framework useful for capturing user stories from which code is derived.  BDD seeks to improve upon test-driven development by moving up a level, representing actual user requirements as the starting point for development, rather than starting with a specific implicit design [...]]]></description>
			<content:encoded><![CDATA[<p>The last week or so I&#8217;ve been playing with <a href="http://rspec.info/">rspec</a>, a <a href="http://behaviour-driven.org/">Behavior-Driven Development</a> framework useful for capturing user stories from which code is derived.  BDD seeks to improve upon test-driven development by moving up a level, representing actual user requirements as the starting point for development, rather than starting with a specific implicit design in mind.</p>
<p>For my own amusement, I turned the <a href="http://valleywag.com/355695/how-to-write-for-valleywag">tips for writing in the Valleywag style</a> into an rspec plain text story:</p>
<pre style="font: normal 12px monaco 'lucida console', 'courier new', courier, serif;color:#66FF00;background:#000000;overflow:auto;">
Story: author writes a Valleywag story
  As an author
  I want to write a story
  So that it meets the Gawker criteria

  Scenario: writer expresses the rage of the creative underclass
    Given a Valleywag writer
    When writer writes a post
    Then reader should feel the expressed rage of the creative underclass

  Scenario: writer mixes a plus and a minus
    Given a Valleywag writer
    When writer writes a post
    Then post include a plus
    And post should include a minus

  Scenario: writer slams people not companies or products
    Given a Valleywag writer
    When writer writes a post
    Then post should slam people
    And post should not slam companies
    And post should not slam products

  Scenario: writer insults but is surprising
    Given a Valleywag writer
    When writer writes a post
    Then post should insult
    And reader should be surprised

  Scenario: writer doesn't let his anger get to him
    Given a Valleywag writer
    When writer writes a post
    Then post shouldn't reflect writer's anger

  Scenario: writer avoids beat-downs
    Given a Valleywag writer
    When writer writes a post
    Then post should not contain a beat-down

  Scenario: writer doesn't fisk
    Given a Valleywag writer
    When writer writes a post
    Then post should not fisk

  Scenario: writer says only things writer would say in conversation
    Given a Valleywag writer
    When writer writes a post
    Then post says only things that writer would say in conversation

  Scenario: writer avoids journalist math and uses specifics
    Given a Valleywag writer
    When writer writes a post
    Then post uses good math
    And post uses specifics

  Scenario: writer writes only one joke per post
    Given a Valleywag writer
    When writer writes a post
    Then post contains one and only one joke

  Scenario: writer bails early
    Given a Valleywag writer
    When writer writes a post
    Then post is not overly long

  Scenario: writer uses satire and parody to illustrate subject's foibles
    Given a Valleywag writer
    When writer writes a post
    Then post contains satire illustrating subject's foibles
    And post contains parody illustrating subject's foibles

  Scenario: writer never uses the word douchebag
    Given a Valleywag writer
    When writer writes a post
    Then post does not contain word douchebag
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.firebones.com/2008/02/25/how-to-write-for-valleywag-the-rspec-story/feed/</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
	</channel>
</rss>

