diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2018-04-07 08:23:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-07 08:23:40 +0100 |
commit | c86fa4f040cd0abf2382d1f87becb9cecc0b0a3b (patch) | |
tree | 79fed805fedfddc4af0c0f041400e7c640f30449 /actionview/test/template | |
parent | ec7c89b5160015c014aad0c90f5679252a91cb37 (diff) | |
parent | 5c5ddd69b1e06fb6b2bcbb021e9b8dae17e7cb31 (diff) | |
download | rails-c86fa4f040cd0abf2382d1f87becb9cecc0b0a3b.tar.gz rails-c86fa4f040cd0abf2382d1f87becb9cecc0b0a3b.tar.bz2 rails-c86fa4f040cd0abf2382d1f87becb9cecc0b0a3b.zip |
Merge pull request #32482 from yhirano55/remove_record_tag_helper
Remove RecordTagHelper
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 |