<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Moves On Rails: Webrat Story Steps</title>
    <link>http://movesonrails.com/articles/2008/08/19/webrat-story-steps</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>New ways to look at software</description>
    <item>
      <title>Webrat Story Steps</title>
      <description>&lt;p&gt;We have just released a plugin for Rails making it much easier to use Rspec Stories for your integration tests!&lt;/p&gt;

&lt;p&gt;Clone it &lt;a href="http://github.com/foeken/webrat_story_steps/"&gt;here&lt;/a&gt; from github.&lt;/p&gt;

&lt;p&gt;No longer will you have to figure out your own grammar. We have done it for you. Now you are able to write stuff like this out of the box:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;pre&gt;
    Given a user with username 'Dummy' exists
    And it has password 'monkey'
&lt;/pre&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Even relationships (has many and belongs to are supported!)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;pre&gt;
    Given the administrator is logged in
    And a user with username 'A' exists
    And the user with username 'A' has a responsibility for / 
    the role with name 'Administrator'
&lt;/pre&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Naturally we also support a lot of clicking, selecting and checking!&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;pre&gt;
    When he clicks the 'Admin' link
    And he clicks the 'Roles' link
    And he clicks the 'Add a new role' link
    When he selects 'Planner'
    And he clicks the button
&lt;/pre&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Even simple Javascript popups!&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;pre&gt;
   Then he should see a popup with the message 'Are you sure?'
   When he confirms the popup
&lt;/pre&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;And it's simple to extend. We extended it to allow us to check our importer.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;pre&gt;
    Given the latest version of iO Connect is used
    And there are no addresses in the system
    When a client with objectId '1' is created in iO
    And an address with street '1st' is created in iO
    And the importer has been run&lt;br/&gt;
    Then an imported address with street '1st' should exist in Moves
&lt;/pre&gt;&lt;/code&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 19 Aug 2008 14:11:00 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:1181d763-82ce-47a3-a495-a2388365478c</guid>
      <author>andre.foeken@movesonrails.com (Andre Foeken)</author>
      <link>http://movesonrails.com/articles/2008/08/19/webrat-story-steps</link>
    </item>
  </channel>
</rss>
