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/template
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
..
erb Move template tests from actionpack to actionview 2013-06-20 17:23:16 +02:00
testing Action Pack Variants 2013-12-04 00:13:16 +01:00
active_model_helper_test.rb Move template tests from actionpack to actionview 2013-06-20 17:23:16 +02:00
asset_tag_helper_test.rb remove un-needed sort 2014-10-07 16:54:38 -05:00
atom_feed_helper_test.rb Use regexp instead exact match for atom test 2014-07-15 14:42:36 -03:00
capture_helper_test.rb Revert "Re-enable capture'ing non-String values" 2014-12-15 21:20:54 -02:00
compiled_templates_test.rb handle <%== nil %> cases 2014-09-14 17:11:13 -07:00
date_helper_i18n_test.rb Move template tests from actionpack to actionview 2013-06-20 17:23:16 +02:00
date_helper_test.rb Duplicated Hash key :prompt 2014-11-19 08:29:22 +09:00
dependency_tracker_test.rb Fix that render layout should also be picked up by the template dependency tracker, but only half-ways. You can add that layout option on the same render call, and both templates should be added to the dependency tree. But thats going to require a more serious rework of the tracker. Please do help fix this part of it too. For now, render layout needs to be on its own line. 2014-07-25 16:37:18 -07:00
digestor_test.rb Make sure restoration always happen. 2014-06-14 15:55:52 +08:00
erb_util_test.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
form_collections_helper_test.rb Fix invalid css selectors in form_collections_helper_test.rb. 2014-06-16 21:04:25 +02:00
form_helper_test.rb Fix options overwritten by super 2014-12-09 09:33:03 -05:00
form_options_helper_i18n_test.rb Move template tests from actionpack to actionview 2013-06-20 17:23:16 +02:00
form_options_helper_test.rb Fixed #select form builder helper to support block with html output 2014-08-05 17:23:00 +03:00
form_tag_helper_test.rb Fix select_tag generating tag when set to false. 2014-11-21 17:44:24 +08:00
html_test.rb Use the reference for the mime type to get the format 2014-02-18 16:12:51 -03:00
javascript_helper_test.rb Avoid hard-coded value in test setup and teardown. 2014-06-14 16:12:44 +08:00
log_subscriber_test.rb Move template tests from actionpack to actionview 2013-06-20 17:23:16 +02:00
lookup_context_test.rb Fix the resolver cache and stop mutating the lookup_context 2014-03-14 17:32:32 -03:00
number_helper_test.rb reload I18n as we are defining :ts locale 2014-06-15 01:11:13 +05:30
output_safety_helper_test.rb In tag helper, honor html_safe on array parameters; also make safe_join more similar to Array.join by first calling flatten. 2014-06-12 15:30:40 -07:00
partial_iteration_test.rb Build only one PartialIteration object for loop 2014-07-16 14:54:22 -03:00
record_identifier_test.rb Better tests for AV::RecordIdentifier 2014-12-23 01:59:25 +01:00
record_tag_helper_test.rb Move template tests from actionpack to actionview 2013-06-20 17:23:16 +02:00
render_test.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
resolver_patterns_test.rb Fix method name typos 2013-09-05 10:43:57 +05:30
sanitize_helper_test.rb Ship with rails-html-sanitizer instead. 2014-09-03 20:27:59 +02:00
streaming_render_test.rb Remove unneeded files 2013-06-20 17:23:16 +02:00
tag_helper_test.rb Test to ensure content_tag works when fixing #17661 2014-12-16 17:37:26 +01:00
template_error_test.rb Use set_backtrace instead of @backtrace in ActionView error 2013-11-16 04:41:28 +09:00
template_test.rb Move template tests from actionpack to actionview 2013-06-20 17:23:16 +02:00
test_case_test.rb Change gsub to tr where possible 2014-10-06 14:03:06 +04:00
test_test.rb simplified route method name generation 2014-05-12 15:54:43 -07:00
text_helper_test.rb Added processing of nil to highlight helper method 2014-09-30 14:48:48 +03:00
text_test.rb Use the reference for the mime type to get the format 2014-02-18 16:12:51 -03:00
translation_helper_test.rb fix the undefined method content_tag #15245 2014-09-06 12:09:01 +05:30
url_helper_test.rb Included DomAssertions in url_helper- and atom_feed_helper_test.rb. 2014-06-16 21:04:18 +02:00