Sha256: 6910629741f420f040143183e5ac77b870ff3f2515e4e8195cec3574323935b9
Contents?: true
Size: 725 Bytes
Versions: 2
Compression:
Stored size: 725 Bytes
Contents
shared_examples_for "a form field" do it "renders the field" do req(format, view).should equal_xml build_control_group(name, field) end [:help_inline, :help_block, :prepend, :append, :error, :success, :warning, :info].each do |option| it "renders the field using the :#{option} option" do req(format, "#{view}_with_#{option}").should equal_xml build_control_group(name, field, option => option.to_s.titleize) end end it "renders the field using the :prepend, :append, and :help_inline options" do req(format, "#{view}_with_prepend_append_and_help_inline").should equal_xml build_control_group(name, field, :prepend => "Prepend", :append => "Append", :help_inline => "Help Inline") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
padrino_bootstrap_forms-0.1.2 | spec/support/a_form_field.rb |
padrino_bootstrap_forms-0.1.1 | spec/support/a_form_field.rb |