Displaying 2 results from an estimated 2 matches for "admincontrollertest".
Did you mean:
admin_controller_test
2006 Feb 08
1
functional test problem
...= User.find(2)
post :delete_user, {:id => user.id}
assert_equal "User deleted", flash[:notice]
assert_nil User.find(2)
assert_redirected_to :action => ''manage_users''
end
** The Error *******************************
1) Error:
test_delete_user(AdminControllerTest):
ActiveRecord::RecordNotFound: Couldn''t find User with ID=2
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:412:in
`find''
test/functional/admin_controller_test.rb:140:in `test_delete_user''
14 tests, 109 assertions, 0 failures, 1 err...
2006 Jul 24
1
All functional tests fail with RoutingError
All,
I''m using InstantRails 1.0 on Windows XP and all my functional
(controller) tests fail with ActionController::RoutingError, although
the actions work OK through a web server/browser. Here''s an example of
an error:
1) Error:
test_create(AdminControllerTest):
ActionController::RoutingError: No url can be generated for the hash
{:controlle
r=>"admin", :action=>"create"}
generated_code/routing/generation.rb:92:in `generate_default_path''
c:/Install/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/...