<?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"
	>

<channel>
	<title>YAB &#187; merb</title>
	<atom:link href="http://blog.alexgirard.com/tag/merb/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.alexgirard.com</link>
	<description>Yet Another Blog</description>
	<pubDate>Wed, 26 Nov 2008 23:44:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>[Ruby] Behaviour Driven Development with RSpec</title>
		<link>http://blog.alexgirard.com/ruby-behaviour-driven-development-with-rspec/</link>
		<comments>http://blog.alexgirard.com/ruby-behaviour-driven-development-with-rspec/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 21:50:23 +0000</pubDate>
		<dc:creator>alx</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[feevy]]></category>

		<category><![CDATA[merb]]></category>

		<category><![CDATA[rspec]]></category>

		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.alexgirard.com/2008/02/24/ruby-behaviour-driven-development-with-rspec/</guid>
		<description><![CDATA[During the rewritting of Feevy.com with Merb, I&#8217;m discovering RSpec, a framework to be sure your code behave nicely.
Follow and join Feevy rewrite on Gitorious
Instead of normal test-units, you describe how your app/model should behave, which give a more-human conversation when you read your test:

  it "should create a feed from website http://blog.feevy.com" do

 [...]]]></description>
			<content:encoded><![CDATA[<p>During the rewritting of <a href="http://feevy.com">Feevy.com</a> with <a href="http://merbivore.com">Merb</a>, I&#8217;m discovering <a href="http://rspec.info">RSpec</a>, a framework to be sure your code behave nicely.</p>
<p><a href="http://gitorious.org/projects/feevy">Follow and join Feevy rewrite on Gitorious</a></p>
<p>Instead of normal test-units, you describe how your app/model should behave, which give a more-human conversation when you read your test:</p>
<pre class="prettyprint">
  it "should create a feed from website http://blog.feevy.com" do

    feed = Feed.new :website => "http://blog.feevy.com"

    feed.valid?(:save).should == true

    feed.link.should == "http://blog.feevy.com/feed/"
    feed.website.should == "http://blog.feevy.com"
    feed.title.should == "Feevy Blog"

  end
</pre>
<p>To re-initialize your database between each test:</p>
<pre class="prettyprint">
  before(:each) do
      Feed.delete_all
  end
</pre>
<p>Next step: <a href="http://dannorth.net/whats-in-a-story">writing Feevy stories</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alexgirard.com/ruby-behaviour-driven-development-with-rspec/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

