Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move abstract's controller tests to AV | Łukasz Strzałkowski | 2013-08-25 | 14 | -886/+0 |
| | | | | The ones that were actually testing AV functionality and should belong in there | ||||
* | Create AbstractController::Rendering interface | Łukasz Strzałkowski | 2013-08-25 | 4 | -1/+5 |
| | | | | This interface should be use when implementing renderers. | ||||
* | Fix AP test suite after moving stuff to AV | Łukasz Strzałkowski | 2013-08-25 | 4 | -6/+6 |
| | |||||
* | add test-case to verify `error.path` when a helper was not found. | Yves Senn | 2013-07-12 | 1 | -0/+5 |
| | | | | | This verifies the code added with: https://github.com/rails/rails/commit/99c9d18601539c7e7e87f26bb047add1f93072af | ||||
* | move `MissingHelperError` out of the `ClassMethods` module. | Yves Senn | 2013-07-12 | 1 | -1/+1 |
| | |||||
* | Remove accidentally committed vi .swp file. | Marc Schütz | 2013-07-10 | 1 | -0/+0 |
| | |||||
* | Show real LoadError on helpers require | Piotr Niełacny | 2013-07-10 | 2 | -0/+20 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | When helper try to require missing file rails will throw exception about missing helper. # app/helpers/my_helper.rb require 'missing' module MyHelper end And when we try do load helper class ApplicationController helper :my end Rails will throw exception. This is wrong because there is a helper file. Missing helper file helpers/my_helper.rb Now when helper try to require non-existed file rails will throw proper exception. No such file to load -- missing | ||||
* | Avoid leak into controller's action_methods | printercu | 2013-04-18 | 1 | -0/+6 |
| | |||||
* | Refactored to remove unused variable | Anupam Choudhury | 2013-03-28 | 1 | -2/+2 |
| | |||||
* | Merge pull request #8458 from ↵ | Rafael Mendonça França | 2013-03-27 | 1 | -0/+14 |
|\ | | | | | | | | | | | | | | | | | lucisferre/improve-layout-override-fallback-behavior Provides standard layout lookup behavior for method and proc cases Conflicts: actionpack/CHANGELOG.md | ||||
| * | Provides standard layout lookup behavior for method and proc cases | Chris Nicola | 2013-03-27 | 1 | -0/+14 |
| | | | | | | | | | | | | | | When setting the layout either by referencing a method or supplying a Proc there is no way to fall back to the default lookup behavior if desired. This patch allows fallback to the layout lookup behavior when returning nil from the proc or method. | ||||
* | | Changed 'args' to 'arguments' in test description | Prathamesh Sonpatki | 2013-03-24 | 2 | -2/+2 |
|/ | |||||
* | Fix setting expected value in translation tests | Carlos Antonio da Silva | 2013-01-21 | 1 | -2/+2 |
| | | | | It was being set to nil instead due to the wrong assignment. | ||||
* | Removed ActionController::Base dependency from abstract controller ↵ | Jens Bissinger | 2013-01-20 | 1 | -41/+46 |
| | | | | translation tests. | ||||
* | Test abstract controller's localize method. | Jens Bissinger | 2013-01-20 | 1 | -0/+6 |
| | |||||
* | Remove unnecessary begin..rescue..end, use only rescue | Akira Matsuda | 2013-01-06 | 2 | -11/+7 |
| | |||||
* | add tests to aliased _filter callbacks | Francesco Rodriguez | 2012-12-07 | 1 | -0/+46 |
| | |||||
* | use `_action` instead of `_filter` callbacks | Francesco Rodriguez | 2012-12-07 | 1 | -21/+19 |
| | |||||
* | Rename all action callbacks from *_filter to *_action | David Heinemeier Hansson | 2012-12-07 | 1 | -5/+5 |
| | |||||
* | add lazy look up in abstract controller's translate method | Sergey Pchelincev | 2012-07-18 | 1 | -0/+13 |
| | |||||
* | we raise a subclass of LoadError, so rescue that | Aaron Patterson | 2012-06-14 | 1 | -1/+6 |
| | |||||
* | Add a test case for layout nil. | José Valim | 2012-03-28 | 1 | -1/+15 |
| | |||||
* | use consistent explicit module inclusion | Luke Gruber | 2012-03-16 | 3 | -6/+6 |
| | | | | aid ease of understanding and readability for tests | ||||
* | allow zero-arity proc for AbstrController::layout | Luke Gruber | 2012-03-15 | 1 | -0/+33 |
| | | | | | proc without parameters can now be given to AbstractController::layout | ||||
* | Add missing require | Santiago Pastorino | 2012-03-10 | 1 | -0/+1 |
| | |||||
* | AbstractController.action_methods should return a Set | Santiago Pastorino | 2012-03-10 | 1 | -1/+1 |
| | |||||
* | Fix layout lookup for anonymous controller | Alexey Vakhov | 2012-02-28 | 1 | -0/+12 |
| | |||||
* | AP tests should inherit from AS::TestCase | Aaron Patterson | 2012-01-05 | 1 | -2/+2 |
| | |||||
* | Remove deprecated layout lookup. | José Valim | 2011-12-20 | 1 | -12/+3 |
| | |||||
* | Deprecate implicit layout lookup in favor of inheriting the _layout config. | José Valim | 2011-12-09 | 1 | -2/+2 |
| | |||||
* | Allow layout fallback when using `layout` method | Prem Sichanugrist | 2011-12-06 | 1 | -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é Valim | 2011-09-22 | 1 | -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/warns | Santiago Pastorino | 2011-06-10 | 1 | -1/+1 |
|\ | | | | | Remove unused variable causing warning in 1.9.3 | ||||
| * | Remove unused variable causing warning in 1.9.3 | Sebastian Martinez | 2011-06-10 | 1 | -1/+1 |
| | | |||||
* | | class WithSymbolReturningString is not used anywhere in the test. | Neeraj Singh | 2011-06-08 | 1 | -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 meaningful | Neeraj Singh | 2011-06-08 | 1 | -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_action | José Valim | 2011-06-08 | 1 | -2/+2 |
|\ | | | | | test name should reflect the name of the method | ||||
| * | test name should reflect the name of the method | Neeraj Singh | 2011-06-08 | 1 | -2/+2 |
| | | | | | | | | that is actually being called | ||||
* | | remove unused class from test | Neeraj Singh | 2011-06-08 | 1 | -6/+0 |
|/ | |||||
* | removing usesless variable assignments | Aaron Patterson | 2011-01-18 | 1 | -14/+14 |
| | |||||
* | process_action accepts multiple args, even with Callbacks. | Nick Sutterer | 2010-12-29 | 1 | -0/+21 |
| | |||||
* | #948 template_inheritance | artemave | 2010-12-26 | 2 | -9/+9 |
| | |||||
* | Avoid (@_var ||= nil) pattern by using initialize methods and ensuring ↵ | José Valim | 2010-09-29 | 1 | -1/+1 |
| | | | | everyone calls super as expected. | ||||
* | Fix more warnings by defining variables and using instance_variable_defined? ↵ | Emilio Tagua | 2010-09-28 | 1 | -2/+4 |
| | | | | instead instance_variable_get. | ||||
* | Add clear_helpers as a way to clean up all helpers added to this controller, ↵ | José Valim | 2010-08-26 | 1 | -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 Pastorino | 2010-08-14 | 3 | -54/+54 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Reload action_methods in AbstractController after defining new method. | Piotr Sarnacki | 2010-08-04 | 1 | -0/+14 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix setting helpers_path to a string or pathname | Jeremy Kemper | 2010-07-07 | 1 | -1/+1 |
| | |||||
* | Ensure overwritten callbacks conditions in controllers work [#4761 ↵ | José Valim | 2010-06-22 | 1 | -2/+12 |
| | | | | state:resolved] [#3913 state:resolved] | ||||
* | Use assert_respond_to because it has better error messaging | Neeraj Singh | 2010-05-18 | 1 | -4/+4 |
| | | | | | | [#4628 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> |