Sha256: 08dcc13d45b42595171f65f2354e40142a9df391789be4b8336e27c7a8ff805c
Contents?: true
Size: 690 Bytes
Versions: 2
Compression:
Stored size: 690 Bytes
Contents
require 'spec_helper' describe BootstrapIt::ViewHelpers::Input do it { expect(helper).to render_with 'input.form-control[@type="text"]' } it 'accepts valid input types' do expect(helper type: 'password').to render_with( 'input.form-control[@type="password"]' ) end it 'accepts string arguments as values' do expect(helper {'10'}).to render_with 'input.form-control[@value="10"]' end end describe BootstrapIt::ViewHelpers::Form do it { expect(helper).to render_with 'form[@role="form"]' } # kind it 'has `kind` enum' do expect(helper).to have_enum(:kind).with( html_class_prefix: 'form-', values: [:inline, :horizontal] ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bootstrap_it-0.1.1 | spec/view_helpers/form_spec.rb |
bootstrap_it-0.1.0 | spec/view_helpers/form_spec.rb |