1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/test
claudiob b26338e83b Better tests for AV::RecordIdentifier
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.
2014-12-23 01:59:25 +01:00
..
actionpack Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
activerecord Move test that depends on ActiveRecord 2014-11-21 12:38:28 -08:00
fixtures Merge pull request #17878 from claudiob/remove-unused-modgreet-fixture 2014-12-02 10:32:21 +01:00
lib/controller Better tests for AV::RecordIdentifier 2014-12-23 01:59:25 +01:00
template Better tests for AV::RecordIdentifier 2014-12-23 01:59:25 +01:00
tmp
abstract_unit.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
active_record_unit.rb Change back occurrences of SQLite(3) to sqlite3 when referring to the 2014-07-06 11:47:16 -07:00