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.
Files changed (862) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +6 -1
  3. data/Changes +8 -0
  4. data/README.markdown +6 -0
  5. data/lib/bootstrap_forms/form_builder.rb +60 -68
  6. data/lib/bootstrap_forms/helpers/form_helper.rb +2 -2
  7. data/lib/bootstrap_forms/helpers/form_tag_helper.rb +22 -16
  8. data/lib/bootstrap_forms/helpers/wrappers.rb +30 -23
  9. data/padrino_bootstrap_forms.gemspec +7 -5
  10. data/spec/app/app.rb +59 -0
  11. data/spec/app/views/erb/bootstrap_actions.erb +1 -0
  12. data/spec/app/views/erb/bootstrap_actions_with_block.erb +3 -0
  13. data/spec/app/views/erb/check_box.erb +1 -0
  14. data/spec/app/views/erb/check_box_tag.erb +1 -0
  15. data/spec/app/views/erb/check_box_tag_with_append.erb +1 -0
  16. data/spec/app/views/erb/check_box_tag_with_error.erb +1 -0
  17. data/spec/app/views/erb/check_box_tag_with_help_block.erb +1 -0
  18. data/spec/app/views/erb/check_box_tag_with_help_inline.erb +1 -0
  19. data/spec/app/views/erb/check_box_tag_with_info.erb +1 -0
  20. data/spec/app/views/erb/check_box_tag_with_prepend.erb +1 -0
  21. data/spec/app/views/erb/check_box_tag_with_prepend_append_and_help_inline.erb +1 -0
  22. data/spec/app/views/erb/check_box_tag_with_success.erb +1 -0
  23. data/spec/app/views/erb/check_box_tag_with_warning.erb +1 -0
  24. data/spec/app/views/erb/check_box_with_append.erb +1 -0
  25. data/spec/app/views/erb/check_box_with_error.erb +1 -0
  26. data/spec/app/views/erb/check_box_with_help_block.erb +1 -0
  27. data/spec/app/views/erb/check_box_with_help_inline.erb +1 -0
  28. data/spec/app/views/erb/check_box_with_info.erb +1 -0
  29. data/spec/app/views/erb/check_box_with_success.erb +1 -0
  30. data/spec/app/views/erb/check_box_with_warning.erb +1 -0
  31. data/spec/app/views/erb/collection_check_boxes.erb +1 -0
  32. data/spec/app/views/erb/collection_check_boxes_with_checked.erb +2 -0
  33. data/spec/app/views/erb/collection_check_boxes_with_help_block.erb +1 -0
  34. data/spec/app/views/erb/collection_radio_buttons.erb +1 -0
  35. data/spec/app/views/erb/collection_radio_buttons_with_checked.erb +2 -0
  36. data/spec/app/views/erb/email_field.erb +1 -0
  37. data/spec/app/views/erb/email_field_tag.erb +1 -0
  38. data/spec/app/views/erb/email_field_tag_tag.erb +1 -0
  39. data/spec/app/views/erb/email_field_tag_with_append.erb +1 -0
  40. data/spec/app/views/erb/email_field_tag_with_error.erb +1 -0
  41. data/spec/app/views/erb/email_field_tag_with_help_block.erb +1 -0
  42. data/spec/app/views/erb/email_field_tag_with_help_inline.erb +1 -0
  43. data/spec/app/views/erb/email_field_tag_with_info.erb +1 -0
  44. data/spec/app/views/erb/email_field_tag_with_prepend.erb +1 -0
  45. data/spec/app/views/erb/email_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  46. data/spec/app/views/erb/email_field_tag_with_success.erb +1 -0
  47. data/spec/app/views/erb/email_field_tag_with_warning.erb +1 -0
  48. data/spec/app/views/erb/email_field_with_append.erb +1 -0
  49. data/spec/app/views/erb/email_field_with_error.erb +1 -0
  50. data/spec/app/views/erb/email_field_with_help_block.erb +1 -0
  51. data/spec/app/views/erb/email_field_with_help_inline.erb +1 -0
  52. data/spec/app/views/erb/email_field_with_info.erb +1 -0
  53. data/spec/app/views/erb/email_field_with_prepend.erb +1 -0
  54. data/spec/app/views/erb/email_field_with_prepend_append_and_help_inline.erb +1 -0
  55. data/spec/app/views/erb/email_field_with_success.erb +1 -0
  56. data/spec/app/views/erb/email_field_with_warning.erb +1 -0
  57. data/spec/app/views/erb/file_field.erb +1 -0
  58. data/spec/app/views/erb/file_field_tag.erb +1 -0
  59. data/spec/app/views/erb/file_field_tag_tag.erb +1 -0
  60. data/spec/app/views/erb/file_field_tag_with_append.erb +1 -0
  61. data/spec/app/views/erb/file_field_tag_with_error.erb +1 -0
  62. data/spec/app/views/erb/file_field_tag_with_help_block.erb +1 -0
  63. data/spec/app/views/erb/file_field_tag_with_help_inline.erb +1 -0
  64. data/spec/app/views/erb/file_field_tag_with_info.erb +1 -0
  65. data/spec/app/views/erb/file_field_tag_with_prepend.erb +1 -0
  66. data/spec/app/views/erb/file_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  67. data/spec/app/views/erb/file_field_tag_with_success.erb +1 -0
  68. data/spec/app/views/erb/file_field_tag_with_warning.erb +1 -0
  69. data/spec/app/views/erb/file_field_with_append.erb +1 -0
  70. data/spec/app/views/erb/file_field_with_error.erb +1 -0
  71. data/spec/app/views/erb/file_field_with_help_block.erb +1 -0
  72. data/spec/app/views/erb/file_field_with_help_inline.erb +1 -0
  73. data/spec/app/views/erb/file_field_with_info.erb +1 -0
  74. data/spec/app/views/erb/file_field_with_prepend.erb +1 -0
  75. data/spec/app/views/erb/file_field_with_prepend_append_and_help_inline.erb +1 -0
  76. data/spec/app/views/erb/file_field_with_success.erb +1 -0
  77. data/spec/app/views/erb/file_field_with_warning.erb +1 -0
  78. data/spec/app/views/erb/label_field.erb +1 -0
  79. data/spec/app/views/erb/number_field.erb +1 -0
  80. data/spec/app/views/erb/number_field_tag.erb +1 -0
  81. data/spec/app/views/erb/number_field_tag_tag.erb +1 -0
  82. data/spec/app/views/erb/number_field_tag_with_append.erb +1 -0
  83. data/spec/app/views/erb/number_field_tag_with_error.erb +1 -0
  84. data/spec/app/views/erb/number_field_tag_with_help_block.erb +1 -0
  85. data/spec/app/views/erb/number_field_tag_with_help_inline.erb +1 -0
  86. data/spec/app/views/erb/number_field_tag_with_info.erb +1 -0
  87. data/spec/app/views/erb/number_field_tag_with_prepend.erb +1 -0
  88. data/spec/app/views/erb/number_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  89. data/spec/app/views/erb/number_field_tag_with_success.erb +1 -0
  90. data/spec/app/views/erb/number_field_tag_with_warning.erb +1 -0
  91. data/spec/app/views/erb/number_field_with_append.erb +1 -0
  92. data/spec/app/views/erb/number_field_with_error.erb +1 -0
  93. data/spec/app/views/erb/number_field_with_help_block.erb +1 -0
  94. data/spec/app/views/erb/number_field_with_help_inline.erb +1 -0
  95. data/spec/app/views/erb/number_field_with_info.erb +1 -0
  96. data/spec/app/views/erb/number_field_with_prepend.erb +1 -0
  97. data/spec/app/views/erb/number_field_with_prepend_append_and_help_inline.erb +1 -0
  98. data/spec/app/views/erb/number_field_with_success.erb +1 -0
  99. data/spec/app/views/erb/number_field_with_warning.erb +1 -0
  100. data/spec/app/views/erb/password_field.erb +1 -0
  101. data/spec/app/views/erb/password_field_tag.erb +1 -0
  102. data/spec/app/views/erb/password_field_tag_tag.erb +1 -0
  103. data/spec/app/views/erb/password_field_tag_with_append.erb +1 -0
  104. data/spec/app/views/erb/password_field_tag_with_error.erb +1 -0
  105. data/spec/app/views/erb/password_field_tag_with_help_block.erb +1 -0
  106. data/spec/app/views/erb/password_field_tag_with_help_inline.erb +1 -0
  107. data/spec/app/views/erb/password_field_tag_with_info.erb +1 -0
  108. data/spec/app/views/erb/password_field_tag_with_prepend.erb +1 -0
  109. data/spec/app/views/erb/password_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  110. data/spec/app/views/erb/password_field_tag_with_success.erb +1 -0
  111. data/spec/app/views/erb/password_field_tag_with_warning.erb +1 -0
  112. data/spec/app/views/erb/password_field_with_append.erb +1 -0
  113. data/spec/app/views/erb/password_field_with_error.erb +1 -0
  114. data/spec/app/views/erb/password_field_with_help_block.erb +1 -0
  115. data/spec/app/views/erb/password_field_with_help_inline.erb +1 -0
  116. data/spec/app/views/erb/password_field_with_info.erb +1 -0
  117. data/spec/app/views/erb/password_field_with_prepend.erb +1 -0
  118. data/spec/app/views/erb/password_field_with_prepend_append_and_help_inline.erb +1 -0
  119. data/spec/app/views/erb/password_field_with_success.erb +1 -0
  120. data/spec/app/views/erb/password_field_with_warning.erb +1 -0
  121. data/spec/app/views/erb/phone_field.erb +1 -0
  122. data/spec/app/views/erb/phone_field_tag.erb +1 -0
  123. data/spec/app/views/erb/phone_field_tag_tag.erb +1 -0
  124. data/spec/app/views/erb/phone_field_tag_with_append.erb +1 -0
  125. data/spec/app/views/erb/phone_field_tag_with_error.erb +1 -0
  126. data/spec/app/views/erb/phone_field_tag_with_help_block.erb +1 -0
  127. data/spec/app/views/erb/phone_field_tag_with_help_inline.erb +1 -0
  128. data/spec/app/views/erb/phone_field_tag_with_info.erb +1 -0
  129. data/spec/app/views/erb/phone_field_tag_with_prepend.erb +1 -0
  130. data/spec/app/views/erb/phone_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  131. data/spec/app/views/erb/phone_field_tag_with_success.erb +1 -0
  132. data/spec/app/views/erb/phone_field_tag_with_warning.erb +1 -0
  133. data/spec/app/views/erb/phone_field_with_append.erb +1 -0
  134. data/spec/app/views/erb/phone_field_with_error.erb +1 -0
  135. data/spec/app/views/erb/phone_field_with_help_block.erb +1 -0
  136. data/spec/app/views/erb/phone_field_with_help_inline.erb +1 -0
  137. data/spec/app/views/erb/phone_field_with_info.erb +1 -0
  138. data/spec/app/views/erb/phone_field_with_prepend.erb +1 -0
  139. data/spec/app/views/erb/phone_field_with_prepend_append_and_help_inline.erb +1 -0
  140. data/spec/app/views/erb/phone_field_with_success.erb +1 -0
  141. data/spec/app/views/erb/phone_field_with_warning.erb +1 -0
  142. data/spec/app/views/erb/radio_buttons.erb +1 -0
  143. data/spec/app/views/erb/radio_buttons_with_error.erb +1 -0
  144. data/spec/app/views/erb/search_field.erb +1 -0
  145. data/spec/app/views/erb/search_field_tag.erb +1 -0
  146. data/spec/app/views/erb/search_field_tag_tag.erb +1 -0
  147. data/spec/app/views/erb/search_field_tag_with_append.erb +1 -0
  148. data/spec/app/views/erb/search_field_tag_with_error.erb +1 -0
  149. data/spec/app/views/erb/search_field_tag_with_help_block.erb +1 -0
  150. data/spec/app/views/erb/search_field_tag_with_help_inline.erb +1 -0
  151. data/spec/app/views/erb/search_field_tag_with_info.erb +1 -0
  152. data/spec/app/views/erb/search_field_tag_with_prepend.erb +1 -0
  153. data/spec/app/views/erb/search_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  154. data/spec/app/views/erb/search_field_tag_with_success.erb +1 -0
  155. data/spec/app/views/erb/search_field_tag_with_warning.erb +1 -0
  156. data/spec/app/views/erb/search_field_with_append.erb +1 -0
  157. data/spec/app/views/erb/search_field_with_error.erb +1 -0
  158. data/spec/app/views/erb/search_field_with_help_block.erb +1 -0
  159. data/spec/app/views/erb/search_field_with_help_inline.erb +1 -0
  160. data/spec/app/views/erb/search_field_with_info.erb +1 -0
  161. data/spec/app/views/erb/search_field_with_prepend.erb +1 -0
  162. data/spec/app/views/erb/search_field_with_prepend_append_and_help_inline.erb +1 -0
  163. data/spec/app/views/erb/search_field_with_success.erb +1 -0
  164. data/spec/app/views/erb/search_field_with_warning.erb +1 -0
  165. data/spec/app/views/erb/select.erb +1 -0
  166. data/spec/app/views/erb/select_tag.erb +1 -0
  167. data/spec/app/views/erb/select_tag_tag.erb +1 -0
  168. data/spec/app/views/erb/select_tag_with_append.erb +1 -0
  169. data/spec/app/views/erb/select_tag_with_error.erb +1 -0
  170. data/spec/app/views/erb/select_tag_with_help_block.erb +1 -0
  171. data/spec/app/views/erb/select_tag_with_help_inline.erb +1 -0
  172. data/spec/app/views/erb/select_tag_with_info.erb +1 -0
  173. data/spec/app/views/erb/select_tag_with_prepend.erb +1 -0
  174. data/spec/app/views/erb/select_tag_with_prepend_append_and_help_inline.erb +1 -0
  175. data/spec/app/views/erb/select_tag_with_success.erb +1 -0
  176. data/spec/app/views/erb/select_tag_with_warning.erb +1 -0
  177. data/spec/app/views/erb/select_with_append.erb +1 -0
  178. data/spec/app/views/erb/select_with_error.erb +1 -0
  179. data/spec/app/views/erb/select_with_help_block.erb +1 -0
  180. data/spec/app/views/erb/select_with_help_inline.erb +1 -0
  181. data/spec/app/views/erb/select_with_info.erb +1 -0
  182. data/spec/app/views/erb/select_with_prepend.erb +1 -0
  183. data/spec/app/views/erb/select_with_prepend_append_and_help_inline.erb +1 -0
  184. data/spec/app/views/erb/select_with_success.erb +1 -0
  185. data/spec/app/views/erb/select_with_warning.erb +1 -0
  186. data/spec/app/views/erb/telephone_field_tag.erb +1 -0
  187. data/spec/app/views/erb/telephone_field_tag_tag.erb +1 -0
  188. data/spec/app/views/erb/telephone_field_tag_with_append.erb +1 -0
  189. data/spec/app/views/erb/telephone_field_tag_with_error.erb +1 -0
  190. data/spec/app/views/erb/telephone_field_tag_with_help_block.erb +1 -0
  191. data/spec/app/views/erb/telephone_field_tag_with_help_inline.erb +1 -0
  192. data/spec/app/views/erb/telephone_field_tag_with_info.erb +1 -0
  193. data/spec/app/views/erb/telephone_field_tag_with_prepend.erb +1 -0
  194. data/spec/app/views/erb/telephone_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  195. data/spec/app/views/erb/telephone_field_tag_with_success.erb +1 -0
  196. data/spec/app/views/erb/telephone_field_tag_with_warning.erb +1 -0
  197. data/spec/app/views/erb/text_area.erb +1 -0
  198. data/spec/app/views/erb/text_area_tag.erb +1 -0
  199. data/spec/app/views/erb/text_area_tag_tag.erb +1 -0
  200. data/spec/app/views/erb/text_area_tag_with_append.erb +1 -0
  201. data/spec/app/views/erb/text_area_tag_with_error.erb +1 -0
  202. data/spec/app/views/erb/text_area_tag_with_help_block.erb +1 -0
  203. data/spec/app/views/erb/text_area_tag_with_help_inline.erb +1 -0
  204. data/spec/app/views/erb/text_area_tag_with_info.erb +1 -0
  205. data/spec/app/views/erb/text_area_tag_with_prepend.erb +1 -0
  206. data/spec/app/views/erb/text_area_tag_with_prepend_append_and_help_inline.erb +1 -0
  207. data/spec/app/views/erb/text_area_tag_with_success.erb +1 -0
  208. data/spec/app/views/erb/text_area_tag_with_warning.erb +1 -0
  209. data/spec/app/views/erb/text_area_with_append.erb +1 -0
  210. data/spec/app/views/erb/text_area_with_error.erb +1 -0
  211. data/spec/app/views/erb/text_area_with_help_block.erb +1 -0
  212. data/spec/app/views/erb/text_area_with_help_inline.erb +1 -0
  213. data/spec/app/views/erb/text_area_with_info.erb +1 -0
  214. data/spec/app/views/erb/text_area_with_prepend.erb +1 -0
  215. data/spec/app/views/erb/text_area_with_prepend_append_and_help_inline.erb +1 -0
  216. data/spec/app/views/erb/text_area_with_success.erb +1 -0
  217. data/spec/app/views/erb/text_area_with_warning.erb +1 -0
  218. data/spec/app/views/erb/text_field.erb +1 -0
  219. data/spec/app/views/erb/text_field_tag.erb +1 -0
  220. data/spec/app/views/erb/text_field_tag_tag.erb +1 -0
  221. data/spec/app/views/erb/text_field_tag_with_append.erb +1 -0
  222. data/spec/app/views/erb/text_field_tag_with_error.erb +1 -0
  223. data/spec/app/views/erb/text_field_tag_with_help_block.erb +1 -0
  224. data/spec/app/views/erb/text_field_tag_with_help_inline.erb +1 -0
  225. data/spec/app/views/erb/text_field_tag_with_info.erb +1 -0
  226. data/spec/app/views/erb/text_field_tag_with_prepend.erb +1 -0
  227. data/spec/app/views/erb/text_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  228. data/spec/app/views/erb/text_field_tag_with_success.erb +1 -0
  229. data/spec/app/views/erb/text_field_tag_with_warning.erb +1 -0
  230. data/spec/app/views/erb/text_field_with_append.erb +1 -0
  231. data/spec/app/views/erb/text_field_with_error.erb +1 -0
  232. data/spec/app/views/erb/text_field_with_help_block.erb +1 -0
  233. data/spec/app/views/erb/text_field_with_help_inline.erb +1 -0
  234. data/spec/app/views/erb/text_field_with_info.erb +1 -0
  235. data/spec/app/views/erb/text_field_with_prepend.erb +1 -0
  236. data/spec/app/views/erb/text_field_with_prepend_append_and_help_inline.erb +1 -0
  237. data/spec/app/views/erb/text_field_with_success.erb +1 -0
  238. data/spec/app/views/erb/text_field_with_warning.erb +1 -0
  239. data/spec/app/views/erb/uneditable_input.erb +1 -0
  240. data/spec/app/views/erb/uneditable_input_tag.erb +1 -0
  241. data/spec/app/views/erb/uneditable_input_tag_with_append.erb +1 -0
  242. data/spec/app/views/erb/uneditable_input_tag_with_error.erb +1 -0
  243. data/spec/app/views/erb/uneditable_input_tag_with_help_block.erb +1 -0
  244. data/spec/app/views/erb/uneditable_input_tag_with_help_inline.erb +1 -0
  245. data/spec/app/views/erb/uneditable_input_tag_with_info.erb +1 -0
  246. data/spec/app/views/erb/uneditable_input_tag_with_prepend.erb +1 -0
  247. data/spec/app/views/erb/uneditable_input_tag_with_prepend_append_and_help_inline.erb +1 -0
  248. data/spec/app/views/erb/uneditable_input_tag_with_success.erb +1 -0
  249. data/spec/app/views/erb/uneditable_input_tag_with_warning.erb +1 -0
  250. data/spec/app/views/erb/uneditable_input_with_append.erb +1 -0
  251. data/spec/app/views/erb/uneditable_input_with_error.erb +1 -0
  252. data/spec/app/views/erb/uneditable_input_with_help_block.erb +1 -0
  253. data/spec/app/views/erb/uneditable_input_with_help_inline.erb +1 -0
  254. data/spec/app/views/erb/uneditable_input_with_info.erb +1 -0
  255. data/spec/app/views/erb/uneditable_input_with_prepend.erb +1 -0
  256. data/spec/app/views/erb/uneditable_input_with_prepend_append_and_help_inline.erb +1 -0
  257. data/spec/app/views/erb/uneditable_input_with_success.erb +1 -0
  258. data/spec/app/views/erb/uneditable_input_with_warning.erb +1 -0
  259. data/spec/app/views/erb/url_field.erb +1 -0
  260. data/spec/app/views/erb/url_field_tag.erb +1 -0
  261. data/spec/app/views/erb/url_field_tag_tag.erb +1 -0
  262. data/spec/app/views/erb/url_field_tag_with_append.erb +1 -0
  263. data/spec/app/views/erb/url_field_tag_with_error.erb +1 -0
  264. data/spec/app/views/erb/url_field_tag_with_help_block.erb +1 -0
  265. data/spec/app/views/erb/url_field_tag_with_help_inline.erb +1 -0
  266. data/spec/app/views/erb/url_field_tag_with_info.erb +1 -0
  267. data/spec/app/views/erb/url_field_tag_with_prepend.erb +1 -0
  268. data/spec/app/views/erb/url_field_tag_with_prepend_append_and_help_inline.erb +1 -0
  269. data/spec/app/views/erb/url_field_tag_with_success.erb +1 -0
  270. data/spec/app/views/erb/url_field_tag_with_warning.erb +1 -0
  271. data/spec/app/views/erb/url_field_with_append.erb +1 -0
  272. data/spec/app/views/erb/url_field_with_error.erb +1 -0
  273. data/spec/app/views/erb/url_field_with_help_block.erb +1 -0
  274. data/spec/app/views/erb/url_field_with_help_inline.erb +1 -0
  275. data/spec/app/views/erb/url_field_with_info.erb +1 -0
  276. data/spec/app/views/erb/url_field_with_prepend.erb +1 -0
  277. data/spec/app/views/erb/url_field_with_prepend_append_and_help_inline.erb +1 -0
  278. data/spec/app/views/erb/url_field_with_success.erb +1 -0
  279. data/spec/app/views/erb/url_field_with_warning.erb +1 -0
  280. data/spec/app/views/haml/bootstrap_actions.haml +1 -0
  281. data/spec/app/views/haml/bootstrap_actions_with_block.haml +2 -0
  282. data/spec/app/views/haml/check_box.haml +1 -0
  283. data/spec/app/views/haml/check_box_tag.haml +1 -0
  284. data/spec/app/views/haml/check_box_tag_with_append.haml +1 -0
  285. data/spec/app/views/haml/check_box_tag_with_error.haml +1 -0
  286. data/spec/app/views/haml/check_box_tag_with_help_block.haml +1 -0
  287. data/spec/app/views/haml/check_box_tag_with_help_inline.haml +1 -0
  288. data/spec/app/views/haml/check_box_tag_with_info.haml +1 -0
  289. data/spec/app/views/haml/check_box_tag_with_prepend.haml +1 -0
  290. data/spec/app/views/haml/check_box_tag_with_prepend_append_and_help_inline.haml +1 -0
  291. data/spec/app/views/haml/check_box_tag_with_success.haml +1 -0
  292. data/spec/app/views/haml/check_box_tag_with_warning.haml +1 -0
  293. data/spec/app/views/haml/check_box_with_append.haml +1 -0
  294. data/spec/app/views/haml/check_box_with_error.haml +1 -0
  295. data/spec/app/views/haml/check_box_with_help_block.haml +1 -0
  296. data/spec/app/views/haml/check_box_with_help_inline.haml +1 -0
  297. data/spec/app/views/haml/check_box_with_info.haml +1 -0
  298. data/spec/app/views/haml/check_box_with_success.haml +1 -0
  299. data/spec/app/views/haml/check_box_with_warning.haml +1 -0
  300. data/spec/app/views/haml/collection_check_boxes.haml +1 -0
  301. data/spec/app/views/haml/collection_check_boxes_with_checked.haml +2 -0
  302. data/spec/app/views/haml/collection_check_boxes_with_help_block.haml +1 -0
  303. data/spec/app/views/haml/collection_radio_buttons.haml +1 -0
  304. data/spec/app/views/haml/collection_radio_buttons_with_checked.haml +2 -0
  305. data/spec/app/views/haml/email_field.haml +1 -0
  306. data/spec/app/views/haml/email_field_tag.haml +1 -0
  307. data/spec/app/views/haml/email_field_tag_tag.haml +1 -0
  308. data/spec/app/views/haml/email_field_tag_with_append.haml +1 -0
  309. data/spec/app/views/haml/email_field_tag_with_error.haml +1 -0
  310. data/spec/app/views/haml/email_field_tag_with_help_block.haml +1 -0
  311. data/spec/app/views/haml/email_field_tag_with_help_inline.haml +1 -0
  312. data/spec/app/views/haml/email_field_tag_with_info.haml +1 -0
  313. data/spec/app/views/haml/email_field_tag_with_prepend.haml +1 -0
  314. data/spec/app/views/haml/email_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  315. data/spec/app/views/haml/email_field_tag_with_success.haml +1 -0
  316. data/spec/app/views/haml/email_field_tag_with_warning.haml +1 -0
  317. data/spec/app/views/haml/email_field_with_append.haml +1 -0
  318. data/spec/app/views/haml/email_field_with_error.haml +1 -0
  319. data/spec/app/views/haml/email_field_with_help_block.haml +1 -0
  320. data/spec/app/views/haml/email_field_with_help_inline.haml +1 -0
  321. data/spec/app/views/haml/email_field_with_info.haml +1 -0
  322. data/spec/app/views/haml/email_field_with_prepend.haml +1 -0
  323. data/spec/app/views/haml/email_field_with_prepend_append_and_help_inline.haml +1 -0
  324. data/spec/app/views/haml/email_field_with_success.haml +1 -0
  325. data/spec/app/views/haml/email_field_with_warning.haml +1 -0
  326. data/spec/app/views/haml/file_field.haml +1 -0
  327. data/spec/app/views/haml/file_field_tag.haml +1 -0
  328. data/spec/app/views/haml/file_field_tag_tag.haml +1 -0
  329. data/spec/app/views/haml/file_field_tag_with_append.haml +1 -0
  330. data/spec/app/views/haml/file_field_tag_with_error.haml +1 -0
  331. data/spec/app/views/haml/file_field_tag_with_help_block.haml +1 -0
  332. data/spec/app/views/haml/file_field_tag_with_help_inline.haml +1 -0
  333. data/spec/app/views/haml/file_field_tag_with_info.haml +1 -0
  334. data/spec/app/views/haml/file_field_tag_with_prepend.haml +1 -0
  335. data/spec/app/views/haml/file_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  336. data/spec/app/views/haml/file_field_tag_with_success.haml +1 -0
  337. data/spec/app/views/haml/file_field_tag_with_warning.haml +1 -0
  338. data/spec/app/views/haml/file_field_with_append.haml +1 -0
  339. data/spec/app/views/haml/file_field_with_error.haml +1 -0
  340. data/spec/app/views/haml/file_field_with_help_block.haml +1 -0
  341. data/spec/app/views/haml/file_field_with_help_inline.haml +1 -0
  342. data/spec/app/views/haml/file_field_with_info.haml +1 -0
  343. data/spec/app/views/haml/file_field_with_prepend.haml +1 -0
  344. data/spec/app/views/haml/file_field_with_prepend_append_and_help_inline.haml +1 -0
  345. data/spec/app/views/haml/file_field_with_success.haml +1 -0
  346. data/spec/app/views/haml/file_field_with_warning.haml +1 -0
  347. data/spec/app/views/haml/number_field.haml +1 -0
  348. data/spec/app/views/haml/number_field_tag.haml +1 -0
  349. data/spec/app/views/haml/number_field_tag_tag.haml +1 -0
  350. data/spec/app/views/haml/number_field_tag_with_append.haml +1 -0
  351. data/spec/app/views/haml/number_field_tag_with_error.haml +1 -0
  352. data/spec/app/views/haml/number_field_tag_with_help_block.haml +1 -0
  353. data/spec/app/views/haml/number_field_tag_with_help_inline.haml +1 -0
  354. data/spec/app/views/haml/number_field_tag_with_info.haml +1 -0
  355. data/spec/app/views/haml/number_field_tag_with_prepend.haml +1 -0
  356. data/spec/app/views/haml/number_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  357. data/spec/app/views/haml/number_field_tag_with_success.haml +1 -0
  358. data/spec/app/views/haml/number_field_tag_with_warning.haml +1 -0
  359. data/spec/app/views/haml/number_field_with_append.haml +1 -0
  360. data/spec/app/views/haml/number_field_with_error.haml +1 -0
  361. data/spec/app/views/haml/number_field_with_help_block.haml +1 -0
  362. data/spec/app/views/haml/number_field_with_help_inline.haml +1 -0
  363. data/spec/app/views/haml/number_field_with_info.haml +1 -0
  364. data/spec/app/views/haml/number_field_with_prepend.haml +1 -0
  365. data/spec/app/views/haml/number_field_with_prepend_append_and_help_inline.haml +1 -0
  366. data/spec/app/views/haml/number_field_with_success.haml +1 -0
  367. data/spec/app/views/haml/number_field_with_warning.haml +1 -0
  368. data/spec/app/views/haml/password_field.haml +1 -0
  369. data/spec/app/views/haml/password_field_tag.haml +1 -0
  370. data/spec/app/views/haml/password_field_tag_tag.haml +1 -0
  371. data/spec/app/views/haml/password_field_tag_with_append.haml +1 -0
  372. data/spec/app/views/haml/password_field_tag_with_error.haml +1 -0
  373. data/spec/app/views/haml/password_field_tag_with_help_block.haml +1 -0
  374. data/spec/app/views/haml/password_field_tag_with_help_inline.haml +1 -0
  375. data/spec/app/views/haml/password_field_tag_with_info.haml +1 -0
  376. data/spec/app/views/haml/password_field_tag_with_prepend.haml +1 -0
  377. data/spec/app/views/haml/password_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  378. data/spec/app/views/haml/password_field_tag_with_success.haml +1 -0
  379. data/spec/app/views/haml/password_field_tag_with_warning.haml +1 -0
  380. data/spec/app/views/haml/password_field_with_append.haml +1 -0
  381. data/spec/app/views/haml/password_field_with_error.haml +1 -0
  382. data/spec/app/views/haml/password_field_with_help_block.haml +1 -0
  383. data/spec/app/views/haml/password_field_with_help_inline.haml +1 -0
  384. data/spec/app/views/haml/password_field_with_info.haml +1 -0
  385. data/spec/app/views/haml/password_field_with_prepend.haml +1 -0
  386. data/spec/app/views/haml/password_field_with_prepend_append_and_help_inline.haml +1 -0
  387. data/spec/app/views/haml/password_field_with_success.haml +1 -0
  388. data/spec/app/views/haml/password_field_with_warning.haml +1 -0
  389. data/spec/app/views/haml/phone_field.haml +1 -0
  390. data/spec/app/views/haml/phone_field_tag.haml +1 -0
  391. data/spec/app/views/haml/phone_field_tag_tag.haml +1 -0
  392. data/spec/app/views/haml/phone_field_tag_with_append.haml +1 -0
  393. data/spec/app/views/haml/phone_field_tag_with_error.haml +1 -0
  394. data/spec/app/views/haml/phone_field_tag_with_help_block.haml +1 -0
  395. data/spec/app/views/haml/phone_field_tag_with_help_inline.haml +1 -0
  396. data/spec/app/views/haml/phone_field_tag_with_info.haml +1 -0
  397. data/spec/app/views/haml/phone_field_tag_with_prepend.haml +1 -0
  398. data/spec/app/views/haml/phone_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  399. data/spec/app/views/haml/phone_field_tag_with_success.haml +1 -0
  400. data/spec/app/views/haml/phone_field_tag_with_warning.haml +1 -0
  401. data/spec/app/views/haml/phone_field_with_append.haml +1 -0
  402. data/spec/app/views/haml/phone_field_with_error.haml +1 -0
  403. data/spec/app/views/haml/phone_field_with_help_block.haml +1 -0
  404. data/spec/app/views/haml/phone_field_with_help_inline.haml +1 -0
  405. data/spec/app/views/haml/phone_field_with_info.haml +1 -0
  406. data/spec/app/views/haml/phone_field_with_prepend.haml +1 -0
  407. data/spec/app/views/haml/phone_field_with_prepend_append_and_help_inline.haml +1 -0
  408. data/spec/app/views/haml/phone_field_with_success.haml +1 -0
  409. data/spec/app/views/haml/phone_field_with_warning.haml +1 -0
  410. data/spec/app/views/haml/radio_buttons.haml +1 -0
  411. data/spec/app/views/haml/radio_buttons_with_error.haml +1 -0
  412. data/spec/app/views/haml/search_field.haml +1 -0
  413. data/spec/app/views/haml/search_field_tag.haml +1 -0
  414. data/spec/app/views/haml/search_field_tag_tag.haml +1 -0
  415. data/spec/app/views/haml/search_field_tag_with_append.haml +1 -0
  416. data/spec/app/views/haml/search_field_tag_with_error.haml +1 -0
  417. data/spec/app/views/haml/search_field_tag_with_help_block.haml +1 -0
  418. data/spec/app/views/haml/search_field_tag_with_help_inline.haml +1 -0
  419. data/spec/app/views/haml/search_field_tag_with_info.haml +1 -0
  420. data/spec/app/views/haml/search_field_tag_with_prepend.haml +1 -0
  421. data/spec/app/views/haml/search_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  422. data/spec/app/views/haml/search_field_tag_with_success.haml +1 -0
  423. data/spec/app/views/haml/search_field_tag_with_warning.haml +1 -0
  424. data/spec/app/views/haml/search_field_with_append.haml +1 -0
  425. data/spec/app/views/haml/search_field_with_error.haml +1 -0
  426. data/spec/app/views/haml/search_field_with_help_block.haml +1 -0
  427. data/spec/app/views/haml/search_field_with_help_inline.haml +1 -0
  428. data/spec/app/views/haml/search_field_with_info.haml +1 -0
  429. data/spec/app/views/haml/search_field_with_prepend.haml +1 -0
  430. data/spec/app/views/haml/search_field_with_prepend_append_and_help_inline.haml +1 -0
  431. data/spec/app/views/haml/search_field_with_success.haml +1 -0
  432. data/spec/app/views/haml/search_field_with_warning.haml +1 -0
  433. data/spec/app/views/haml/select.haml +1 -0
  434. data/spec/app/views/haml/select_tag.haml +1 -0
  435. data/spec/app/views/haml/select_tag_with_append.haml +1 -0
  436. data/spec/app/views/haml/select_tag_with_error.haml +1 -0
  437. data/spec/app/views/haml/select_tag_with_help_block.haml +1 -0
  438. data/spec/app/views/haml/select_tag_with_help_inline.haml +1 -0
  439. data/spec/app/views/haml/select_tag_with_info.haml +1 -0
  440. data/spec/app/views/haml/select_tag_with_prepend.haml +1 -0
  441. data/spec/app/views/haml/select_tag_with_prepend_append_and_help_inline.haml +1 -0
  442. data/spec/app/views/haml/select_tag_with_success.haml +1 -0
  443. data/spec/app/views/haml/select_tag_with_warning.haml +1 -0
  444. data/spec/app/views/haml/select_with_append.haml +1 -0
  445. data/spec/app/views/haml/select_with_error.haml +1 -0
  446. data/spec/app/views/haml/select_with_help_block.haml +1 -0
  447. data/spec/app/views/haml/select_with_help_inline.haml +1 -0
  448. data/spec/app/views/haml/select_with_info.haml +1 -0
  449. data/spec/app/views/haml/select_with_prepend.haml +1 -0
  450. data/spec/app/views/haml/select_with_prepend_append_and_help_inline.haml +1 -0
  451. data/spec/app/views/haml/select_with_success.haml +1 -0
  452. data/spec/app/views/haml/select_with_warning.haml +1 -0
  453. data/spec/app/views/haml/telephone_field.haml +1 -0
  454. data/spec/app/views/haml/telephone_field_tag.haml +1 -0
  455. data/spec/app/views/haml/telephone_field_tag_tag.haml +1 -0
  456. data/spec/app/views/haml/telephone_field_tag_with_append.haml +1 -0
  457. data/spec/app/views/haml/telephone_field_tag_with_error.haml +1 -0
  458. data/spec/app/views/haml/telephone_field_tag_with_help_block.haml +1 -0
  459. data/spec/app/views/haml/telephone_field_tag_with_help_inline.haml +1 -0
  460. data/spec/app/views/haml/telephone_field_tag_with_info.haml +1 -0
  461. data/spec/app/views/haml/telephone_field_tag_with_prepend.haml +1 -0
  462. data/spec/app/views/haml/telephone_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  463. data/spec/app/views/haml/telephone_field_tag_with_success.haml +1 -0
  464. data/spec/app/views/haml/telephone_field_tag_with_warning.haml +1 -0
  465. data/spec/app/views/haml/telephone_field_with_append.haml +1 -0
  466. data/spec/app/views/haml/telephone_field_with_error.haml +1 -0
  467. data/spec/app/views/haml/telephone_field_with_help_block.haml +1 -0
  468. data/spec/app/views/haml/telephone_field_with_help_inline.haml +1 -0
  469. data/spec/app/views/haml/telephone_field_with_info.haml +1 -0
  470. data/spec/app/views/haml/telephone_field_with_prepend.haml +1 -0
  471. data/spec/app/views/haml/telephone_field_with_prepend_append_and_help_inline.haml +1 -0
  472. data/spec/app/views/haml/telephone_field_with_success.haml +1 -0
  473. data/spec/app/views/haml/telephone_field_with_warning.haml +1 -0
  474. data/spec/app/views/haml/text_area.haml +1 -0
  475. data/spec/app/views/haml/text_area_field.haml +1 -0
  476. data/spec/app/views/haml/text_area_field_with_append.haml +1 -0
  477. data/spec/app/views/haml/text_area_field_with_error.haml +1 -0
  478. data/spec/app/views/haml/text_area_field_with_help_block.haml +1 -0
  479. data/spec/app/views/haml/text_area_field_with_help_inline.haml +1 -0
  480. data/spec/app/views/haml/text_area_field_with_info.haml +1 -0
  481. data/spec/app/views/haml/text_area_field_with_prepend.haml +1 -0
  482. data/spec/app/views/haml/text_area_field_with_prepend_append_and_help_inline.haml +1 -0
  483. data/spec/app/views/haml/text_area_field_with_success.haml +1 -0
  484. data/spec/app/views/haml/text_area_field_with_warning.haml +1 -0
  485. data/spec/app/views/haml/text_area_tag.haml +1 -0
  486. data/spec/app/views/haml/text_area_tag_tag.haml +1 -0
  487. data/spec/app/views/haml/text_area_tag_with_append.haml +1 -0
  488. data/spec/app/views/haml/text_area_tag_with_error.haml +1 -0
  489. data/spec/app/views/haml/text_area_tag_with_help_block.haml +1 -0
  490. data/spec/app/views/haml/text_area_tag_with_help_inline.haml +1 -0
  491. data/spec/app/views/haml/text_area_tag_with_info.haml +1 -0
  492. data/spec/app/views/haml/text_area_tag_with_prepend.haml +1 -0
  493. data/spec/app/views/haml/text_area_tag_with_prepend_append_and_help_inline.haml +1 -0
  494. data/spec/app/views/haml/text_area_tag_with_success.haml +1 -0
  495. data/spec/app/views/haml/text_area_tag_with_warning.haml +1 -0
  496. data/spec/app/views/haml/text_area_with_append.haml +1 -0
  497. data/spec/app/views/haml/text_area_with_error.haml +1 -0
  498. data/spec/app/views/haml/text_area_with_help_block.haml +1 -0
  499. data/spec/app/views/haml/text_area_with_help_inline.haml +1 -0
  500. data/spec/app/views/haml/text_area_with_info.haml +1 -0
  501. data/spec/app/views/haml/text_area_with_prepend.haml +1 -0
  502. data/spec/app/views/haml/text_area_with_prepend_append_and_help_inline.haml +1 -0
  503. data/spec/app/views/haml/text_area_with_success.haml +1 -0
  504. data/spec/app/views/haml/text_area_with_warning.haml +1 -0
  505. data/spec/app/views/haml/text_field.haml +1 -0
  506. data/spec/app/views/haml/text_field_tag.haml +1 -0
  507. data/spec/app/views/haml/text_field_tag_tag.haml +1 -0
  508. data/spec/app/views/haml/text_field_tag_with_append.haml +1 -0
  509. data/spec/app/views/haml/text_field_tag_with_error.haml +1 -0
  510. data/spec/app/views/haml/text_field_tag_with_help_block.haml +1 -0
  511. data/spec/app/views/haml/text_field_tag_with_help_inline.haml +1 -0
  512. data/spec/app/views/haml/text_field_tag_with_info.haml +1 -0
  513. data/spec/app/views/haml/text_field_tag_with_prepend.haml +1 -0
  514. data/spec/app/views/haml/text_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  515. data/spec/app/views/haml/text_field_tag_with_success.haml +1 -0
  516. data/spec/app/views/haml/text_field_tag_with_warning.haml +1 -0
  517. data/spec/app/views/haml/text_field_with_append.haml +1 -0
  518. data/spec/app/views/haml/text_field_with_error.haml +1 -0
  519. data/spec/app/views/haml/text_field_with_help_block.haml +1 -0
  520. data/spec/app/views/haml/text_field_with_help_inline.haml +1 -0
  521. data/spec/app/views/haml/text_field_with_info.haml +1 -0
  522. data/spec/app/views/haml/text_field_with_prepend.haml +1 -0
  523. data/spec/app/views/haml/text_field_with_prepend_append_and_help_inline.haml +1 -0
  524. data/spec/app/views/haml/text_field_with_success.haml +1 -0
  525. data/spec/app/views/haml/text_field_with_warning.haml +1 -0
  526. data/spec/app/views/haml/uneditable_input.haml +1 -0
  527. data/spec/app/views/haml/uneditable_input_tag.haml +1 -0
  528. data/spec/app/views/haml/uneditable_input_tag_with_append.haml +1 -0
  529. data/spec/app/views/haml/uneditable_input_tag_with_error.haml +1 -0
  530. data/spec/app/views/haml/uneditable_input_tag_with_help_block.haml +1 -0
  531. data/spec/app/views/haml/uneditable_input_tag_with_help_inline.haml +1 -0
  532. data/spec/app/views/haml/uneditable_input_tag_with_info.haml +1 -0
  533. data/spec/app/views/haml/uneditable_input_tag_with_prepend.haml +1 -0
  534. data/spec/app/views/haml/uneditable_input_tag_with_prepend_append_and_help_inline.haml +1 -0
  535. data/spec/app/views/haml/uneditable_input_tag_with_success.haml +1 -0
  536. data/spec/app/views/haml/uneditable_input_tag_with_warning.haml +1 -0
  537. data/spec/app/views/haml/uneditable_input_with_append.haml +1 -0
  538. data/spec/app/views/haml/uneditable_input_with_error.haml +1 -0
  539. data/spec/app/views/haml/uneditable_input_with_help_block.haml +1 -0
  540. data/spec/app/views/haml/uneditable_input_with_help_inline.haml +1 -0
  541. data/spec/app/views/haml/uneditable_input_with_info.haml +1 -0
  542. data/spec/app/views/haml/uneditable_input_with_prepend.haml +1 -0
  543. data/spec/app/views/haml/uneditable_input_with_prepend_append_and_help_inline.haml +1 -0
  544. data/spec/app/views/haml/uneditable_input_with_success.haml +1 -0
  545. data/spec/app/views/haml/uneditable_input_with_warning.haml +1 -0
  546. data/spec/app/views/haml/url_field.haml +1 -0
  547. data/spec/app/views/haml/url_field_tag.haml +1 -0
  548. data/spec/app/views/haml/url_field_tag_tag.haml +1 -0
  549. data/spec/app/views/haml/url_field_tag_with_append.haml +1 -0
  550. data/spec/app/views/haml/url_field_tag_with_error.haml +1 -0
  551. data/spec/app/views/haml/url_field_tag_with_help_block.haml +1 -0
  552. data/spec/app/views/haml/url_field_tag_with_help_inline.haml +1 -0
  553. data/spec/app/views/haml/url_field_tag_with_info.haml +1 -0
  554. data/spec/app/views/haml/url_field_tag_with_prepend.haml +1 -0
  555. data/spec/app/views/haml/url_field_tag_with_prepend_append_and_help_inline.haml +1 -0
  556. data/spec/app/views/haml/url_field_tag_with_success.haml +1 -0
  557. data/spec/app/views/haml/url_field_tag_with_warning.haml +1 -0
  558. data/spec/app/views/haml/url_field_with_append.haml +1 -0
  559. data/spec/app/views/haml/url_field_with_error.haml +1 -0
  560. data/spec/app/views/haml/url_field_with_help_block.haml +1 -0
  561. data/spec/app/views/haml/url_field_with_help_inline.haml +1 -0
  562. data/spec/app/views/haml/url_field_with_info.haml +1 -0
  563. data/spec/app/views/haml/url_field_with_prepend.haml +1 -0
  564. data/spec/app/views/haml/url_field_with_prepend_append_and_help_inline.haml +1 -0
  565. data/spec/app/views/haml/url_field_with_success.haml +1 -0
  566. data/spec/app/views/haml/url_field_with_warning.haml +1 -0
  567. data/spec/app/views/slim/bootstrap_actions.slim +1 -0
  568. data/spec/app/views/slim/bootstrap_actions_with_block.slim +2 -0
  569. data/spec/app/views/slim/check_box.slim +1 -0
  570. data/spec/app/views/slim/check_box_tag.slim +1 -0
  571. data/spec/app/views/slim/check_box_tag_with_append.slim +1 -0
  572. data/spec/app/views/slim/check_box_tag_with_error.slim +1 -0
  573. data/spec/app/views/slim/check_box_tag_with_help_block.slim +1 -0
  574. data/spec/app/views/slim/check_box_tag_with_help_inline.slim +1 -0
  575. data/spec/app/views/slim/check_box_tag_with_info.slim +1 -0
  576. data/spec/app/views/slim/check_box_tag_with_prepend.slim +1 -0
  577. data/spec/app/views/slim/check_box_tag_with_prepend_append_and_help_inline.slim +1 -0
  578. data/spec/app/views/slim/check_box_tag_with_success.slim +1 -0
  579. data/spec/app/views/slim/check_box_tag_with_warning.slim +1 -0
  580. data/spec/app/views/slim/check_box_with_append.slim +1 -0
  581. data/spec/app/views/slim/check_box_with_error.slim +1 -0
  582. data/spec/app/views/slim/check_box_with_help_block.slim +1 -0
  583. data/spec/app/views/slim/check_box_with_help_inline.slim +1 -0
  584. data/spec/app/views/slim/check_box_with_info.slim +1 -0
  585. data/spec/app/views/slim/check_box_with_success.slim +1 -0
  586. data/spec/app/views/slim/check_box_with_warning.slim +1 -0
  587. data/spec/app/views/slim/collection_check_boxes.slim +1 -0
  588. data/spec/app/views/slim/collection_check_boxes_with_checked.slim +2 -0
  589. data/spec/app/views/slim/collection_check_boxes_with_help_block.slim +1 -0
  590. data/spec/app/views/slim/collection_radio_buttons.slim +1 -0
  591. data/spec/app/views/slim/collection_radio_buttons_with_checked.slim +2 -0
  592. data/spec/app/views/slim/email_field.slim +1 -0
  593. data/spec/app/views/slim/email_field_tag.slim +1 -0
  594. data/spec/app/views/slim/email_field_tag_tag.slim +1 -0
  595. data/spec/app/views/slim/email_field_tag_with_append.slim +1 -0
  596. data/spec/app/views/slim/email_field_tag_with_error.slim +1 -0
  597. data/spec/app/views/slim/email_field_tag_with_help_block.slim +1 -0
  598. data/spec/app/views/slim/email_field_tag_with_help_inline.slim +1 -0
  599. data/spec/app/views/slim/email_field_tag_with_info.slim +1 -0
  600. data/spec/app/views/slim/email_field_tag_with_prepend.slim +1 -0
  601. data/spec/app/views/slim/email_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  602. data/spec/app/views/slim/email_field_tag_with_success.slim +1 -0
  603. data/spec/app/views/slim/email_field_tag_with_warning.slim +1 -0
  604. data/spec/app/views/slim/email_field_with_append.slim +1 -0
  605. data/spec/app/views/slim/email_field_with_error.slim +1 -0
  606. data/spec/app/views/slim/email_field_with_help_block.slim +1 -0
  607. data/spec/app/views/slim/email_field_with_help_inline.slim +1 -0
  608. data/spec/app/views/slim/email_field_with_info.slim +1 -0
  609. data/spec/app/views/slim/email_field_with_prepend.slim +1 -0
  610. data/spec/app/views/slim/email_field_with_prepend_append_and_help_inline.slim +1 -0
  611. data/spec/app/views/slim/email_field_with_success.slim +1 -0
  612. data/spec/app/views/slim/email_field_with_warning.slim +1 -0
  613. data/spec/app/views/slim/file_field.slim +1 -0
  614. data/spec/app/views/slim/file_field_tag.slim +1 -0
  615. data/spec/app/views/slim/file_field_tag_tag.slim +1 -0
  616. data/spec/app/views/slim/file_field_tag_with_append.slim +1 -0
  617. data/spec/app/views/slim/file_field_tag_with_error.slim +1 -0
  618. data/spec/app/views/slim/file_field_tag_with_help_block.slim +1 -0
  619. data/spec/app/views/slim/file_field_tag_with_help_inline.slim +1 -0
  620. data/spec/app/views/slim/file_field_tag_with_info.slim +1 -0
  621. data/spec/app/views/slim/file_field_tag_with_prepend.slim +1 -0
  622. data/spec/app/views/slim/file_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  623. data/spec/app/views/slim/file_field_tag_with_success.slim +1 -0
  624. data/spec/app/views/slim/file_field_tag_with_warning.slim +1 -0
  625. data/spec/app/views/slim/file_field_with_append.slim +1 -0
  626. data/spec/app/views/slim/file_field_with_error.slim +1 -0
  627. data/spec/app/views/slim/file_field_with_help_block.slim +1 -0
  628. data/spec/app/views/slim/file_field_with_help_inline.slim +1 -0
  629. data/spec/app/views/slim/file_field_with_info.slim +1 -0
  630. data/spec/app/views/slim/file_field_with_prepend.slim +1 -0
  631. data/spec/app/views/slim/file_field_with_prepend_append_and_help_inline.slim +1 -0
  632. data/spec/app/views/slim/file_field_with_success.slim +1 -0
  633. data/spec/app/views/slim/file_field_with_warning.slim +1 -0
  634. data/spec/app/views/slim/label_tag.slim +2 -0
  635. data/spec/app/views/slim/number_field.slim +1 -0
  636. data/spec/app/views/slim/number_field_tag.slim +1 -0
  637. data/spec/app/views/slim/number_field_tag_tag.slim +1 -0
  638. data/spec/app/views/slim/number_field_tag_with_append.slim +1 -0
  639. data/spec/app/views/slim/number_field_tag_with_error.slim +1 -0
  640. data/spec/app/views/slim/number_field_tag_with_help_block.slim +1 -0
  641. data/spec/app/views/slim/number_field_tag_with_help_inline.slim +1 -0
  642. data/spec/app/views/slim/number_field_tag_with_info.slim +1 -0
  643. data/spec/app/views/slim/number_field_tag_with_prepend.slim +1 -0
  644. data/spec/app/views/slim/number_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  645. data/spec/app/views/slim/number_field_tag_with_success.slim +1 -0
  646. data/spec/app/views/slim/number_field_tag_with_warning.slim +1 -0
  647. data/spec/app/views/slim/number_field_with_append.slim +1 -0
  648. data/spec/app/views/slim/number_field_with_error.slim +1 -0
  649. data/spec/app/views/slim/number_field_with_help_block.slim +1 -0
  650. data/spec/app/views/slim/number_field_with_help_inline.slim +1 -0
  651. data/spec/app/views/slim/number_field_with_info.slim +1 -0
  652. data/spec/app/views/slim/number_field_with_prepend.slim +1 -0
  653. data/spec/app/views/slim/number_field_with_prepend_append_and_help_inline.slim +1 -0
  654. data/spec/app/views/slim/number_field_with_success.slim +1 -0
  655. data/spec/app/views/slim/number_field_with_warning.slim +1 -0
  656. data/spec/app/views/slim/password_field.slim +1 -0
  657. data/spec/app/views/slim/password_field_tag.slim +1 -0
  658. data/spec/app/views/slim/password_field_tag_tag.slim +1 -0
  659. data/spec/app/views/slim/password_field_tag_with_append.slim +1 -0
  660. data/spec/app/views/slim/password_field_tag_with_error.slim +1 -0
  661. data/spec/app/views/slim/password_field_tag_with_help_block.slim +1 -0
  662. data/spec/app/views/slim/password_field_tag_with_help_inline.slim +1 -0
  663. data/spec/app/views/slim/password_field_tag_with_info.slim +1 -0
  664. data/spec/app/views/slim/password_field_tag_with_prepend.slim +1 -0
  665. data/spec/app/views/slim/password_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  666. data/spec/app/views/slim/password_field_tag_with_success.slim +1 -0
  667. data/spec/app/views/slim/password_field_tag_with_warning.slim +1 -0
  668. data/spec/app/views/slim/password_field_with_append.slim +1 -0
  669. data/spec/app/views/slim/password_field_with_error.slim +1 -0
  670. data/spec/app/views/slim/password_field_with_help_block.slim +1 -0
  671. data/spec/app/views/slim/password_field_with_help_inline.slim +1 -0
  672. data/spec/app/views/slim/password_field_with_info.slim +1 -0
  673. data/spec/app/views/slim/password_field_with_prepend.slim +1 -0
  674. data/spec/app/views/slim/password_field_with_prepend_append_and_help_inline.slim +1 -0
  675. data/spec/app/views/slim/password_field_with_success.slim +1 -0
  676. data/spec/app/views/slim/password_field_with_warning.slim +1 -0
  677. data/spec/app/views/slim/phone_field.slim +1 -0
  678. data/spec/app/views/slim/phone_field_tag.slim +1 -0
  679. data/spec/app/views/slim/phone_field_tag_tag.slim +1 -0
  680. data/spec/app/views/slim/phone_field_tag_with_append.slim +1 -0
  681. data/spec/app/views/slim/phone_field_tag_with_error.slim +1 -0
  682. data/spec/app/views/slim/phone_field_tag_with_help_block.slim +1 -0
  683. data/spec/app/views/slim/phone_field_tag_with_help_inline.slim +1 -0
  684. data/spec/app/views/slim/phone_field_tag_with_info.slim +1 -0
  685. data/spec/app/views/slim/phone_field_tag_with_prepend.slim +1 -0
  686. data/spec/app/views/slim/phone_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  687. data/spec/app/views/slim/phone_field_tag_with_success.slim +1 -0
  688. data/spec/app/views/slim/phone_field_tag_with_warning.slim +1 -0
  689. data/spec/app/views/slim/phone_field_with_append.slim +1 -0
  690. data/spec/app/views/slim/phone_field_with_error.slim +1 -0
  691. data/spec/app/views/slim/phone_field_with_help_block.slim +1 -0
  692. data/spec/app/views/slim/phone_field_with_help_inline.slim +1 -0
  693. data/spec/app/views/slim/phone_field_with_info.slim +1 -0
  694. data/spec/app/views/slim/phone_field_with_prepend.slim +1 -0
  695. data/spec/app/views/slim/phone_field_with_prepend_append_and_help_inline.slim +1 -0
  696. data/spec/app/views/slim/phone_field_with_success.slim +1 -0
  697. data/spec/app/views/slim/phone_field_with_warning.slim +1 -0
  698. data/spec/app/views/slim/radio_buttons.slim +1 -0
  699. data/spec/app/views/slim/radio_buttons_with_error.slim +1 -0
  700. data/spec/app/views/slim/search_field.slim +1 -0
  701. data/spec/app/views/slim/search_field_tag.slim +1 -0
  702. data/spec/app/views/slim/search_field_tag_tag.slim +1 -0
  703. data/spec/app/views/slim/search_field_tag_with_append.slim +1 -0
  704. data/spec/app/views/slim/search_field_tag_with_error.slim +1 -0
  705. data/spec/app/views/slim/search_field_tag_with_help_block.slim +1 -0
  706. data/spec/app/views/slim/search_field_tag_with_help_inline.slim +1 -0
  707. data/spec/app/views/slim/search_field_tag_with_info.slim +1 -0
  708. data/spec/app/views/slim/search_field_tag_with_prepend.slim +1 -0
  709. data/spec/app/views/slim/search_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  710. data/spec/app/views/slim/search_field_tag_with_success.slim +1 -0
  711. data/spec/app/views/slim/search_field_tag_with_warning.slim +1 -0
  712. data/spec/app/views/slim/search_field_with_append.slim +1 -0
  713. data/spec/app/views/slim/search_field_with_error.slim +1 -0
  714. data/spec/app/views/slim/search_field_with_help_block.slim +1 -0
  715. data/spec/app/views/slim/search_field_with_help_inline.slim +1 -0
  716. data/spec/app/views/slim/search_field_with_info.slim +1 -0
  717. data/spec/app/views/slim/search_field_with_prepend.slim +1 -0
  718. data/spec/app/views/slim/search_field_with_prepend_append_and_help_inline.slim +1 -0
  719. data/spec/app/views/slim/search_field_with_success.slim +1 -0
  720. data/spec/app/views/slim/search_field_with_warning.slim +1 -0
  721. data/spec/app/views/slim/select.slim +1 -0
  722. data/spec/app/views/slim/select_tag.slim +1 -0
  723. data/spec/app/views/slim/select_tag_with_append.slim +1 -0
  724. data/spec/app/views/slim/select_tag_with_error.slim +1 -0
  725. data/spec/app/views/slim/select_tag_with_help_block.slim +1 -0
  726. data/spec/app/views/slim/select_tag_with_help_inline.slim +1 -0
  727. data/spec/app/views/slim/select_tag_with_info.slim +1 -0
  728. data/spec/app/views/slim/select_tag_with_prepend.slim +1 -0
  729. data/spec/app/views/slim/select_tag_with_prepend_append_and_help_inline.slim +1 -0
  730. data/spec/app/views/slim/select_tag_with_success.slim +1 -0
  731. data/spec/app/views/slim/select_tag_with_warning.slim +1 -0
  732. data/spec/app/views/slim/select_with_append.slim +1 -0
  733. data/spec/app/views/slim/select_with_error.slim +1 -0
  734. data/spec/app/views/slim/select_with_help_block.slim +1 -0
  735. data/spec/app/views/slim/select_with_help_inline.slim +1 -0
  736. data/spec/app/views/slim/select_with_info.slim +1 -0
  737. data/spec/app/views/slim/select_with_prepend.slim +1 -0
  738. data/spec/app/views/slim/select_with_prepend_append_and_help_inline.slim +1 -0
  739. data/spec/app/views/slim/select_with_success.slim +1 -0
  740. data/spec/app/views/slim/select_with_warning.slim +1 -0
  741. data/spec/app/views/slim/telephone_field.slim +1 -0
  742. data/spec/app/views/slim/telephone_field_tag.slim +1 -0
  743. data/spec/app/views/slim/telephone_field_tag_tag.slim +1 -0
  744. data/spec/app/views/slim/telephone_field_tag_with_append.slim +1 -0
  745. data/spec/app/views/slim/telephone_field_tag_with_error.slim +1 -0
  746. data/spec/app/views/slim/telephone_field_tag_with_help_block.slim +1 -0
  747. data/spec/app/views/slim/telephone_field_tag_with_help_inline.slim +1 -0
  748. data/spec/app/views/slim/telephone_field_tag_with_info.slim +1 -0
  749. data/spec/app/views/slim/telephone_field_tag_with_prepend.slim +1 -0
  750. data/spec/app/views/slim/telephone_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  751. data/spec/app/views/slim/telephone_field_tag_with_success.slim +1 -0
  752. data/spec/app/views/slim/telephone_field_tag_with_warning.slim +1 -0
  753. data/spec/app/views/slim/telephone_field_with_append.slim +1 -0
  754. data/spec/app/views/slim/telephone_field_with_error.slim +1 -0
  755. data/spec/app/views/slim/telephone_field_with_help_block.slim +1 -0
  756. data/spec/app/views/slim/telephone_field_with_help_inline.slim +1 -0
  757. data/spec/app/views/slim/telephone_field_with_info.slim +1 -0
  758. data/spec/app/views/slim/telephone_field_with_prepend.slim +1 -0
  759. data/spec/app/views/slim/telephone_field_with_prepend_append_and_help_inline.slim +1 -0
  760. data/spec/app/views/slim/telephone_field_with_success.slim +1 -0
  761. data/spec/app/views/slim/telephone_field_with_warning.slim +1 -0
  762. data/spec/app/views/slim/text_area.slim +1 -0
  763. data/spec/app/views/slim/text_area_field.slim +1 -0
  764. data/spec/app/views/slim/text_area_field_with_append.slim +1 -0
  765. data/spec/app/views/slim/text_area_field_with_error.slim +1 -0
  766. data/spec/app/views/slim/text_area_field_with_help_block.slim +1 -0
  767. data/spec/app/views/slim/text_area_field_with_help_inline.slim +1 -0
  768. data/spec/app/views/slim/text_area_field_with_info.slim +1 -0
  769. data/spec/app/views/slim/text_area_field_with_prepend.slim +1 -0
  770. data/spec/app/views/slim/text_area_field_with_prepend_append_and_help_inline.slim +1 -0
  771. data/spec/app/views/slim/text_area_field_with_success.slim +1 -0
  772. data/spec/app/views/slim/text_area_field_with_warning.slim +1 -0
  773. data/spec/app/views/slim/text_area_tag.slim +1 -0
  774. data/spec/app/views/slim/text_area_tag_tag.slim +1 -0
  775. data/spec/app/views/slim/text_area_tag_with_append.slim +1 -0
  776. data/spec/app/views/slim/text_area_tag_with_error.slim +1 -0
  777. data/spec/app/views/slim/text_area_tag_with_help_block.slim +1 -0
  778. data/spec/app/views/slim/text_area_tag_with_help_inline.slim +1 -0
  779. data/spec/app/views/slim/text_area_tag_with_info.slim +1 -0
  780. data/spec/app/views/slim/text_area_tag_with_prepend.slim +1 -0
  781. data/spec/app/views/slim/text_area_tag_with_prepend_append_and_help_inline.slim +1 -0
  782. data/spec/app/views/slim/text_area_tag_with_success.slim +1 -0
  783. data/spec/app/views/slim/text_area_tag_with_warning.slim +1 -0
  784. data/spec/app/views/slim/text_area_with_append.slim +1 -0
  785. data/spec/app/views/slim/text_area_with_error.slim +1 -0
  786. data/spec/app/views/slim/text_area_with_help_block.slim +1 -0
  787. data/spec/app/views/slim/text_area_with_help_inline.slim +1 -0
  788. data/spec/app/views/slim/text_area_with_info.slim +1 -0
  789. data/spec/app/views/slim/text_area_with_prepend.slim +1 -0
  790. data/spec/app/views/slim/text_area_with_prepend_append_and_help_inline.slim +1 -0
  791. data/spec/app/views/slim/text_area_with_success.slim +1 -0
  792. data/spec/app/views/slim/text_area_with_warning.slim +1 -0
  793. data/spec/app/views/slim/text_field.slim +1 -0
  794. data/spec/app/views/slim/text_field_tag.slim +1 -0
  795. data/spec/app/views/slim/text_field_tag_tag.slim +1 -0
  796. data/spec/app/views/slim/text_field_tag_with_append.slim +1 -0
  797. data/spec/app/views/slim/text_field_tag_with_error.slim +1 -0
  798. data/spec/app/views/slim/text_field_tag_with_help_block.slim +1 -0
  799. data/spec/app/views/slim/text_field_tag_with_help_inline.slim +1 -0
  800. data/spec/app/views/slim/text_field_tag_with_info.slim +1 -0
  801. data/spec/app/views/slim/text_field_tag_with_prepend.slim +1 -0
  802. data/spec/app/views/slim/text_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  803. data/spec/app/views/slim/text_field_tag_with_success.slim +1 -0
  804. data/spec/app/views/slim/text_field_tag_with_warning.slim +1 -0
  805. data/spec/app/views/slim/text_field_with_append.slim +1 -0
  806. data/spec/app/views/slim/text_field_with_error.slim +1 -0
  807. data/spec/app/views/slim/text_field_with_help_block.slim +1 -0
  808. data/spec/app/views/slim/text_field_with_help_inline.slim +1 -0
  809. data/spec/app/views/slim/text_field_with_info.slim +1 -0
  810. data/spec/app/views/slim/text_field_with_prepend.slim +1 -0
  811. data/spec/app/views/slim/text_field_with_prepend_append_and_help_inline.slim +1 -0
  812. data/spec/app/views/slim/text_field_with_success.slim +1 -0
  813. data/spec/app/views/slim/text_field_with_warning.slim +1 -0
  814. data/spec/app/views/slim/uneditable_input.slim +1 -0
  815. data/spec/app/views/slim/uneditable_input_tag.slim +1 -0
  816. data/spec/app/views/slim/uneditable_input_tag_with_append.slim +1 -0
  817. data/spec/app/views/slim/uneditable_input_tag_with_error.slim +1 -0
  818. data/spec/app/views/slim/uneditable_input_tag_with_help_block.slim +1 -0
  819. data/spec/app/views/slim/uneditable_input_tag_with_help_inline.slim +1 -0
  820. data/spec/app/views/slim/uneditable_input_tag_with_info.slim +1 -0
  821. data/spec/app/views/slim/uneditable_input_tag_with_prepend.slim +1 -0
  822. data/spec/app/views/slim/uneditable_input_tag_with_prepend_append_and_help_inline.slim +1 -0
  823. data/spec/app/views/slim/uneditable_input_tag_with_success.slim +1 -0
  824. data/spec/app/views/slim/uneditable_input_tag_with_warning.slim +1 -0
  825. data/spec/app/views/slim/uneditable_input_with_append.slim +1 -0
  826. data/spec/app/views/slim/uneditable_input_with_error.slim +1 -0
  827. data/spec/app/views/slim/uneditable_input_with_help_block.slim +1 -0
  828. data/spec/app/views/slim/uneditable_input_with_help_inline.slim +1 -0
  829. data/spec/app/views/slim/uneditable_input_with_info.slim +1 -0
  830. data/spec/app/views/slim/uneditable_input_with_prepend.slim +1 -0
  831. data/spec/app/views/slim/uneditable_input_with_prepend_append_and_help_inline.slim +1 -0
  832. data/spec/app/views/slim/uneditable_input_with_success.slim +1 -0
  833. data/spec/app/views/slim/uneditable_input_with_warning.slim +1 -0
  834. data/spec/app/views/slim/url_field.slim +1 -0
  835. data/spec/app/views/slim/url_field_tag.slim +1 -0
  836. data/spec/app/views/slim/url_field_tag_tag.slim +1 -0
  837. data/spec/app/views/slim/url_field_tag_with_append.slim +1 -0
  838. data/spec/app/views/slim/url_field_tag_with_error.slim +1 -0
  839. data/spec/app/views/slim/url_field_tag_with_help_block.slim +1 -0
  840. data/spec/app/views/slim/url_field_tag_with_help_inline.slim +1 -0
  841. data/spec/app/views/slim/url_field_tag_with_info.slim +1 -0
  842. data/spec/app/views/slim/url_field_tag_with_prepend.slim +1 -0
  843. data/spec/app/views/slim/url_field_tag_with_prepend_append_and_help_inline.slim +1 -0
  844. data/spec/app/views/slim/url_field_tag_with_success.slim +1 -0
  845. data/spec/app/views/slim/url_field_tag_with_warning.slim +1 -0
  846. data/spec/app/views/slim/url_field_with_append.slim +1 -0
  847. data/spec/app/views/slim/url_field_with_error.slim +1 -0
  848. data/spec/app/views/slim/url_field_with_help_block.slim +1 -0
  849. data/spec/app/views/slim/url_field_with_help_inline.slim +1 -0
  850. data/spec/app/views/slim/url_field_with_info.slim +1 -0
  851. data/spec/app/views/slim/url_field_with_prepend.slim +1 -0
  852. data/spec/app/views/slim/url_field_with_prepend_append_and_help_inline.slim +1 -0
  853. data/spec/app/views/slim/url_field_with_success.slim +1 -0
  854. data/spec/app/views/slim/url_field_with_warning.slim +1 -0
  855. data/spec/bootstrap_forms_spec.rb +25 -0
  856. data/spec/spec_helper.rb +95 -22
  857. data/spec/support/a_form_field.rb +15 -0
  858. data/spec/support/form_builder.rb +166 -0
  859. data/spec/support/form_tag_helpers.rb +87 -0
  860. metadata +1768 -32
  861. data/spec/lib/bootstrap_forms/form_builder_spec.rb +0 -218
  862. 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