Sha256: bb695ba217589a97a1bcfbf44492d467d1229fd338f925f52f571d3e3c6b1db1
Contents?: true
Size: 707 Bytes
Versions: 1
Compression:
Stored size: 707 Bytes
Contents
require 'spec_helper' describe BootstrapIt::ViewHelpers::Input do it { expect(helper.render).to have_tag 'input.form-control[@type="text"]' } it 'accepts valid input types' do expect(helper(type: 'password').render).to have_tag( 'input.form-control[@type="password"]' ) end it 'accepts string arguments as values' do expect(helper {'10'}.render).to have_tag 'input.form-control[@value="10"]' end end describe BootstrapIt::ViewHelpers::Form do it { expect(helper.render).to have_tag '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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bootstrap_it-0.1.2 | spec/view_helpers/form_spec.rb |