From 5c5ddd69b1e06fb6b2bcbb021e9b8dae17e7cb31 Mon Sep 17 00:00:00 2001 From: Yoshiyuki Hirano Date: Sat, 7 Apr 2018 02:50:57 +0900 Subject: 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. --- actionview/test/template/record_tag_helper_test.rb | 33 ---------------------- 1 file changed, 33 deletions(-) delete mode 100644 actionview/test/template/record_tag_helper_test.rb (limited to 'actionview/test') 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 -- cgit v1.2.3