| Path: | README |
| Last Update: | Sat Oct 13 15:52:16 -0600 2007 |
Provides a framework of common integration tests for RESTful CRUD interactions.
script/plugin install svn://rubyforge.org/var/svn/arid/trunk
class ArticleTest < ActionController::IntegrationTest
include ActiveResourceIntegrationDsl
def test_some_article_functionality
new_session_as('jonnyg','testing123') do |jon|
params = {:article => {
:title => 'Foo Bites Bar',
:content => 'Bar was bitten by Foo yesterday.'
}}
jon.builds_story(:params => params)
params = {:article => {:title => 'Bar Bitten Badly'}}
jon.edits_story(1,:params => params)
jon.lists_stories
jon.shows_story(1)
jon.destroys_story(1)
end
end
end
Complete API Documentation @
Released under the MIT license.
The plugin makes certain assumptions about your application. Some of these can be bypassed or overridden if your app does not conform.