diff options
author | Yoshiyuki Hirano <yhirano@me.com> | 2018-04-07 02:50:57 +0900 |
---|---|---|
committer | Yoshiyuki Hirano <yhirano@me.com> | 2018-04-07 09:28:01 +0900 |
commit | 5c5ddd69b1e06fb6b2bcbb021e9b8dae17e7cb31 (patch) | |
tree | 377f9b9d48965bfbb608ed63dea55a53bd797ec5 /actionview/test/template | |
parent | 457312f54fc1641ad42bcc6362b13836fc30feec (diff) | |
download | rails-5c5ddd69b1e06fb6b2bcbb021e9b8dae17e7cb31.tar.gz rails-5c5ddd69b1e06fb6b2bcbb021e9b8dae17e7cb31.tar.bz2 rails-5c5ddd69b1e06fb6b2bcbb021e9b8dae17e7cb31.zip |
Remove RecordTagHelper
* Since #18411, we started to inform about extracted gem (record_tag_helper)
to developers who use `ActionView::Helpers::RecordTagHelper` 's methods.
* Currently, it seems no problem that we don't have to support no longer.
Diffstat (limited to 'actionview/test/template')
-rw-r--r-- | actionview/test/template/record_tag_helper_test.rb | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/actionview/test/template/record_tag_helper_test.rb b/actionview/test/template/record_tag_helper_test.rb deleted file mode 100644 index 7bbbfccdd0..0000000000 --- a/actionview/test/template/record_tag_helper_test.rb +++ /dev/null @@ -1,33 +0,0 @@ -# frozen_string_literal: true - -require "abstract_unit" - -class RecordTagPost - extend ActiveModel::Naming - - attr_accessor :id, :body - - def initialize - @id = 45 - @body = "What a wonderful world!" - - yield self if block_given? - end -end - -class RecordTagHelperTest < ActionView::TestCase - tests ActionView::Helpers::RecordTagHelper - - def setup - super - @post = RecordTagPost.new - end - - def test_content_tag_for - assert_raises(NoMethodError) { content_tag_for(:li, @post) } - end - - def test_div_for - assert_raises(NoMethodError) { div_for(@post, class: "special") } - end -end |