Skip to content

Commit 3b3ab24

Browse files
committed
Added test for RichTextAreaInput
1 parent b5117cc commit 3b3ab24

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# frozen_string_literal: true
2+
# encoding: UTF-8
3+
require 'test_helper'
4+
5+
class RichTextAreaInputTest < ActionView::TestCase
6+
test 'input generates a text area for text attributes' do
7+
with_input_for @user, :description, :text
8+
assert_select 'textarea.text#user_description'
9+
end
10+
11+
test 'input generates a text area for text attributes that accept placeholder' do
12+
with_input_for @user, :description, :text, placeholder: 'Put in some text'
13+
assert_select 'textarea.text[placeholder="Put in some text"]'
14+
end
15+
end

0 commit comments

Comments
 (0)