require 'spec_helper' describe 'rendering text area' do let(:attributes) { {} } let(:resolver) { HungryForm::Resolver.new } let(:group) { HungryForm::Elements::Group.new(:group, nil, resolver, visible: true) {} } let(:field) { HungryForm::Elements::TextArea.new(:field_name, group, resolver, attributes) } let(:render_params) { { partial: 'hungryform/text_area', locals: { field: field } } } it_behaves_like 'it is wrapped in a div' it_behaves_like 'rendered active element' it 'has a text area' do render render_params expect(rendered).to match /