padrino_bootstrap_forms 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +6 -1
- data/Changes +8 -0
- data/README.markdown +6 -0
- data/lib/bootstrap_forms/form_builder.rb +60 -68
- data/lib/bootstrap_forms/helpers/form_helper.rb +2 -2
- data/lib/bootstrap_forms/helpers/form_tag_helper.rb +22 -16
- data/lib/bootstrap_forms/helpers/wrappers.rb +30 -23
- data/padrino_bootstrap_forms.gemspec +7 -5
- data/spec/app/app.rb +59 -0
- data/spec/app/views/erb/bootstrap_actions.erb +1 -0
- data/spec/app/views/erb/bootstrap_actions_with_block.erb +3 -0
- data/spec/app/views/erb/check_box.erb +1 -0
- data/spec/app/views/erb/check_box_tag.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_append.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_error.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_info.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_success.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/check_box_with_append.erb +1 -0
- data/spec/app/views/erb/check_box_with_error.erb +1 -0
- data/spec/app/views/erb/check_box_with_help_block.erb +1 -0
- data/spec/app/views/erb/check_box_with_help_inline.erb +1 -0
- data/spec/app/views/erb/check_box_with_info.erb +1 -0
- data/spec/app/views/erb/check_box_with_success.erb +1 -0
- data/spec/app/views/erb/check_box_with_warning.erb +1 -0
- data/spec/app/views/erb/collection_check_boxes.erb +1 -0
- data/spec/app/views/erb/collection_check_boxes_with_checked.erb +2 -0
- data/spec/app/views/erb/collection_check_boxes_with_help_block.erb +1 -0
- data/spec/app/views/erb/collection_radio_buttons.erb +1 -0
- data/spec/app/views/erb/collection_radio_buttons_with_checked.erb +2 -0
- data/spec/app/views/erb/email_field.erb +1 -0
- data/spec/app/views/erb/email_field_tag.erb +1 -0
- data/spec/app/views/erb/email_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/email_field_with_append.erb +1 -0
- data/spec/app/views/erb/email_field_with_error.erb +1 -0
- data/spec/app/views/erb/email_field_with_help_block.erb +1 -0
- data/spec/app/views/erb/email_field_with_help_inline.erb +1 -0
- data/spec/app/views/erb/email_field_with_info.erb +1 -0
- data/spec/app/views/erb/email_field_with_prepend.erb +1 -0
- data/spec/app/views/erb/email_field_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/email_field_with_success.erb +1 -0
- data/spec/app/views/erb/email_field_with_warning.erb +1 -0
- data/spec/app/views/erb/file_field.erb +1 -0
- data/spec/app/views/erb/file_field_tag.erb +1 -0
- data/spec/app/views/erb/file_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/file_field_with_append.erb +1 -0
- data/spec/app/views/erb/file_field_with_error.erb +1 -0
- data/spec/app/views/erb/file_field_with_help_block.erb +1 -0
- data/spec/app/views/erb/file_field_with_help_inline.erb +1 -0
- data/spec/app/views/erb/file_field_with_info.erb +1 -0
- data/spec/app/views/erb/file_field_with_prepend.erb +1 -0
- data/spec/app/views/erb/file_field_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/file_field_with_success.erb +1 -0
- data/spec/app/views/erb/file_field_with_warning.erb +1 -0
- data/spec/app/views/erb/label_field.erb +1 -0
- data/spec/app/views/erb/number_field.erb +1 -0
- data/spec/app/views/erb/number_field_tag.erb +1 -0
- data/spec/app/views/erb/number_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/number_field_with_append.erb +1 -0
- data/spec/app/views/erb/number_field_with_error.erb +1 -0
- data/spec/app/views/erb/number_field_with_help_block.erb +1 -0
- data/spec/app/views/erb/number_field_with_help_inline.erb +1 -0
- data/spec/app/views/erb/number_field_with_info.erb +1 -0
- data/spec/app/views/erb/number_field_with_prepend.erb +1 -0
- data/spec/app/views/erb/number_field_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/number_field_with_success.erb +1 -0
- data/spec/app/views/erb/number_field_with_warning.erb +1 -0
- data/spec/app/views/erb/password_field.erb +1 -0
- data/spec/app/views/erb/password_field_tag.erb +1 -0
- data/spec/app/views/erb/password_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/password_field_with_append.erb +1 -0
- data/spec/app/views/erb/password_field_with_error.erb +1 -0
- data/spec/app/views/erb/password_field_with_help_block.erb +1 -0
- data/spec/app/views/erb/password_field_with_help_inline.erb +1 -0
- data/spec/app/views/erb/password_field_with_info.erb +1 -0
- data/spec/app/views/erb/password_field_with_prepend.erb +1 -0
- data/spec/app/views/erb/password_field_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/password_field_with_success.erb +1 -0
- data/spec/app/views/erb/password_field_with_warning.erb +1 -0
- data/spec/app/views/erb/phone_field.erb +1 -0
- data/spec/app/views/erb/phone_field_tag.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/phone_field_with_append.erb +1 -0
- data/spec/app/views/erb/phone_field_with_error.erb +1 -0
- data/spec/app/views/erb/phone_field_with_help_block.erb +1 -0
- data/spec/app/views/erb/phone_field_with_help_inline.erb +1 -0
- data/spec/app/views/erb/phone_field_with_info.erb +1 -0
- data/spec/app/views/erb/phone_field_with_prepend.erb +1 -0
- data/spec/app/views/erb/phone_field_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/phone_field_with_success.erb +1 -0
- data/spec/app/views/erb/phone_field_with_warning.erb +1 -0
- data/spec/app/views/erb/radio_buttons.erb +1 -0
- data/spec/app/views/erb/radio_buttons_with_error.erb +1 -0
- data/spec/app/views/erb/search_field.erb +1 -0
- data/spec/app/views/erb/search_field_tag.erb +1 -0
- data/spec/app/views/erb/search_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/search_field_with_append.erb +1 -0
- data/spec/app/views/erb/search_field_with_error.erb +1 -0
- data/spec/app/views/erb/search_field_with_help_block.erb +1 -0
- data/spec/app/views/erb/search_field_with_help_inline.erb +1 -0
- data/spec/app/views/erb/search_field_with_info.erb +1 -0
- data/spec/app/views/erb/search_field_with_prepend.erb +1 -0
- data/spec/app/views/erb/search_field_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/search_field_with_success.erb +1 -0
- data/spec/app/views/erb/search_field_with_warning.erb +1 -0
- data/spec/app/views/erb/select.erb +1 -0
- data/spec/app/views/erb/select_tag.erb +1 -0
- data/spec/app/views/erb/select_tag_tag.erb +1 -0
- data/spec/app/views/erb/select_tag_with_append.erb +1 -0
- data/spec/app/views/erb/select_tag_with_error.erb +1 -0
- data/spec/app/views/erb/select_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/select_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/select_tag_with_info.erb +1 -0
- data/spec/app/views/erb/select_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/select_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/select_tag_with_success.erb +1 -0
- data/spec/app/views/erb/select_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/select_with_append.erb +1 -0
- data/spec/app/views/erb/select_with_error.erb +1 -0
- data/spec/app/views/erb/select_with_help_block.erb +1 -0
- data/spec/app/views/erb/select_with_help_inline.erb +1 -0
- data/spec/app/views/erb/select_with_info.erb +1 -0
- data/spec/app/views/erb/select_with_prepend.erb +1 -0
- data/spec/app/views/erb/select_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/select_with_success.erb +1 -0
- data/spec/app/views/erb/select_with_warning.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/text_area.erb +1 -0
- data/spec/app/views/erb/text_area_tag.erb +1 -0
- data/spec/app/views/erb/text_area_tag_tag.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_append.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_error.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_info.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_success.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/text_area_with_append.erb +1 -0
- data/spec/app/views/erb/text_area_with_error.erb +1 -0
- data/spec/app/views/erb/text_area_with_help_block.erb +1 -0
- data/spec/app/views/erb/text_area_with_help_inline.erb +1 -0
- data/spec/app/views/erb/text_area_with_info.erb +1 -0
- data/spec/app/views/erb/text_area_with_prepend.erb +1 -0
- data/spec/app/views/erb/text_area_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/text_area_with_success.erb +1 -0
- data/spec/app/views/erb/text_area_with_warning.erb +1 -0
- data/spec/app/views/erb/text_field.erb +1 -0
- data/spec/app/views/erb/text_field_tag.erb +1 -0
- data/spec/app/views/erb/text_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/text_field_with_append.erb +1 -0
- data/spec/app/views/erb/text_field_with_error.erb +1 -0
- data/spec/app/views/erb/text_field_with_help_block.erb +1 -0
- data/spec/app/views/erb/text_field_with_help_inline.erb +1 -0
- data/spec/app/views/erb/text_field_with_info.erb +1 -0
- data/spec/app/views/erb/text_field_with_prepend.erb +1 -0
- data/spec/app/views/erb/text_field_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/text_field_with_success.erb +1 -0
- data/spec/app/views/erb/text_field_with_warning.erb +1 -0
- data/spec/app/views/erb/uneditable_input.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_append.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_error.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_info.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_success.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_append.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_error.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_help_block.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_help_inline.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_info.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_prepend.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_success.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_warning.erb +1 -0
- data/spec/app/views/erb/url_field.erb +1 -0
- data/spec/app/views/erb/url_field_tag.erb +1 -0
- data/spec/app/views/erb/url_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/url_field_with_append.erb +1 -0
- data/spec/app/views/erb/url_field_with_error.erb +1 -0
- data/spec/app/views/erb/url_field_with_help_block.erb +1 -0
- data/spec/app/views/erb/url_field_with_help_inline.erb +1 -0
- data/spec/app/views/erb/url_field_with_info.erb +1 -0
- data/spec/app/views/erb/url_field_with_prepend.erb +1 -0
- data/spec/app/views/erb/url_field_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/url_field_with_success.erb +1 -0
- data/spec/app/views/erb/url_field_with_warning.erb +1 -0
- data/spec/app/views/haml/bootstrap_actions.haml +1 -0
- data/spec/app/views/haml/bootstrap_actions_with_block.haml +2 -0
- data/spec/app/views/haml/check_box.haml +1 -0
- data/spec/app/views/haml/check_box_tag.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_append.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_error.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_info.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_success.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/check_box_with_append.haml +1 -0
- data/spec/app/views/haml/check_box_with_error.haml +1 -0
- data/spec/app/views/haml/check_box_with_help_block.haml +1 -0
- data/spec/app/views/haml/check_box_with_help_inline.haml +1 -0
- data/spec/app/views/haml/check_box_with_info.haml +1 -0
- data/spec/app/views/haml/check_box_with_success.haml +1 -0
- data/spec/app/views/haml/check_box_with_warning.haml +1 -0
- data/spec/app/views/haml/collection_check_boxes.haml +1 -0
- data/spec/app/views/haml/collection_check_boxes_with_checked.haml +2 -0
- data/spec/app/views/haml/collection_check_boxes_with_help_block.haml +1 -0
- data/spec/app/views/haml/collection_radio_buttons.haml +1 -0
- data/spec/app/views/haml/collection_radio_buttons_with_checked.haml +2 -0
- data/spec/app/views/haml/email_field.haml +1 -0
- data/spec/app/views/haml/email_field_tag.haml +1 -0
- data/spec/app/views/haml/email_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/email_field_with_append.haml +1 -0
- data/spec/app/views/haml/email_field_with_error.haml +1 -0
- data/spec/app/views/haml/email_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/email_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/email_field_with_info.haml +1 -0
- data/spec/app/views/haml/email_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/email_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/email_field_with_success.haml +1 -0
- data/spec/app/views/haml/email_field_with_warning.haml +1 -0
- data/spec/app/views/haml/file_field.haml +1 -0
- data/spec/app/views/haml/file_field_tag.haml +1 -0
- data/spec/app/views/haml/file_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/file_field_with_append.haml +1 -0
- data/spec/app/views/haml/file_field_with_error.haml +1 -0
- data/spec/app/views/haml/file_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/file_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/file_field_with_info.haml +1 -0
- data/spec/app/views/haml/file_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/file_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/file_field_with_success.haml +1 -0
- data/spec/app/views/haml/file_field_with_warning.haml +1 -0
- data/spec/app/views/haml/number_field.haml +1 -0
- data/spec/app/views/haml/number_field_tag.haml +1 -0
- data/spec/app/views/haml/number_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/number_field_with_append.haml +1 -0
- data/spec/app/views/haml/number_field_with_error.haml +1 -0
- data/spec/app/views/haml/number_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/number_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/number_field_with_info.haml +1 -0
- data/spec/app/views/haml/number_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/number_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/number_field_with_success.haml +1 -0
- data/spec/app/views/haml/number_field_with_warning.haml +1 -0
- data/spec/app/views/haml/password_field.haml +1 -0
- data/spec/app/views/haml/password_field_tag.haml +1 -0
- data/spec/app/views/haml/password_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/password_field_with_append.haml +1 -0
- data/spec/app/views/haml/password_field_with_error.haml +1 -0
- data/spec/app/views/haml/password_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/password_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/password_field_with_info.haml +1 -0
- data/spec/app/views/haml/password_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/password_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/password_field_with_success.haml +1 -0
- data/spec/app/views/haml/password_field_with_warning.haml +1 -0
- data/spec/app/views/haml/phone_field.haml +1 -0
- data/spec/app/views/haml/phone_field_tag.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/phone_field_with_append.haml +1 -0
- data/spec/app/views/haml/phone_field_with_error.haml +1 -0
- data/spec/app/views/haml/phone_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/phone_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/phone_field_with_info.haml +1 -0
- data/spec/app/views/haml/phone_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/phone_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/phone_field_with_success.haml +1 -0
- data/spec/app/views/haml/phone_field_with_warning.haml +1 -0
- data/spec/app/views/haml/radio_buttons.haml +1 -0
- data/spec/app/views/haml/radio_buttons_with_error.haml +1 -0
- data/spec/app/views/haml/search_field.haml +1 -0
- data/spec/app/views/haml/search_field_tag.haml +1 -0
- data/spec/app/views/haml/search_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/search_field_with_append.haml +1 -0
- data/spec/app/views/haml/search_field_with_error.haml +1 -0
- data/spec/app/views/haml/search_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/search_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/search_field_with_info.haml +1 -0
- data/spec/app/views/haml/search_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/search_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/search_field_with_success.haml +1 -0
- data/spec/app/views/haml/search_field_with_warning.haml +1 -0
- data/spec/app/views/haml/select.haml +1 -0
- data/spec/app/views/haml/select_tag.haml +1 -0
- data/spec/app/views/haml/select_tag_with_append.haml +1 -0
- data/spec/app/views/haml/select_tag_with_error.haml +1 -0
- data/spec/app/views/haml/select_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/select_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/select_tag_with_info.haml +1 -0
- data/spec/app/views/haml/select_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/select_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/select_tag_with_success.haml +1 -0
- data/spec/app/views/haml/select_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/select_with_append.haml +1 -0
- data/spec/app/views/haml/select_with_error.haml +1 -0
- data/spec/app/views/haml/select_with_help_block.haml +1 -0
- data/spec/app/views/haml/select_with_help_inline.haml +1 -0
- data/spec/app/views/haml/select_with_info.haml +1 -0
- data/spec/app/views/haml/select_with_prepend.haml +1 -0
- data/spec/app/views/haml/select_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/select_with_success.haml +1 -0
- data/spec/app/views/haml/select_with_warning.haml +1 -0
- data/spec/app/views/haml/telephone_field.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_append.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_error.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_info.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_success.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_warning.haml +1 -0
- data/spec/app/views/haml/text_area.haml +1 -0
- data/spec/app/views/haml/text_area_field.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_append.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_error.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_info.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_success.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_warning.haml +1 -0
- data/spec/app/views/haml/text_area_tag.haml +1 -0
- data/spec/app/views/haml/text_area_tag_tag.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_append.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_error.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_info.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_success.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/text_area_with_append.haml +1 -0
- data/spec/app/views/haml/text_area_with_error.haml +1 -0
- data/spec/app/views/haml/text_area_with_help_block.haml +1 -0
- data/spec/app/views/haml/text_area_with_help_inline.haml +1 -0
- data/spec/app/views/haml/text_area_with_info.haml +1 -0
- data/spec/app/views/haml/text_area_with_prepend.haml +1 -0
- data/spec/app/views/haml/text_area_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/text_area_with_success.haml +1 -0
- data/spec/app/views/haml/text_area_with_warning.haml +1 -0
- data/spec/app/views/haml/text_field.haml +1 -0
- data/spec/app/views/haml/text_field_tag.haml +1 -0
- data/spec/app/views/haml/text_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/text_field_with_append.haml +1 -0
- data/spec/app/views/haml/text_field_with_error.haml +1 -0
- data/spec/app/views/haml/text_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/text_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/text_field_with_info.haml +1 -0
- data/spec/app/views/haml/text_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/text_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/text_field_with_success.haml +1 -0
- data/spec/app/views/haml/text_field_with_warning.haml +1 -0
- data/spec/app/views/haml/uneditable_input.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_append.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_error.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_info.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_success.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_append.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_error.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_help_block.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_help_inline.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_info.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_prepend.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_success.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_warning.haml +1 -0
- data/spec/app/views/haml/url_field.haml +1 -0
- data/spec/app/views/haml/url_field_tag.haml +1 -0
- data/spec/app/views/haml/url_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/url_field_with_append.haml +1 -0
- data/spec/app/views/haml/url_field_with_error.haml +1 -0
- data/spec/app/views/haml/url_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/url_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/url_field_with_info.haml +1 -0
- data/spec/app/views/haml/url_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/url_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/url_field_with_success.haml +1 -0
- data/spec/app/views/haml/url_field_with_warning.haml +1 -0
- data/spec/app/views/slim/bootstrap_actions.slim +1 -0
- data/spec/app/views/slim/bootstrap_actions_with_block.slim +2 -0
- data/spec/app/views/slim/check_box.slim +1 -0
- data/spec/app/views/slim/check_box_tag.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_append.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_error.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_info.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_success.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/check_box_with_append.slim +1 -0
- data/spec/app/views/slim/check_box_with_error.slim +1 -0
- data/spec/app/views/slim/check_box_with_help_block.slim +1 -0
- data/spec/app/views/slim/check_box_with_help_inline.slim +1 -0
- data/spec/app/views/slim/check_box_with_info.slim +1 -0
- data/spec/app/views/slim/check_box_with_success.slim +1 -0
- data/spec/app/views/slim/check_box_with_warning.slim +1 -0
- data/spec/app/views/slim/collection_check_boxes.slim +1 -0
- data/spec/app/views/slim/collection_check_boxes_with_checked.slim +2 -0
- data/spec/app/views/slim/collection_check_boxes_with_help_block.slim +1 -0
- data/spec/app/views/slim/collection_radio_buttons.slim +1 -0
- data/spec/app/views/slim/collection_radio_buttons_with_checked.slim +2 -0
- data/spec/app/views/slim/email_field.slim +1 -0
- data/spec/app/views/slim/email_field_tag.slim +1 -0
- data/spec/app/views/slim/email_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/email_field_with_append.slim +1 -0
- data/spec/app/views/slim/email_field_with_error.slim +1 -0
- data/spec/app/views/slim/email_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/email_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/email_field_with_info.slim +1 -0
- data/spec/app/views/slim/email_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/email_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/email_field_with_success.slim +1 -0
- data/spec/app/views/slim/email_field_with_warning.slim +1 -0
- data/spec/app/views/slim/file_field.slim +1 -0
- data/spec/app/views/slim/file_field_tag.slim +1 -0
- data/spec/app/views/slim/file_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/file_field_with_append.slim +1 -0
- data/spec/app/views/slim/file_field_with_error.slim +1 -0
- data/spec/app/views/slim/file_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/file_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/file_field_with_info.slim +1 -0
- data/spec/app/views/slim/file_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/file_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/file_field_with_success.slim +1 -0
- data/spec/app/views/slim/file_field_with_warning.slim +1 -0
- data/spec/app/views/slim/label_tag.slim +2 -0
- data/spec/app/views/slim/number_field.slim +1 -0
- data/spec/app/views/slim/number_field_tag.slim +1 -0
- data/spec/app/views/slim/number_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/number_field_with_append.slim +1 -0
- data/spec/app/views/slim/number_field_with_error.slim +1 -0
- data/spec/app/views/slim/number_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/number_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/number_field_with_info.slim +1 -0
- data/spec/app/views/slim/number_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/number_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/number_field_with_success.slim +1 -0
- data/spec/app/views/slim/number_field_with_warning.slim +1 -0
- data/spec/app/views/slim/password_field.slim +1 -0
- data/spec/app/views/slim/password_field_tag.slim +1 -0
- data/spec/app/views/slim/password_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/password_field_with_append.slim +1 -0
- data/spec/app/views/slim/password_field_with_error.slim +1 -0
- data/spec/app/views/slim/password_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/password_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/password_field_with_info.slim +1 -0
- data/spec/app/views/slim/password_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/password_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/password_field_with_success.slim +1 -0
- data/spec/app/views/slim/password_field_with_warning.slim +1 -0
- data/spec/app/views/slim/phone_field.slim +1 -0
- data/spec/app/views/slim/phone_field_tag.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/phone_field_with_append.slim +1 -0
- data/spec/app/views/slim/phone_field_with_error.slim +1 -0
- data/spec/app/views/slim/phone_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/phone_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/phone_field_with_info.slim +1 -0
- data/spec/app/views/slim/phone_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/phone_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/phone_field_with_success.slim +1 -0
- data/spec/app/views/slim/phone_field_with_warning.slim +1 -0
- data/spec/app/views/slim/radio_buttons.slim +1 -0
- data/spec/app/views/slim/radio_buttons_with_error.slim +1 -0
- data/spec/app/views/slim/search_field.slim +1 -0
- data/spec/app/views/slim/search_field_tag.slim +1 -0
- data/spec/app/views/slim/search_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/search_field_with_append.slim +1 -0
- data/spec/app/views/slim/search_field_with_error.slim +1 -0
- data/spec/app/views/slim/search_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/search_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/search_field_with_info.slim +1 -0
- data/spec/app/views/slim/search_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/search_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/search_field_with_success.slim +1 -0
- data/spec/app/views/slim/search_field_with_warning.slim +1 -0
- data/spec/app/views/slim/select.slim +1 -0
- data/spec/app/views/slim/select_tag.slim +1 -0
- data/spec/app/views/slim/select_tag_with_append.slim +1 -0
- data/spec/app/views/slim/select_tag_with_error.slim +1 -0
- data/spec/app/views/slim/select_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/select_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/select_tag_with_info.slim +1 -0
- data/spec/app/views/slim/select_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/select_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/select_tag_with_success.slim +1 -0
- data/spec/app/views/slim/select_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/select_with_append.slim +1 -0
- data/spec/app/views/slim/select_with_error.slim +1 -0
- data/spec/app/views/slim/select_with_help_block.slim +1 -0
- data/spec/app/views/slim/select_with_help_inline.slim +1 -0
- data/spec/app/views/slim/select_with_info.slim +1 -0
- data/spec/app/views/slim/select_with_prepend.slim +1 -0
- data/spec/app/views/slim/select_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/select_with_success.slim +1 -0
- data/spec/app/views/slim/select_with_warning.slim +1 -0
- data/spec/app/views/slim/telephone_field.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_append.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_error.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_info.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_success.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_warning.slim +1 -0
- data/spec/app/views/slim/text_area.slim +1 -0
- data/spec/app/views/slim/text_area_field.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_append.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_error.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_info.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_success.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_warning.slim +1 -0
- data/spec/app/views/slim/text_area_tag.slim +1 -0
- data/spec/app/views/slim/text_area_tag_tag.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_append.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_error.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_info.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_success.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/text_area_with_append.slim +1 -0
- data/spec/app/views/slim/text_area_with_error.slim +1 -0
- data/spec/app/views/slim/text_area_with_help_block.slim +1 -0
- data/spec/app/views/slim/text_area_with_help_inline.slim +1 -0
- data/spec/app/views/slim/text_area_with_info.slim +1 -0
- data/spec/app/views/slim/text_area_with_prepend.slim +1 -0
- data/spec/app/views/slim/text_area_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/text_area_with_success.slim +1 -0
- data/spec/app/views/slim/text_area_with_warning.slim +1 -0
- data/spec/app/views/slim/text_field.slim +1 -0
- data/spec/app/views/slim/text_field_tag.slim +1 -0
- data/spec/app/views/slim/text_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/text_field_with_append.slim +1 -0
- data/spec/app/views/slim/text_field_with_error.slim +1 -0
- data/spec/app/views/slim/text_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/text_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/text_field_with_info.slim +1 -0
- data/spec/app/views/slim/text_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/text_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/text_field_with_success.slim +1 -0
- data/spec/app/views/slim/text_field_with_warning.slim +1 -0
- data/spec/app/views/slim/uneditable_input.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_append.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_error.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_info.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_success.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_append.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_error.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_help_block.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_help_inline.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_info.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_prepend.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_success.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_warning.slim +1 -0
- data/spec/app/views/slim/url_field.slim +1 -0
- data/spec/app/views/slim/url_field_tag.slim +1 -0
- data/spec/app/views/slim/url_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/url_field_with_append.slim +1 -0
- data/spec/app/views/slim/url_field_with_error.slim +1 -0
- data/spec/app/views/slim/url_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/url_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/url_field_with_info.slim +1 -0
- data/spec/app/views/slim/url_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/url_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/url_field_with_success.slim +1 -0
- data/spec/app/views/slim/url_field_with_warning.slim +1 -0
- data/spec/bootstrap_forms_spec.rb +25 -0
- data/spec/spec_helper.rb +95 -22
- data/spec/support/a_form_field.rb +15 -0
- data/spec/support/form_builder.rb +166 -0
- data/spec/support/form_tag_helpers.rb +87 -0
- metadata +1768 -32
- data/spec/lib/bootstrap_forms/form_builder_spec.rb +0 -218
- data/spec/lib/bootstrap_forms/form_tag_helper_spec.rb +0 -20
@@ -1,218 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe "BootstrapForms::FormBuilder" do
|
4
|
-
# Note that Padrino label() and label_tag() gen labels differently, the former always appending a ":"
|
5
|
-
context "given a setup builder" do
|
6
|
-
before(:each) do
|
7
|
-
@project = Item.new
|
8
|
-
@builder = BootstrapForms::FormBuilder.new(self, @project)
|
9
|
-
end
|
10
|
-
|
11
|
-
describe "with no options" do
|
12
|
-
describe "text_area" do
|
13
|
-
before(:each) do
|
14
|
-
@result = @builder.text_area "name"
|
15
|
-
end
|
16
|
-
|
17
|
-
it "has textarea input" do
|
18
|
-
@result.should match /textarea/
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
describe "uneditable_input" do
|
23
|
-
it "generates wrapped input" do
|
24
|
-
@builder.uneditable_input("name").should == %|<div class="control-group"><label class="control-label" for="item_name">Name: </label><div class="controls"><span class="uneditable-input"></span></div></div>|
|
25
|
-
end
|
26
|
-
|
27
|
-
it "allows for an id" do
|
28
|
-
@builder.uneditable_input("name", :id => "myid").should match /<span.*id="myid"/
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
describe "check_box" do
|
33
|
-
it "generates wrapped input" do
|
34
|
-
@builder.check_box("name").should == %|<div class="control-group"><div class="controls"><label class="checkbox" for="item_name"><input value="0" name="item[name]" type="hidden" /><input id="item_name" value="1" name="item[name]" type="checkbox" />Name</label></div></div>|
|
35
|
-
end
|
36
|
-
|
37
|
-
it "allows custom label" do
|
38
|
-
@builder.check_box("name", :label => "custom label").should match /custom label<\/label>/
|
39
|
-
end
|
40
|
-
|
41
|
-
it "allows no label with :label => false " do
|
42
|
-
@builder.check_box("name", :label => false).should_not match /<\/label>/
|
43
|
-
end
|
44
|
-
it "allows no label with :label => '' " do
|
45
|
-
@builder.check_box("name", :label => '').should_not match /<\/label>/
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
describe "radio_buttons" do
|
50
|
-
before do
|
51
|
-
if RUBY_VERSION < '1.9'
|
52
|
-
@options = ActiveSupport::OrderedHash.new
|
53
|
-
@options['One'] = '1'
|
54
|
-
@options['Two'] = '2'
|
55
|
-
else
|
56
|
-
@options = {'One' => '1', 'Two' => '2'}
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
it "doesn't use field_options from previously generated field" do
|
61
|
-
@builder.text_field :name, :label => 'Heading', :help_inline => 'Inline help', :help_block => 'Block help'
|
62
|
-
@builder.radio_buttons(:name, @options).should == %|<div class="control-group"><label class="control-label" for="item_name">Name: </label><div class="controls"><label class="radio" for="item_name_1"><input value="1" id="item_name_1" name="item[name]" type="radio" />One</label><label class="radio" for="item_name_2"><input value="2" id="item_name_2" name="item[name]" type="radio" />Two</label></div></div>|
|
63
|
-
end
|
64
|
-
|
65
|
-
it "sets field_options" do
|
66
|
-
@builder.radio_buttons(:name, {"One" => "1", "Two" => "2"})
|
67
|
-
@builder.instance_variable_get("@field_options").should == {:error => nil}
|
68
|
-
end
|
69
|
-
|
70
|
-
it "generates wrapped input" do
|
71
|
-
@builder.radio_buttons(:name, @options).should == %|<div class="control-group"><label class="control-label" for="item_name">Name: </label><div class="controls"><label class="radio" for="item_name_1"><input value="1" id="item_name_1" name="item[name]" type="radio" />One</label><label class="radio" for="item_name_2"><input value="2" id="item_name_2" name="item[name]" type="radio" />Two</label></div></div>|
|
72
|
-
end
|
73
|
-
|
74
|
-
it "allows custom label" do
|
75
|
-
@builder.radio_buttons(:name, @options, {:label => "custom label"}).should match /custom label<\/label>/
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
# less range
|
80
|
-
(%w{email file number password search text url}.map{|field| ["#{field}_field",field]} + [["telephone_field", "tel"], ["phone_field", "tel"]]).each do |field, type|
|
81
|
-
describe "#{field}" do
|
82
|
-
context "result" do
|
83
|
-
before(:each) do
|
84
|
-
@result = @builder.send(field, "name")
|
85
|
-
end
|
86
|
-
|
87
|
-
it "is wrapped" do
|
88
|
-
@result.should match /^<div class=\"control-group\"><label class=\"control-label\" for=\"item_name\">Name: <\/label><div class=\"controls\">.*<\/div><\/div>$/
|
89
|
-
end
|
90
|
-
|
91
|
-
it "has an input of type: #{type}" do
|
92
|
-
@result.should match /<input.*type=["#{type}"]/
|
93
|
-
end
|
94
|
-
end # result
|
95
|
-
|
96
|
-
context "call expectations" do
|
97
|
-
%w(control_group_div label_field input_div extras).map(&:to_sym).each do |method|
|
98
|
-
it "calls #{method}" do
|
99
|
-
@builder.should_receive(method).and_return("")
|
100
|
-
end
|
101
|
-
end
|
102
|
-
|
103
|
-
after(:each) do
|
104
|
-
@builder.send(field, "name")
|
105
|
-
end
|
106
|
-
end # call expectations
|
107
|
-
|
108
|
-
end # field
|
109
|
-
end # fields
|
110
|
-
end # no options
|
111
|
-
|
112
|
-
describe "extras" do
|
113
|
-
context "text_field" do
|
114
|
-
it "adds span for inline help" do
|
115
|
-
@builder.text_field(:name, :help_inline => 'help me!').should == %|<div class="control-group"><label class="control-label" for="item_name">Name: </label><div class="controls"><input id="item_name" name="item[name]" type="text" /><span class="help-inline">help me!</span></div></div>|
|
116
|
-
end
|
117
|
-
|
118
|
-
it "adds help block" do
|
119
|
-
@builder.text_field(:name, :help_block => 'help me!').should == %|<div class="control-group"><label class="control-label" for="item_name">Name: </label><div class="controls"><input id="item_name" name="item[name]" type="text" /><p class="help-block">help me!</p></div></div>|
|
120
|
-
end
|
121
|
-
|
122
|
-
it "adds error message and class" do
|
123
|
-
@builder.text_field(:name, :error => 'This is an error!').should == %|<div class="control-group error"><label class="control-label" for="item_name">Name: </label><div class="controls"><input id="item_name" name="item[name]" type="text" /><span class="help-inline">This is an error!</span></div></div>|
|
124
|
-
end
|
125
|
-
|
126
|
-
it "adds success message and class" do
|
127
|
-
@builder.text_field(:name, :success => 'This checked out OK').should == %|<div class="control-group success"><label class="control-label" for="item_name">Name: </label><div class="controls"><input id="item_name" name="item[name]" type="text" /><span class="help-inline">This checked out OK</span></div></div>|
|
128
|
-
end
|
129
|
-
|
130
|
-
it "adds warning message and class" do
|
131
|
-
@builder.text_field(:name, :warning => 'Take a look at this...').should == %|<div class="control-group warning"><label class="control-label" for="item_name">Name: </label><div class="controls"><input id="item_name" name="item[name]" type="text" /><span class="help-inline">Take a look at this...</span></div></div>|
|
132
|
-
end
|
133
|
-
|
134
|
-
it "prepends passed text" do
|
135
|
-
@builder.text_field(:name, :prepend => '@').should == %|<div class="control-group"><label class="control-label" for="item_name">Name: </label><div class="controls"><div class="input-prepend"><span class="add-on">@</span><input id="item_name" name="item[name]" type="text" /></div></div></div>|
|
136
|
-
end
|
137
|
-
|
138
|
-
it "appends passed text" do
|
139
|
-
@builder.text_field(:name, :append => '@').should == %|<div class="control-group"><label class="control-label" for="item_name">Name: </label><div class="controls"><div class="input-append"><input id="item_name" name="item[name]" type="text" /><span class="add-on">@</span></div></div></div>|
|
140
|
-
end
|
141
|
-
|
142
|
-
it "prepends and appends passed text" do
|
143
|
-
@builder.text_field(:name, :append => '@', :prepend => '#').should == %|<div class="control-group"><label class="control-label" for="item_name">Name: </label><div class="controls"><div class="input-prepend input-append"><span class="add-on">\#</span><input id="item_name" name="item[name]" type="text" /><span class="add-on">@</span></div></div></div>|
|
144
|
-
end
|
145
|
-
end
|
146
|
-
|
147
|
-
context "label option" do
|
148
|
-
%w(select email_field file_field number_field password_field search_field text_area text_field url_field).each do |method_name|
|
149
|
-
|
150
|
-
it "should not add a label when ''" do
|
151
|
-
@builder.send(method_name.to_sym, 'name', :label => '').should_not match /<\/label>/
|
152
|
-
end
|
153
|
-
|
154
|
-
it "should not add a label when false" do
|
155
|
-
@builder.send(method_name.to_sym, 'name', :label => false).should_not match /<\/label>/
|
156
|
-
end
|
157
|
-
end
|
158
|
-
end
|
159
|
-
end # extras
|
160
|
-
|
161
|
-
describe "form actions" do
|
162
|
-
context "actions" do
|
163
|
-
it "adds additional block content" do
|
164
|
-
@builder.actions do
|
165
|
-
@builder.submit
|
166
|
-
end.should == %|<div class="form-actions"><input class="btn btn-primary" value="Submit" type="submit" /></div>|
|
167
|
-
end
|
168
|
-
end
|
169
|
-
|
170
|
-
context "submit" do
|
171
|
-
it "adds btn primary class" do
|
172
|
-
@builder.submit.should == %|<input class="btn btn-primary" value="Submit" type="submit" />|
|
173
|
-
end
|
174
|
-
|
175
|
-
it "allows for custom classes" do
|
176
|
-
@builder.submit(:class => 'btn btn-large btn-success').should match /class="btn btn-large btn-success"/
|
177
|
-
end
|
178
|
-
end
|
179
|
-
|
180
|
-
context "button" do
|
181
|
-
it "adds btn primary class" do
|
182
|
-
@builder.submit.should == %|<input class="btn btn-primary" value="Submit" type="submit" />|
|
183
|
-
end
|
184
|
-
|
185
|
-
it "allows for custom classes" do
|
186
|
-
@builder.submit(:class => 'btn btn-large btn-success').should match /class="btn btn-large btn-success"/
|
187
|
-
end
|
188
|
-
end
|
189
|
-
|
190
|
-
context "cancel" do
|
191
|
-
it "creates a link with the default link" do
|
192
|
-
@builder.template.should_receive(:link_to).with('Cancel', 'javascript:history.go(-1)', instance_of(Hash))
|
193
|
-
@builder.cancel
|
194
|
-
end
|
195
|
-
|
196
|
-
it "creates a link with a custom back link" do
|
197
|
-
@builder.template.should_receive(:link_to).with('Cancel', '/x', instance_of(Hash))
|
198
|
-
@builder.cancel(:back => '/x')
|
199
|
-
end
|
200
|
-
|
201
|
-
it "creates a link with a custom name" do
|
202
|
-
@builder.template.should_receive(:link_to).with('Back', instance_of(String), instance_of(Hash))
|
203
|
-
@builder.cancel('Back')
|
204
|
-
end
|
205
|
-
|
206
|
-
it "creates link with the default class" do
|
207
|
-
@builder.template.should_receive(:link_to).with('Cancel', instance_of(String), :class => 'btn cancel')
|
208
|
-
@builder.cancel
|
209
|
-
end
|
210
|
-
|
211
|
-
it "creates a link with custom classes" do
|
212
|
-
@builder.template.should_receive(:link_to).with('Cancel', instance_of(String), :class => 'btn btn-large my-cancel')
|
213
|
-
@builder.cancel(:class => 'btn btn-large my-cancel')
|
214
|
-
end
|
215
|
-
end
|
216
|
-
end # actions
|
217
|
-
end # setup builder
|
218
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe "BootstrapForms::Helpers::FormTagHelper" do
|
4
|
-
%w(check_box_tag email_field_tag file_field_tag number_field_tag password_field_tag radio_button_tag search_field_tag select_tag telephone_field_tag text_area_tag text_field_tag url_field_tag).each do |method_name|
|
5
|
-
|
6
|
-
describe "#bootstrap_#{method_name}" do
|
7
|
-
%w(control_group_div label_field input_div extras).each do |method|
|
8
|
-
it "calls #{method}" do
|
9
|
-
should_receive(method).and_return("")
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
it "calls #{method_name}" do
|
14
|
-
should_receive(method_name).with(method_name, :class => "my-class")
|
15
|
-
end
|
16
|
-
|
17
|
-
after { send("bootstrap_#{method_name}", method_name, :class => "my-class") }
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|