Skip to content

Commit

Permalink
Added test for RichTextAreaInput
Browse files Browse the repository at this point in the history
  • Loading branch information
itsterry committed Mar 15, 2019
1 parent b5117cc commit 3b3ab24
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/inputs/rich_text_area_input_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true
# encoding: UTF-8
require 'test_helper'

class RichTextAreaInputTest < ActionView::TestCase
test 'input generates a text area for text attributes' do
with_input_for @user, :description, :text
assert_select 'textarea.text#user_description'
end

test 'input generates a text area for text attributes that accept placeholder' do
with_input_for @user, :description, :text, placeholder: 'Put in some text'
assert_select 'textarea.text[placeholder="Put in some text"]'
end
end

0 comments on commit 3b3ab24

Please sign in to comment.