search for: clean_backtrace

Displaying 12 results from an estimated 12 matches for "clean_backtrace".

2006 Jul 25
1
Managing backtrace
...t_mailer_test.rb:39:in `test_confirm'']: assert_not_include: expected joes@shmoe.com not in joes@shmoe.com What I''d prefer is to remove the items in the backtrace array that refer to the test method because they don''t add information but am not certain how. Rails uses clean_backtrace, which looks like it should work, but no luck with that. Any help appreciated. -- Posted with http://DevLists.com. Sign up and save your mailbox.
2005 Dec 18
1
assert_template fails?
...llerTest): NoMethodError: undefined method `include?'' for :search:Symbol /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/assertions.rb:109:in `assert_template'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/assertions.rb:313:in `clean_backtrace'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/assertions.rb:108:in `assert_template'' test/functional/search_controller_test.rb:17:in `test_should_show_search_dropdown'' 1 tests, 1 assertions, 0 failures, 1 errors Anybody can tell me wher...
2010 Feb 19
2
Problem with assert_redirected_to
...roller/assertions/response_assertions.rb:62:in `each'' /blah/blah/blah/project/vendor/rails/actionpack/lib/action_controller/assertions/response_assertions.rb:62:in `assert_redirected_to'' /blah/blah/blah/project/vendor/rails/actionpack/lib/action_controller/assertions.rb:54:in `clean_backtrace'' /blah/blah/blah/project/vendor/rails/actionpack/lib/action_controller/assertions/response_assertions.rb:54:in `assert_redirected_to'' It doesn''t matter what I do with the parameters to assert_redirected_to I always get the same error. Anybody encountered this before?...
2006 Jul 02
5
"the number of parameters does not match the number of substitutions" error
...does not match the number of substitutions. /home/joe/projects/tanga/trunk/config/../vendor/rails/actionpack/lib/action_controller/assertions.rb:92:in `assert_redirected_to'' /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 happen...
2009 May 02
10
Problem verifying routing error
...er/assertions/routing_assertions.rb:134:in `recognized_request_for'' /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/assertions/routing_assertions.rb:49:in `assert_recognizes'' /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/assertions.rb:54:in `clean_backtrace'' /Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/assertions/routing_assertions.rb:47:in `assert_recognizes'' ./spec/controllers/thoughts_routing_spec.rb:9: I tried using bypass_rescue in my routing/items_routing_spec.rb file as mentioned by the upgrade doc, but...
2007 May 24
3
Exception Notification Plugin Question
Hi, I have two questions re the Exception Notifier plugin (i.e. which you install via "ruby script/plugin install exception_notification") Q1 - In it''s current setup (where it uses /public/500.html) is it possible to remove the "Status: 500 Internal Server Error Content-Type: text/html" text which seems to mysteriously get place at the top of the page? Q2 -
2006 Jul 11
0
assert_redirected_to not recognizing routes
...The number of parameters does not match the number of substitutions. /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/assertions.rb:92:in `assert_redirected_to'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/assertions.rb:313:in `clean_backtrace'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/assertions.rb:74:in `assert_redirected_to'' ./test/functional/user_controller_test.rb:31:in `test_signin'' My signin method redirects the user to ''/'' if they request the si...
2007 Jan 21
0
Functional Test Fails with before filter in application.rb
...ssertions.rb:72:in `assert_redirected_to'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/assertions/response_assertions.rb:43:in `assert_redirected_to'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/assertions.rb:60:in `clean_backtrace'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/assertions/response_assertions.rb:35:in `assert_redirected_to'' test/functional/user_controller_test.rb:24:in `test_index_with_user'' The controller I am testing is user_controller.rb THe ch...
2010 Oct 13
0
Overriding log_error in Rails3 not working
I have this in my application.rb: private def log_error(exception) super UserMailer.error_message(exception, clean_backtrace(exception), session.instance_variable_get("@data"), params, request.env ).deliver end I''d like the errors emailed to me. It doesn''t seem to be calling that "log_error" at all. Is this done some other way in Ra...
2007 Dec 24
1
Uninitialized constant in integration test
...ertions/response_assertions.rb:62:in `each'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.1/lib/action_controller/assertions/response_assertions.rb:62:in `assert_redirected_to'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.1/lib/action_controller/assertions.rb:54:in `clean_backtrace'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.1/lib/action_controller/assertions/response_assertions.rb:54:in `assert_redirected_to'' test/integration/foo_test.rb:6:in `test_redirect'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.1/lib/action_controller/...
2007 Mar 22
1
Functional test and flash with an error
...est.rb 1) Failure: test_create(Admin::UserControllerTest) [/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/assertions/tag_assertions.rb:102:in `assert_tag'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/assertions/tag_assertions.rb:99:in `clean_backtrace'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/assertions/tag_assertions.rb:99:in `assert_tag'' test/functional/admin/user_controller_test.rb:49:in `test_create'' test/functional/admin/user_controller_test.rb:40:in `assert_difference'...
2006 Apr 26
0
Re: gSOAP and ActionWebService interop problems
...patch'' script/server:49 NoMethodError (You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.collect): /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/ action_controller/rescue.rb:136:in `clean_backtrace'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/ action_controller/rescue.rb:44:in `log_error'' /usr/lib/ruby/gems/1.8/gems/actionwebservice-1.1.2/lib/ action_web_service/dispatcher/action_controller_dispatcher.rb:67:in `dispatch_web_service_request''...