require 'spec_helper' require 'action_view' describe 'form_helper_bs spec:' do before do ExtForm.setup do |e| e.layout = 'BootstrapLayout' e.default_wrapper = :ext_bootstrap e.default_layout = { layout: '1:1', spacing: '1', label_width: '2', max_width: '12' } end end let(:order_header) { FactoryGirl.create(:order_header) } context 'no options' do subject { helper.ext_form_for(order_header) do |f| f.input :order_number end } it 'ext_form_for should render all-inputs' do expect(subject).to match /