search for: account_controller_test

Displaying 5 results from an estimated 5 matches for "account_controller_test".

2006 May 07
0
NoMethodError trying to get ApplicationHelper method from a functional test
...tance_methods.each do |method| if method == "current_project" puts "calling " + method puts ApplicationHelper.send(method) end end ... Will find the method but then when it is called, it will still complain yeilding: Loaded suite test/functional/account_controller_test Started ..calling current_project E Finished in 0.172 seconds. 1) Error: test_should_login_and_redirect(AccountControllerTest): NoMethodError: undefined method `current_project'' for ApplicationHelper:Module test/functional/account_controller_test.rb:31:in `send'' test/fu...
2006 Jul 02
5
"the number of parameters does not match the number of substitutions" error
.../home/joe/projects/tanga/trunk/config/../vendor/rails/actionpack/lib/action_controller/assertions.rb:313:in `clean_backtrace'' /home/joe/projects/tanga/trunk/config/../vendor/rails/actionpack/lib/action_controller/assertions.rb:74:in `assert_redirected_to'' ./test/functional/account_controller_test.rb:16:in `test_index'' I thought it happened when I upgraded to Rails 1.1.4, but it happens now when I downgrade to 1.1.2. Here''s test/functional/account_controller_test.rb: class AccountControllerTest < Test::Unit::TestCase def setup @controller = AccountController.new...
2007 Aug 30
1
alias_method_chain stack level too deep in Rake test only
.../^https/ else return self.class.method_defined?(:request) ? request.ssl? : false end end end end end It is included in app/controllers/application.rb and in ActionView::Base. If I run ruby test/functional/people_controller_test.rb or ruby test/functional/ account_controller_test.rb, everything runs fine. If I run rake test:functionals, however, I get a "stack level too deep" within url_for within those two test classes. Example output: test_spec {The Account controller A guest (in general)} 001 [should be able to view the sign-up page](The Account contro...
2006 Nov 04
0
Functional test issue for testing newbie
...eturn unless request.post? if @user.update_attributes(params[:user]) flash[:notice_good] = ''Your account details were successfully updated.'' redirect_to :action => ''index'' else render :action => ''edit_details'' end end # account_controller_test.rb def test_should_update_user # login as valid user post :login, :email => ''quentin@example.com'', :password => ''test'' assert session[:user] get :edit_details assert_response :success post :edit_details, :first_name => ''Richard'...
2005 Mar 05
3
login generator problem
I am trying to use the login generator, but I keep getting the following error when I run "generate login Account": /usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/rails_generator/base.rb:84:in `manifest'': No manifest for ''login'' generator. (NotImplementedError) from (eval):3:in `__send__'' from (eval):3:in `manifest'' from