Webrat Story Steps
Posted by Andre Foeken Tue, 19 Aug 2008 12:19:26 GMT
We have just released a plugin for Rails making it much easier to use Rspec Stories for your integration tests!
Clone it here from github.
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:
Given a user with username 'Dummy' exists
And it has password 'monkey'
Even relationships (has many and belongs to are supported!)
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'
Naturally we also support a lot of clicking, selecting and checking!
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
Even simple Javascript popups!
Then he should see a popup with the message 'Are you sure?'
When he confirms the popup
And it's simple to extend. We extended it to allow us to check our importer.
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
Then an imported address with street '1st' should exist in Moves
