aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/abstract
Commit message (Collapse)AuthorAgeFilesLines
* we raise a subclass of LoadError, so rescue thatAaron Patterson2012-06-141-1/+6
|
* Add a test case for layout nil.José Valim2012-03-281-1/+15
|
* use consistent explicit module inclusionLuke Gruber2012-03-163-6/+6
| | | | aid ease of understanding and readability for tests
* allow zero-arity proc for AbstrController::layoutLuke Gruber2012-03-151-0/+33
| | | | | proc without parameters can now be given to AbstractController::layout
* Add missing requireSantiago Pastorino2012-03-101-0/+1
|
* AbstractController.action_methods should return a SetSantiago Pastorino2012-03-101-1/+1
|
* Fix layout lookup for anonymous controllerAlexey Vakhov2012-02-281-0/+12
|
* AP tests should inherit from AS::TestCaseAaron Patterson2012-01-051-2/+2
|
* Remove deprecated layout lookup.José Valim2011-12-201-12/+3
|
* Deprecate implicit layout lookup in favor of inheriting the _layout config.José Valim2011-12-091-2/+2
|
* Allow layout fallback when using `layout` methodPrem Sichanugrist2011-12-061-1/+49
| | | | | | | | | | | | Rails will now use your default layout (such as "layouts/application") when you specify a layout with `:only` and `:except` condition, and those conditions fail. For example, consider this snippet: class CarsController layout 'single_car', :only => :show end Rails will use 'layouts/single_car' when a request comes in `:show` action, and use 'layouts/application' (or 'layouts/cars', if exists) when a request comes in for any other actions.
* Deprecate passing the template handler in the template name.José Valim2011-09-221-3/+3
| | | | | | For example, calling hello.erb is now deprecated. Since Rails 3.0 passing the handler had no effect whatsover. This commit simply deprecates such cases so we can clean up the code in later releases.
* Merge pull request #1644 from smartinez87/warnsSantiago Pastorino2011-06-101-1/+1
|\ | | | | Remove unused variable causing warning in 1.9.3
| * Remove unused variable causing warning in 1.9.3Sebastian Martinez2011-06-101-1/+1
| |
* | class WithSymbolReturningString is not used anywhere in the test.Neeraj Singh2011-06-081-12/+0
|/ | | | | | | | | | | Secondly it seemed from the method that the intent was to test a case where layout was declared in a symbol and the method named mention in layout returns nil. That case is already covered with class class WithSymbolReturningNil . Also the case of SymbolReturningString is covered with the class WithSymbol.
* Make test meaningfulNeeraj Singh2011-06-081-1/+1
| | | | | | | | | | If before_filter list was being called mistakenly then the test should fail. However test will not fail because second filter is assigning new values to @list. To truly test that first before_filter is not called when it should not be called then @list should not assigned value unconditionally. This patch will make the test fail if first filter is called.
* Merge pull request #1549 from neerajdotname/rename_to_method_for_actionJosé Valim2011-06-081-2/+2
|\ | | | | test name should reflect the name of the method
| * test name should reflect the name of the methodNeeraj Singh2011-06-081-2/+2
| | | | | | | | that is actually being called
* | remove unused class from testNeeraj Singh2011-06-081-6/+0
|/
* removing usesless variable assignmentsAaron Patterson2011-01-181-14/+14
|
* process_action accepts multiple args, even with Callbacks.Nick Sutterer2010-12-291-0/+21
|
* #948 template_inheritanceartemave2010-12-262-9/+9
|
* Avoid (@_var ||= nil) pattern by using initialize methods and ensuring ↵José Valim2010-09-291-1/+1
| | | | everyone calls super as expected.
* Fix more warnings by defining variables and using instance_variable_defined? ↵Emilio Tagua2010-09-281-2/+4
| | | | instead instance_variable_get.
* Add clear_helpers as a way to clean up all helpers added to this controller, ↵José Valim2010-08-261-2/+19
| | | | maintaing just the helper with the same name as the controller.
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-143-54/+54
| | | | 's/[ \t]*$//' -i {} \;)
* Reload action_methods in AbstractController after defining new method.Piotr Sarnacki2010-08-041-0/+14
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix setting helpers_path to a string or pathnameJeremy Kemper2010-07-071-1/+1
|
* Ensure overwritten callbacks conditions in controllers work [#4761 ↵José Valim2010-06-221-2/+12
| | | | state:resolved] [#3913 state:resolved]
* Use assert_respond_to because it has better error messagingNeeraj Singh2010-05-181-4/+4
| | | | | | [#4628 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Whitespacewycats2010-04-041-34/+33
|
* render_to_string should have the identical signature as renderwycats2010-04-041-0/+10
|
* Allow anything that responds to render to be given as :template and use ↵José Valim2010-03-121-104/+52
| | | | find_template instead of find in views.
* Move details to lookup_context and make resolvers use the cache key.José Valim2010-03-081-41/+1
|
* More refactoring on the views side of rendering.José Valim2010-03-082-51/+84
|
* Finally moved the find template logic to the views.José Valim2010-03-081-2/+2
|
* Move layout lookup to views.José Valim2010-03-081-1/+1
|
* Added template lookup responsible to hold all information used in template ↵José Valim2010-03-071-57/+0
| | | | lookup.
* Renamed LocalizedCache to DetailsCache.José Valim2010-02-241-1/+1
|
* deOMGifying Railties, Active Support, and Action PackMikel Lindsaar2010-01-311-9/+9
|
* Added :format and :locale options to render.José Valim2010-01-291-1/+40
|
* Fix rendering of layouts.José Valim2010-01-291-3/+3
|
* ActionMailer should depend just on AbstractController.José Valim2010-01-291-272/+0
|
* Merge remote branch 'fxn/master'Jeremy Kemper2010-01-261-1/+0
|\
| * deletes no void files removal.rb and class_test.rbXavier Noria2010-01-261-1/+0
| |
* | Bring layouts with proc back alive.José Valim2010-01-261-1/+15
| |
* | Merge branch 'master' of git://github.com/rails/railsJosé Valim and Mikel Lindsaar2010-01-251-1/+1
|\| | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/mail_helper.rb railties/lib/rails/configuration.rb
| * Fix failing tests after merge.José Valim2010-01-241-1/+1
| |
* | Added AbstractController::Collector.José Valim and Mikel Lindsaar2010-01-231-0/+57
|/
* Ensure strings given to render with slash are rendered relative to the ↵José Valim2010-01-221-5/+30
| | | | configured _prefix.