aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/lib/controller
Commit message (Collapse)AuthorAgeFilesLines
* Better tests for AV::RecordIdentifierclaudiob2014-12-231-0/+12
| | | | | | | | | | | | | | | | | This commit intends to clarify the scope of ActionView::RecordIdentifier methods `dom_id` and `dom_class`. Most of the current documentation comes from da257eb8 (7 years ago) when the decoupling of ActionView, ActiveRecord and ActiveModel was not a concern. Since then, steps have been taken to reach such decoupling. Therefore I think it's important to show that ActionView::RecordIdentifier **does not strictly depend on the ActiveRecord API**: any class `Post` implementing `post.to_key` and `post.model_name.param_key` will work. This commit adds a test to prove that ActionView::RecordIdentifier methods can also be used on objects that do not subclass ActiveRecord::Base.
* Remove unused Sheep fixture from AVclaudiob2014-12-221-13/+0
| | | | | | | | The `Sheep` fixture was added in eb23754e when moving template tests from actionpack to actionview, but it's not actually used in ActionView tests. The `Sheep` fixture is only used to test `uncountable` in ActiveModel tests, and is already defined in activemodel/test/models/sheep.rb
* Moved viewpathstest into actionview/test/actionpack/controllerArun Agrawal2013-10-091-174/+0
| | | | These test were not running at all, Now it will run as a tests part.
* FakeController is not required in AVArun Agrawal2013-10-091-35/+0
|
* Move view_paths from AP to AVŁukasz Strzałkowski2013-08-251-0/+174
|
* Remove unneeded filesPiotr Sarnacki2013-06-201-34/+0
|
* Move template tests from actionpack to actionviewPiotr Sarnacki2013-06-202-0/+254