Displaying 1 result from an estimated 1 matches for "articlescontrollertest".
Did you mean:
articlecontrollertest
2006 Feb 01
3
Test data life cycle confusion
...ind(1)
post :destroy, :id => 1
assert_response :redirect
assert_redirected_to :action => ''list''
assert_raise(ActiveRecord::RecordNotFound) {
Article.find(1)
}
end
And finally, the error that''s being thrown when this is run:
1) Error:
test_edit(Controllers::Admin::ArticlesControllerTest):
ActiveRecord::RecordNotFound: Couldn''t find Article with ID=1
So, it looks like test_destroy is being run first... any idea why my
fixtures aren''t being reloaded before each test is being run? Is there
something else I should be doing?
Thanks in advance,
Mike