webroar 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1735) hide show
  1. data/Rakefile +1 -1
  2. data/bin/webroar +2 -1
  3. data/bin/webroar-analyzer +1 -1
  4. data/conf/mime_type.yml +165 -0
  5. data/doc/user-guide.html +37 -17
  6. data/doc/user-guide.txt +11 -6
  7. data/lib/command_runner.rb +1 -1
  8. data/lib/constant.rb +1 -1
  9. data/lib/dependencies.rb +1 -1
  10. data/lib/installer.rb +118 -162
  11. data/lib/user_interaction.rb +132 -0
  12. data/lib/webroar_command.rb +1 -1
  13. data/src/admin_panel/app/controllers/admin_controller.rb +1 -1
  14. data/src/admin_panel/app/controllers/application_controller.rb +1 -1
  15. data/src/admin_panel/app/controllers/application_specification_controller.rb +49 -45
  16. data/src/admin_panel/app/controllers/exceptions_controller.rb +1 -1
  17. data/src/admin_panel/app/controllers/graph_controller.rb +116 -22
  18. data/src/admin_panel/app/controllers/mail_specification_controller.rb +11 -107
  19. data/src/admin_panel/app/controllers/server_specification_controller.rb +6 -8
  20. data/src/admin_panel/app/helpers/admin_helper.rb +8 -7
  21. data/src/admin_panel/app/helpers/application_helper.rb +1 -39
  22. data/src/admin_panel/app/helpers/exceptions_helper.rb +1 -1
  23. data/src/admin_panel/app/helpers/graph_helper.rb +1 -1
  24. data/src/admin_panel/app/models/app.rb +39 -3
  25. data/src/admin_panel/app/models/app_exception.rb +1 -1
  26. data/src/admin_panel/app/models/app_time_sample.rb +2 -2
  27. data/src/admin_panel/app/models/application_specification.rb +34 -10
  28. data/src/admin_panel/app/models/mail_specification.rb +139 -0
  29. data/src/admin_panel/app/models/pseudo_model.rb +1 -1
  30. data/src/admin_panel/app/models/resource_usage.rb +3 -3
  31. data/src/admin_panel/app/models/server_specification.rb +5 -5
  32. data/src/admin_panel/app/models/url_breakup_time_sample.rb +1 -1
  33. data/src/admin_panel/app/models/url_time_sample.rb +6 -6
  34. data/src/admin_panel/app/models/user.rb +1 -1
  35. data/src/admin_panel/app/views/admin/_add_div.html.erb +1 -1
  36. data/src/admin_panel/app/views/admin/_application_table.html.erb +1 -1
  37. data/src/admin_panel/app/views/admin/change_password_form.html.erb +1 -1
  38. data/src/admin_panel/app/views/admin/configuration.html.erb +1 -8
  39. data/src/admin_panel/app/views/admin/home.html.erb +1 -1
  40. data/src/admin_panel/app/views/admin/index.html.erb +1 -1
  41. data/src/admin_panel/app/views/application_specification/{_application_form.html.erb → _application_specification_form.html.erb} +29 -29
  42. data/src/admin_panel/app/views/application_specification/add_application_form.html.erb +3 -3
  43. data/src/admin_panel/app/views/application_specification/edit_application_form.html.erb +3 -3
  44. data/src/admin_panel/app/views/exceptions/_close_exception_list_partial.html.erb +1 -1
  45. data/src/admin_panel/app/views/exceptions/_exception_list_partial.html.erb +1 -1
  46. data/src/admin_panel/app/views/exceptions/_exceptions_listing_partial.html.erb +1 -1
  47. data/src/admin_panel/app/views/exceptions/_ignored_exception_list_partial.html.erb +1 -1
  48. data/src/admin_panel/app/views/exceptions/_link_partial.html.erb +1 -1
  49. data/src/admin_panel/app/views/exceptions/_show.html.erb +1 -1
  50. data/src/admin_panel/app/views/exceptions/index.html.erb +2 -2
  51. data/src/admin_panel/app/views/graph/_database_usage_graph.html.erb +1 -1
  52. data/src/admin_panel/app/views/graph/_get_database_data.html.erb +1 -1
  53. data/src/admin_panel/app/views/graph/_get_resource_usage_data_app.html.erb +1 -1
  54. data/src/admin_panel/app/views/graph/_get_resource_usage_data_server.html.erb +1 -1
  55. data/src/admin_panel/app/views/graph/_get_throughput_data.html.erb +1 -1
  56. data/src/admin_panel/app/views/graph/_get_url_breakup_data.html.erb +1 -1
  57. data/src/admin_panel/app/views/graph/_get_url_data.html.erb +1 -1
  58. data/src/admin_panel/app/views/graph/_graph_page.html.erb +1 -1
  59. data/src/admin_panel/app/views/graph/_javascript_partial.html.erb +21 -0
  60. data/src/admin_panel/app/views/graph/_pie.html.erb +1 -1
  61. data/src/admin_panel/app/views/graph/_query_date.html.erb +1 -1
  62. data/src/admin_panel/app/views/graph/_query_period.html.erb +1 -1
  63. data/src/admin_panel/app/views/graph/_resource_usage_graph_app.html.erb +1 -1
  64. data/src/admin_panel/app/views/graph/_resource_usage_graph_server.html.erb +1 -1
  65. data/src/admin_panel/app/views/graph/_slider_partial.html.erb +20 -0
  66. data/src/admin_panel/app/views/graph/_throughput_graph.html.erb +1 -1
  67. data/src/admin_panel/app/views/graph/_url_breakup_graph.html.erb +1 -1
  68. data/src/admin_panel/app/views/graph/_url_calls_graph.html.erb +1 -1
  69. data/src/admin_panel/app/views/graph/index.html.erb +1 -1
  70. data/src/admin_panel/app/views/layouts/application.html.erb +27 -25
  71. data/src/admin_panel/app/views/layouts/index.html.erb +2 -2
  72. data/src/admin_panel/app/views/mail_specification/_sendmail_form.html.erb +1 -1
  73. data/src/admin_panel/app/views/mail_specification/_smtp_form.html.erb +1 -1
  74. data/src/admin_panel/app/views/server_specification/_ssl_support_form.html.erb +1 -1
  75. data/src/admin_panel/config/environment.rb +2 -1
  76. data/src/admin_panel/config/initializers/application_constants.rb +5 -2
  77. data/src/admin_panel/config/initializers/ssl.rb +1 -1
  78. data/src/admin_panel/db/migrate/20081020052652_create_apps.rb +1 -1
  79. data/src/admin_panel/db/migrate/20081020052934_create_resource_usages.rb +1 -1
  80. data/src/admin_panel/db/migrate/20081020053129_create_app_time_samples.rb +1 -1
  81. data/src/admin_panel/db/migrate/20081020053411_create_url_time_samples.rb +1 -1
  82. data/src/admin_panel/db/migrate/20081020053624_create_url_breakup_time_samples.rb +1 -1
  83. data/src/admin_panel/db/migrate/20081021005144_add_constraints.rb +1 -1
  84. data/src/admin_panel/db/migrate/20090407052622_create_app_exceptions.rb +1 -1
  85. data/src/admin_panel/lib/asset_tag_helper_ext.rb +18 -0
  86. data/src/admin_panel/lib/control.rb +1 -1
  87. data/src/admin_panel/lib/graph_controller_extensions/database_analytics.rb +1 -1
  88. data/src/admin_panel/lib/graph_controller_extensions/resource_usage_analytics.rb +1 -1
  89. data/src/admin_panel/lib/graph_controller_extensions/throughput_analytics.rb +1 -1
  90. data/src/admin_panel/lib/graph_controller_extensions/url_analytics.rb +9 -5
  91. data/src/admin_panel/lib/graph_controller_extensions/url_breakup_analytics.rb +20 -14
  92. data/src/admin_panel/lib/scgi.rb +1 -1
  93. data/src/admin_panel/lib/yaml_writer.rb +34 -21
  94. data/src/admin_panel/public/favicon.ico +0 -0
  95. data/src/admin_panel/public/images/close.gif +0 -0
  96. data/src/admin_panel/public/images/external.gif +0 -0
  97. data/src/admin_panel/public/javascripts/application.js +17 -17
  98. data/src/admin_panel/public/javascripts/swfobject.js +4 -4
  99. data/src/admin_panel/public/open-flash-chart.swf +0 -0
  100. data/src/admin_panel/public/stylesheets/netscape/login.css +1 -1
  101. data/src/admin_panel/public/stylesheets/netscape/style.css +96 -101
  102. data/src/admin_panel/public/stylesheets/other/login.css +1 -1
  103. data/src/admin_panel/public/stylesheets/other/style.css +97 -100
  104. data/src/admin_panel/public/stylesheets/safari/login.css +1 -1
  105. data/src/admin_panel/public/stylesheets/safari/style.css +97 -101
  106. data/src/admin_panel/test/functional/admin_controller_test.rb +10 -10
  107. data/src/admin_panel/test/functional/application_specification_controller_test.rb +7 -5
  108. data/src/admin_panel/test/functional/exceptions_controller_test.rb +2 -1
  109. data/src/admin_panel/test/functional/graph_controller_test.rb +3 -3
  110. data/src/admin_panel/test/test_helper.rb +1 -1
  111. data/src/admin_panel/test/unit/app_exception_test.rb +2 -1
  112. data/src/admin_panel/test/unit/app_test.rb +5 -4
  113. data/src/admin_panel/test/unit/app_time_sample_test.rb +4 -2
  114. data/src/admin_panel/test/unit/helpers/exceptions_helper_test.rb +1 -1
  115. data/src/admin_panel/test/unit/resource_usage_test.rb +6 -2
  116. data/src/admin_panel/test/unit/url_breakup_time_sample_test.rb +1 -1
  117. data/src/admin_panel/test/unit/url_time_sample_test.rb +3 -2
  118. data/src/admin_panel/vendor/plugins/open_flash_chart_2/CHANGES +29 -0
  119. data/src/admin_panel/vendor/plugins/open_flash_chart_2/MIT-LICENSE +0 -2
  120. data/src/admin_panel/vendor/plugins/open_flash_chart_2/README +6 -56
  121. data/src/admin_panel/vendor/plugins/open_flash_chart_2/TODO +2 -7
  122. data/src/admin_panel/vendor/plugins/open_flash_chart_2/install.rb +1 -1
  123. data/src/admin_panel/vendor/plugins/open_flash_chart_2/lib/open_flash_chart_2.rb +242 -513
  124. data/src/admin_panel/vendor/plugins/open_flash_chart_2/requirements/VERSION.txt +2 -0
  125. data/src/admin_panel/vendor/plugins/open_flash_chart_2/requirements/open-flash-chart.swf +0 -0
  126. data/src/admin_panel/vendor/plugins/open_flash_chart_2/requirements/swfobject.js +4 -4
  127. data/src/admin_panel/vendor/plugins/open_flash_chart_2/tasks/open_flash_chart_tasks.rake +14 -6
  128. data/src/head/wr_access_log.c +6 -6
  129. data/src/head/wr_access_log.h +1 -1
  130. data/src/head/wr_application.c +57 -23
  131. data/src/head/wr_application.h +1 -1
  132. data/src/head/wr_config.h +28 -3
  133. data/src/head/wr_configurator.c +61 -7
  134. data/src/head/wr_configurator.h +4 -3
  135. data/src/head/wr_connection.c +23 -19
  136. data/src/head/wr_connection.h +4 -3
  137. data/src/head/wr_controller.c +38 -191
  138. data/src/head/wr_controller.h +4 -4
  139. data/src/head/wr_main.c +87 -5
  140. data/src/head/wr_request.c +172 -156
  141. data/src/head/wr_request.h +4 -13
  142. data/src/head/wr_resolver.c +58 -7
  143. data/src/head/wr_resolver.h +1 -1
  144. data/src/head/wr_server.c +7 -1
  145. data/src/head/wr_server.h +2 -1
  146. data/src/head/wr_worker.c +66 -60
  147. data/src/head/wr_worker.h +1 -1
  148. data/src/helper/wr_helper.h +2 -1
  149. data/src/helper/wr_logger.c +9 -1
  150. data/src/helper/wr_logger.h +2 -1
  151. data/src/helper/wr_macro.h +3 -1
  152. data/src/helper/wr_msg_queue_client.c +129 -0
  153. data/src/helper/wr_msg_queue_client.h +44 -0
  154. data/src/helper/wr_queue.c +1 -1
  155. data/src/helper/wr_queue.h +1 -1
  156. data/src/helper/wr_scgi.c +291 -261
  157. data/src/helper/wr_scgi.h +42 -54
  158. data/src/helper/wr_string.c +53 -1
  159. data/src/helper/wr_string.h +30 -12
  160. data/src/helper/wr_util.c +80 -1
  161. data/src/helper/wr_util.h +17 -1
  162. data/src/helper/wr_yaml_parser.c +1 -1
  163. data/src/helper/wr_yaml_parser.h +1 -1
  164. data/src/ruby_lib/analyzer/db_connect.rb +8 -5
  165. data/src/ruby_lib/analyzer/logger.rb +3 -2
  166. data/src/ruby_lib/analyzer/message_analyzer.rb +8 -15
  167. data/src/ruby_lib/analyzer/message_reader.rb +4 -3
  168. data/src/ruby_lib/analyzer/process_helper.rb +1 -1
  169. data/src/ruby_lib/analyzer/resources_analyzer.rb +21 -5
  170. data/src/ruby_lib/analyzer/user_defined_exception.rb +1 -1
  171. data/src/ruby_lib/analyzer/webroar_analyzer.rb +1 -1
  172. data/src/ruby_lib/analyzer/webroar_analyzer_script_runner.rb +10 -9
  173. data/src/ruby_lib/exception_tracker/instrumentation/action_controller.rb +1 -1
  174. data/src/ruby_lib/exception_tracker/instrumentation/instrumentation.rb +1 -1
  175. data/src/ruby_lib/exception_tracker/instrumentation/rails.rb +1 -1
  176. data/src/ruby_lib/exception_tracker/webroar_exception.rb +1 -1
  177. data/src/ruby_lib/mailer/smtpmail.rb +7 -4
  178. data/src/ruby_lib/profiler/instrumentation/action_controller.rb +1 -1
  179. data/src/ruby_lib/profiler/instrumentation/active_record.rb +1 -1
  180. data/src/ruby_lib/profiler/instrumentation/instrumentation.rb +1 -1
  181. data/src/ruby_lib/profiler/instrumentation/rails.rb +1 -1
  182. data/src/ruby_lib/profiler/message_dispatcher.rb +9 -10
  183. data/src/ruby_lib/profiler/webroar_profiling.rb +1 -1
  184. data/src/ruby_lib/rack/adapter/rack.rb +1 -1
  185. data/src/ruby_lib/rack/adapter/rails.rb +2 -2
  186. data/src/ruby_lib/ruby_interface/adapter.rb +1 -1
  187. data/src/ruby_lib/ruby_interface/client.rb +1 -1
  188. data/src/ruby_lib/ruby_interface/constants.rb +1 -1
  189. data/src/ruby_lib/ruby_interface/deflater.rb +9 -0
  190. data/src/ruby_lib/ruby_interface/logger.rb +1 -1
  191. data/src/ruby_lib/ruby_interface/request_body.rb +1 -1
  192. data/src/ruby_lib/ruby_interface/request_handler.rb +1 -1
  193. data/src/ruby_lib/ruby_interface/ruby_interface.rb +1 -1
  194. data/src/ruby_lib/ruby_interface/utils.rb +1 -1
  195. data/src/ruby_lib/ruby_interface/version.rb +2 -2
  196. data/src/ruby_lib/webroar_app_loader.rb +1 -1
  197. data/src/worker/wkr_controller.c +58 -60
  198. data/src/worker/wkr_http.c +48 -27
  199. data/src/worker/wkr_http.h +2 -1
  200. data/src/worker/wkr_http_request.c +29 -29
  201. data/src/worker/wkr_http_request.h +2 -2
  202. data/src/worker/wkr_http_response.c +175 -102
  203. data/src/worker/wkr_http_response.h +10 -4
  204. data/src/worker/wkr_main.c +137 -21
  205. data/src/worker/wkr_static.c +509 -0
  206. data/src/worker/wkr_static.h +40 -0
  207. data/src/worker/worker.c +5 -5
  208. data/src/worker/worker.h +7 -5
  209. data/tasks/compile.rake +10 -6
  210. data/tasks/gem.rake +16 -4
  211. data/tasks/test.rake +6 -2
  212. data/test/spec/access_log_spec.rb +1 -1
  213. data/test/spec/analytics_spec.rb +1 -1
  214. data/test/spec/conditional_spec.rb +1 -1
  215. data/test/spec/connection_keep_alive_spec.rb +1 -1
  216. data/test/spec/content_encoding_spec.rb +1 -1
  217. data/test/spec/heart_beat_spec.rb +1 -1
  218. data/test/spec/host_name_spec.rb +1 -1
  219. data/test/spec/http_request_parser_spec.rb +1 -1
  220. data/test/spec/http_spec.rb +1 -1
  221. data/test/spec/spec_helper.rb +8 -8
  222. data/test/spec/test_app/app/controllers/application_controller.rb +1 -1
  223. data/test/spec/test_app/app/controllers/test_controller.rb +1 -1
  224. data/test/spec/test_app/app/controllers/users_controller.rb +1 -1
  225. data/test/spec/test_app/app/helpers/application_helper.rb +1 -1
  226. data/test/spec/test_app/app/helpers/test_helper.rb +1 -1
  227. data/test/spec/test_app/app/helpers/users_helper.rb +1 -1
  228. data/test/spec/test_app/app/models/user.rb +1 -1
  229. data/test/spec/test_app/app/views/layouts/users.html.erb +1 -1
  230. data/test/spec/test_app/app/views/test/post_data.html.erb +1 -1
  231. data/test/spec/test_app/app/views/test/upload_file.html.erb +1 -1
  232. data/test/spec/test_app/app/views/users/edit.html.erb +1 -1
  233. data/test/spec/test_app/app/views/users/index.html.erb +1 -1
  234. data/test/spec/test_app/app/views/users/new.html.erb +1 -1
  235. data/test/spec/test_app/app/views/users/show.html.erb +1 -1
  236. data/test/spec/test_app/db/migrate/20090602102438_create_users.rb +1 -1
  237. data/test/spec/upload_helper.rb +1 -1
  238. data/test/spec/webroar_command_spec.rb +1 -1
  239. data/test/unit/queue_test.c +1 -1
  240. data/test/unit/scgi_test.c +69 -66
  241. data/test/unit/test.c +1 -1
  242. data/test/unit/test.h +1 -1
  243. data/test/unit/ut_test.c +1 -1
  244. data/test/unit/ut_test.h +1 -1
  245. data/test/unit/util_test.c +1 -1
  246. data/test/unit/yaml_test.c +1 -1
  247. metadata +378 -1847
  248. data/src/admin_panel/public/blank_iframe.html +0 -2
  249. data/src/admin_panel/public/images/calendar_date_select/calendar.gif +0 -0
  250. data/src/admin_panel/public/javascripts/calendar_date_select/calendar_date_select.js +0 -443
  251. data/src/admin_panel/public/javascripts/calendar_date_select/format_american.js +0 -34
  252. data/src/admin_panel/public/javascripts/calendar_date_select/format_db.js +0 -27
  253. data/src/admin_panel/public/javascripts/calendar_date_select/format_euro_24hr.js +0 -7
  254. data/src/admin_panel/public/javascripts/calendar_date_select/format_euro_24hr_ymd.js +0 -7
  255. data/src/admin_panel/public/javascripts/calendar_date_select/format_finnish.js +0 -32
  256. data/src/admin_panel/public/javascripts/calendar_date_select/format_hyphen_ampm.js +0 -37
  257. data/src/admin_panel/public/javascripts/calendar_date_select/format_iso_date.js +0 -46
  258. data/src/admin_panel/public/javascripts/calendar_date_select/format_italian.js +0 -24
  259. data/src/admin_panel/public/javascripts/calendar_date_select/locale/de.js +0 -11
  260. data/src/admin_panel/public/javascripts/calendar_date_select/locale/fi.js +0 -10
  261. data/src/admin_panel/public/javascripts/calendar_date_select/locale/fr.js +0 -10
  262. data/src/admin_panel/public/javascripts/calendar_date_select/locale/pl.js +0 -10
  263. data/src/admin_panel/public/javascripts/calendar_date_select/locale/pt.js +0 -11
  264. data/src/admin_panel/public/javascripts/calendar_date_select/locale/ru.js +0 -10
  265. data/src/admin_panel/public/stylesheets/calendar_date_select/blue.css +0 -130
  266. data/src/admin_panel/public/stylesheets/calendar_date_select/default.css +0 -135
  267. data/src/admin_panel/public/stylesheets/calendar_date_select/plain.css +0 -128
  268. data/src/admin_panel/public/stylesheets/calendar_date_select/red.css +0 -135
  269. data/src/admin_panel/public/stylesheets/calendar_date_select/silver.css +0 -133
  270. data/src/admin_panel/vendor/rails/actionmailer/CHANGELOG +0 -358
  271. data/src/admin_panel/vendor/rails/actionmailer/MIT-LICENSE +0 -21
  272. data/src/admin_panel/vendor/rails/actionmailer/README +0 -149
  273. data/src/admin_panel/vendor/rails/actionmailer/Rakefile +0 -98
  274. data/src/admin_panel/vendor/rails/actionmailer/install.rb +0 -30
  275. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/adv_attr_accessor.rb +0 -30
  276. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/base.rb +0 -705
  277. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/helpers.rb +0 -113
  278. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/mail_helper.rb +0 -17
  279. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/part.rb +0 -107
  280. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/part_container.rb +0 -55
  281. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/quoting.rb +0 -61
  282. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/test_case.rb +0 -64
  283. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/test_helper.rb +0 -68
  284. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/utils.rb +0 -7
  285. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb +0 -1466
  286. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/text_format.rb +0 -10
  287. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/address.rb +0 -426
  288. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/attachments.rb +0 -46
  289. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/base64.rb +0 -46
  290. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb +0 -41
  291. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/config.rb +0 -67
  292. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/core_extensions.rb +0 -63
  293. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/encode.rb +0 -581
  294. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/header.rb +0 -960
  295. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/index.rb +0 -9
  296. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/interface.rb +0 -1130
  297. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/loader.rb +0 -3
  298. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/mail.rb +0 -578
  299. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/mailbox.rb +0 -495
  300. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/main.rb +0 -6
  301. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/mbox.rb +0 -3
  302. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/net.rb +0 -248
  303. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/obsolete.rb +0 -132
  304. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/parser.rb +0 -1476
  305. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/port.rb +0 -379
  306. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/quoting.rb +0 -118
  307. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/require_arch.rb +0 -58
  308. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/scanner.rb +0 -49
  309. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/scanner_r.rb +0 -261
  310. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/stringio.rb +0 -280
  311. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/utils.rb +0 -337
  312. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/version.rb +0 -39
  313. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail.rb +0 -5
  314. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail.rb +0 -17
  315. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/version.rb +0 -9
  316. data/src/admin_panel/vendor/rails/actionmailer/lib/action_mailer.rb +0 -62
  317. data/src/admin_panel/vendor/rails/actionmailer/lib/actionmailer.rb +0 -1
  318. data/src/admin_panel/vendor/rails/actionmailer/test/abstract_unit.rb +0 -65
  319. data/src/admin_panel/vendor/rails/actionmailer/test/asset_host_test.rb +0 -54
  320. data/src/admin_panel/vendor/rails/actionmailer/test/delivery_method_test.rb +0 -51
  321. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/asset_host_mailer/email_with_asset.html.erb +0 -1
  322. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/auto_layout_mailer/hello.html.erb +0 -1
  323. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/auto_layout_mailer/multipart.text.html.erb +0 -1
  324. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/auto_layout_mailer/multipart.text.plain.erb +0 -1
  325. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/explicit_layout_mailer/logout.html.erb +0 -1
  326. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/explicit_layout_mailer/signup.html.erb +0 -1
  327. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/first_mailer/share.erb +0 -1
  328. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_example_helper.erb +0 -1
  329. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper.erb +0 -1
  330. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper_method.erb +0 -1
  331. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_mail_helper.erb +0 -5
  332. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/helpers/example_helper.rb +0 -5
  333. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/layouts/auto_layout_mailer.html.erb +0 -1
  334. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/layouts/auto_layout_mailer.text.erb +0 -1
  335. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/layouts/spam.html.erb +0 -1
  336. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb +0 -1
  337. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email +0 -14
  338. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email10 +0 -20
  339. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email12 +0 -32
  340. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email13 +0 -29
  341. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email2 +0 -114
  342. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email3 +0 -70
  343. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email4 +0 -59
  344. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email5 +0 -19
  345. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email6 +0 -20
  346. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email7 +0 -66
  347. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email8 +0 -47
  348. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email9 +0 -28
  349. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email_quoted_with_0d0a +0 -14
  350. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email_with_invalid_characters_in_content_type +0 -104
  351. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email_with_nested_attachment +0 -100
  352. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/raw_email_with_partially_quoted_subject +0 -14
  353. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/second_mailer/share.erb +0 -1
  354. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/templates/signed_up.erb +0 -3
  355. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/_subtemplate.text.plain.erb +0 -1
  356. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/body_ivar.erb +0 -2
  357. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/custom_templating_extension.text.html.haml +0 -6
  358. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/custom_templating_extension.text.plain.haml +0 -6
  359. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.ignored.erb +0 -1
  360. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.html.erb +0 -10
  361. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.plain.erb +0 -2
  362. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.erb +0 -1
  363. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/included_subtemplate.text.plain.erb +0 -1
  364. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/rxml_template.builder +0 -2
  365. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/rxml_template.rxml +0 -2
  366. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up.html.erb +0 -3
  367. data/src/admin_panel/vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up_with_url.erb +0 -5
  368. data/src/admin_panel/vendor/rails/actionmailer/test/mail_helper_test.rb +0 -95
  369. data/src/admin_panel/vendor/rails/actionmailer/test/mail_layout_test.rb +0 -123
  370. data/src/admin_panel/vendor/rails/actionmailer/test/mail_render_test.rb +0 -116
  371. data/src/admin_panel/vendor/rails/actionmailer/test/mail_service_test.rb +0 -1078
  372. data/src/admin_panel/vendor/rails/actionmailer/test/quoting_test.rb +0 -99
  373. data/src/admin_panel/vendor/rails/actionmailer/test/test_helper_test.rb +0 -129
  374. data/src/admin_panel/vendor/rails/actionmailer/test/tmail_test.rb +0 -22
  375. data/src/admin_panel/vendor/rails/actionmailer/test/url_test.rb +0 -76
  376. data/src/admin_panel/vendor/rails/actionpack/CHANGELOG +0 -5156
  377. data/src/admin_panel/vendor/rails/actionpack/MIT-LICENSE +0 -21
  378. data/src/admin_panel/vendor/rails/actionpack/README +0 -409
  379. data/src/admin_panel/vendor/rails/actionpack/RUNNING_UNIT_TESTS +0 -24
  380. data/src/admin_panel/vendor/rails/actionpack/Rakefile +0 -158
  381. data/src/admin_panel/vendor/rails/actionpack/install.rb +0 -30
  382. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/assertions/dom_assertions.rb +0 -39
  383. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/assertions/model_assertions.rb +0 -21
  384. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/assertions/response_assertions.rb +0 -150
  385. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/assertions/routing_assertions.rb +0 -146
  386. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/assertions/selector_assertions.rb +0 -632
  387. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/assertions/tag_assertions.rb +0 -127
  388. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/base.rb +0 -1414
  389. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/benchmarking.rb +0 -107
  390. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/caching/actions.rb +0 -169
  391. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/caching/fragments.rb +0 -120
  392. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/caching/pages.rb +0 -152
  393. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/caching/sweeping.rb +0 -97
  394. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/caching.rb +0 -70
  395. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/cgi_ext/cookie.rb +0 -112
  396. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/cgi_ext/query_extension.rb +0 -22
  397. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/cgi_ext/stdinput.rb +0 -24
  398. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/cgi_ext.rb +0 -15
  399. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/cgi_process.rb +0 -77
  400. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/cookies.rb +0 -94
  401. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/dispatcher.rb +0 -118
  402. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/failsafe.rb +0 -52
  403. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/filters.rb +0 -680
  404. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/flash.rb +0 -163
  405. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/headers.rb +0 -33
  406. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/helpers.rb +0 -225
  407. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/http_authentication.rb +0 -304
  408. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/integration.rb +0 -687
  409. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/layout.rb +0 -281
  410. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb +0 -119
  411. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/middlewares.rb +0 -13
  412. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/mime_responds.rb +0 -193
  413. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/mime_type.rb +0 -212
  414. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/mime_types.rb +0 -21
  415. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/params_parser.rb +0 -71
  416. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/performance_test.rb +0 -15
  417. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/polymorphic_routes.rb +0 -204
  418. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/record_identifier.rb +0 -104
  419. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/reloader.rb +0 -14
  420. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/request.rb +0 -489
  421. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/request_forgery_protection.rb +0 -108
  422. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/rescue.rb +0 -183
  423. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/resources.rb +0 -678
  424. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/response.rb +0 -232
  425. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/rewindable_input.rb +0 -28
  426. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/routing/builder.rb +0 -197
  427. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/routing/optimisations.rb +0 -130
  428. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/routing/recognition_optimisation.rb +0 -167
  429. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/routing/route.rb +0 -265
  430. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb +0 -488
  431. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/routing/routing_ext.rb +0 -49
  432. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/routing/segments.rb +0 -343
  433. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/routing.rb +0 -385
  434. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/session/abstract_store.rb +0 -181
  435. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb +0 -221
  436. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/session/mem_cache_store.rb +0 -51
  437. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/session_management.rb +0 -54
  438. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/status_codes.rb +0 -88
  439. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/streaming.rb +0 -179
  440. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/_request_and_response.erb +0 -24
  441. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb +0 -26
  442. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/diagnostics.erb +0 -11
  443. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.erb +0 -29
  444. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/missing_template.erb +0 -2
  445. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/routing_error.erb +0 -10
  446. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/template_error.erb +0 -21
  447. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/templates/rescues/unknown_action.erb +0 -2
  448. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/test_case.rb +0 -204
  449. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/test_process.rb +0 -572
  450. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/translation.rb +0 -13
  451. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/uploaded_file.rb +0 -44
  452. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/url_rewriter.rb +0 -216
  453. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/document.rb +0 -68
  454. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb +0 -537
  455. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/sanitizer.rb +0 -173
  456. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb +0 -828
  457. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/tokenizer.rb +0 -105
  458. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/version.rb +0 -11
  459. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner.rb +0 -16
  460. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/adapter/camping.rb +0 -22
  461. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/abstract/handler.rb +0 -37
  462. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/abstract/request.rb +0 -37
  463. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/basic.rb +0 -58
  464. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/digest/md5.rb +0 -124
  465. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/digest/nonce.rb +0 -51
  466. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/digest/params.rb +0 -55
  467. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/digest/request.rb +0 -40
  468. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/auth/openid.rb +0 -480
  469. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/builder.rb +0 -63
  470. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/cascade.rb +0 -36
  471. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/chunked.rb +0 -49
  472. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/commonlogger.rb +0 -61
  473. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/conditionalget.rb +0 -45
  474. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/content_length.rb +0 -29
  475. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/content_type.rb +0 -23
  476. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/deflater.rb +0 -85
  477. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/directory.rb +0 -153
  478. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/file.rb +0 -88
  479. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/cgi.rb +0 -61
  480. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/evented_mongrel.rb +0 -8
  481. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/fastcgi.rb +0 -89
  482. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/lsws.rb +0 -55
  483. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/mongrel.rb +0 -84
  484. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/scgi.rb +0 -59
  485. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/swiftiplied_mongrel.rb +0 -8
  486. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/thin.rb +0 -18
  487. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler/webrick.rb +0 -67
  488. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/handler.rb +0 -48
  489. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/head.rb +0 -19
  490. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/lint.rb +0 -462
  491. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/lobster.rb +0 -65
  492. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/lock.rb +0 -16
  493. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/methodoverride.rb +0 -27
  494. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/mime.rb +0 -204
  495. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/mock.rb +0 -160
  496. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/recursive.rb +0 -57
  497. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/reloader.rb +0 -64
  498. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/request.rb +0 -241
  499. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/response.rb +0 -179
  500. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/session/abstract/id.rb +0 -142
  501. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/session/cookie.rb +0 -91
  502. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/session/memcache.rb +0 -109
  503. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/session/pool.rb +0 -100
  504. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/showexceptions.rb +0 -349
  505. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/showstatus.rb +0 -106
  506. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/static.rb +0 -38
  507. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/urlmap.rb +0 -55
  508. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/utils.rb +0 -392
  509. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack.rb +0 -89
  510. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller/verification.rb +0 -130
  511. data/src/admin_panel/vendor/rails/actionpack/lib/action_controller.rb +0 -116
  512. data/src/admin_panel/vendor/rails/actionpack/lib/action_pack/version.rb +0 -9
  513. data/src/admin_panel/vendor/rails/actionpack/lib/action_pack.rb +0 -24
  514. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/base.rb +0 -357
  515. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/erb/util.rb +0 -38
  516. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/active_record_helper.rb +0 -305
  517. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/asset_tag_helper.rb +0 -682
  518. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/atom_feed_helper.rb +0 -198
  519. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/benchmark_helper.rb +0 -54
  520. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/cache_helper.rb +0 -39
  521. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb +0 -136
  522. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb +0 -976
  523. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/debug_helper.rb +0 -38
  524. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb +0 -1039
  525. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/form_options_helper.rb +0 -530
  526. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb +0 -481
  527. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/javascript_helper.rb +0 -208
  528. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/number_helper.rb +0 -303
  529. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb +0 -1305
  530. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/record_identification_helper.rb +0 -20
  531. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/record_tag_helper.rb +0 -58
  532. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/sanitize_helper.rb +0 -251
  533. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/scriptaculous_helper.rb +0 -226
  534. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/tag_helper.rb +0 -150
  535. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/text_helper.rb +0 -578
  536. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/translation_helper.rb +0 -39
  537. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb +0 -638
  538. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/helpers.rb +0 -57
  539. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/inline_template.rb +0 -19
  540. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/locale/en.yml +0 -110
  541. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/partials.rb +0 -240
  542. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/paths.rb +0 -69
  543. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/reloadable_template.rb +0 -117
  544. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/renderable.rb +0 -95
  545. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/renderable_partial.rb +0 -47
  546. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/template.rb +0 -257
  547. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/template_error.rb +0 -99
  548. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/template_handler.rb +0 -34
  549. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/template_handlers/builder.rb +0 -17
  550. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/template_handlers/erb.rb +0 -22
  551. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/template_handlers/rjs.rb +0 -13
  552. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/template_handlers.rb +0 -48
  553. data/src/admin_panel/vendor/rails/actionpack/lib/action_view/test_case.rb +0 -87
  554. data/src/admin_panel/vendor/rails/actionpack/lib/action_view.rb +0 -58
  555. data/src/admin_panel/vendor/rails/actionpack/lib/actionpack.rb +0 -1
  556. data/src/admin_panel/vendor/rails/actionpack/test/abstract_unit.rb +0 -45
  557. data/src/admin_panel/vendor/rails/actionpack/test/active_record_unit.rb +0 -104
  558. data/src/admin_panel/vendor/rails/actionpack/test/activerecord/active_record_store_test.rb +0 -174
  559. data/src/admin_panel/vendor/rails/actionpack/test/activerecord/render_partial_with_record_identification_test.rb +0 -188
  560. data/src/admin_panel/vendor/rails/actionpack/test/adv_attr_test.rb +0 -20
  561. data/src/admin_panel/vendor/rails/actionpack/test/controller/action_pack_assertions_test.rb +0 -516
  562. data/src/admin_panel/vendor/rails/actionpack/test/controller/addresses_render_test.rb +0 -37
  563. data/src/admin_panel/vendor/rails/actionpack/test/controller/assert_select_test.rb +0 -734
  564. data/src/admin_panel/vendor/rails/actionpack/test/controller/base_test.rb +0 -217
  565. data/src/admin_panel/vendor/rails/actionpack/test/controller/benchmark_test.rb +0 -32
  566. data/src/admin_panel/vendor/rails/actionpack/test/controller/caching_test.rb +0 -690
  567. data/src/admin_panel/vendor/rails/actionpack/test/controller/capture_test.rb +0 -66
  568. data/src/admin_panel/vendor/rails/actionpack/test/controller/content_type_test.rb +0 -168
  569. data/src/admin_panel/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb +0 -0
  570. data/src/admin_panel/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/user_controller.rb +0 -0
  571. data/src/admin_panel/vendor/rails/actionpack/test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb +0 -0
  572. data/src/admin_panel/vendor/rails/actionpack/test/controller/cookie_test.rb +0 -111
  573. data/src/admin_panel/vendor/rails/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb +0 -32
  574. data/src/admin_panel/vendor/rails/actionpack/test/controller/dispatcher_test.rb +0 -103
  575. data/src/admin_panel/vendor/rails/actionpack/test/controller/fake_controllers.rb +0 -33
  576. data/src/admin_panel/vendor/rails/actionpack/test/controller/fake_models.rb +0 -19
  577. data/src/admin_panel/vendor/rails/actionpack/test/controller/filter_params_test.rb +0 -49
  578. data/src/admin_panel/vendor/rails/actionpack/test/controller/filters_test.rb +0 -885
  579. data/src/admin_panel/vendor/rails/actionpack/test/controller/flash_test.rb +0 -142
  580. data/src/admin_panel/vendor/rails/actionpack/test/controller/header_test.rb +0 -14
  581. data/src/admin_panel/vendor/rails/actionpack/test/controller/helper_test.rb +0 -224
  582. data/src/admin_panel/vendor/rails/actionpack/test/controller/html-scanner/cdata_node_test.rb +0 -15
  583. data/src/admin_panel/vendor/rails/actionpack/test/controller/html-scanner/document_test.rb +0 -148
  584. data/src/admin_panel/vendor/rails/actionpack/test/controller/html-scanner/node_test.rb +0 -89
  585. data/src/admin_panel/vendor/rails/actionpack/test/controller/html-scanner/sanitizer_test.rb +0 -273
  586. data/src/admin_panel/vendor/rails/actionpack/test/controller/html-scanner/tag_node_test.rb +0 -238
  587. data/src/admin_panel/vendor/rails/actionpack/test/controller/html-scanner/text_node_test.rb +0 -50
  588. data/src/admin_panel/vendor/rails/actionpack/test/controller/html-scanner/tokenizer_test.rb +0 -131
  589. data/src/admin_panel/vendor/rails/actionpack/test/controller/http_basic_authentication_test.rb +0 -88
  590. data/src/admin_panel/vendor/rails/actionpack/test/controller/http_digest_authentication_test.rb +0 -178
  591. data/src/admin_panel/vendor/rails/actionpack/test/controller/integration_test.rb +0 -417
  592. data/src/admin_panel/vendor/rails/actionpack/test/controller/layout_test.rb +0 -204
  593. data/src/admin_panel/vendor/rails/actionpack/test/controller/logging_test.rb +0 -46
  594. data/src/admin_panel/vendor/rails/actionpack/test/controller/middleware_stack_test.rb +0 -90
  595. data/src/admin_panel/vendor/rails/actionpack/test/controller/mime_responds_test.rb +0 -536
  596. data/src/admin_panel/vendor/rails/actionpack/test/controller/mime_type_test.rb +0 -93
  597. data/src/admin_panel/vendor/rails/actionpack/test/controller/polymorphic_routes_test.rb +0 -293
  598. data/src/admin_panel/vendor/rails/actionpack/test/controller/rack_test.rb +0 -294
  599. data/src/admin_panel/vendor/rails/actionpack/test/controller/record_identifier_test.rb +0 -139
  600. data/src/admin_panel/vendor/rails/actionpack/test/controller/redirect_test.rb +0 -282
  601. data/src/admin_panel/vendor/rails/actionpack/test/controller/render_test.rb +0 -1752
  602. data/src/admin_panel/vendor/rails/actionpack/test/controller/request/json_params_parsing_test.rb +0 -45
  603. data/src/admin_panel/vendor/rails/actionpack/test/controller/request/multipart_params_parsing_test.rb +0 -223
  604. data/src/admin_panel/vendor/rails/actionpack/test/controller/request/query_string_parsing_test.rb +0 -120
  605. data/src/admin_panel/vendor/rails/actionpack/test/controller/request/url_encoded_params_parsing_test.rb +0 -184
  606. data/src/admin_panel/vendor/rails/actionpack/test/controller/request/xml_params_parsing_test.rb +0 -88
  607. data/src/admin_panel/vendor/rails/actionpack/test/controller/request_forgery_protection_test.rb +0 -246
  608. data/src/admin_panel/vendor/rails/actionpack/test/controller/request_test.rb +0 -407
  609. data/src/admin_panel/vendor/rails/actionpack/test/controller/rescue_test.rb +0 -536
  610. data/src/admin_panel/vendor/rails/actionpack/test/controller/resources_test.rb +0 -1341
  611. data/src/admin_panel/vendor/rails/actionpack/test/controller/routing_test.rb +0 -2557
  612. data/src/admin_panel/vendor/rails/actionpack/test/controller/selector_test.rb +0 -628
  613. data/src/admin_panel/vendor/rails/actionpack/test/controller/send_file_test.rb +0 -161
  614. data/src/admin_panel/vendor/rails/actionpack/test/controller/session/cookie_store_test.rb +0 -239
  615. data/src/admin_panel/vendor/rails/actionpack/test/controller/session/mem_cache_store_test.rb +0 -127
  616. data/src/admin_panel/vendor/rails/actionpack/test/controller/session/test_session_test.rb +0 -58
  617. data/src/admin_panel/vendor/rails/actionpack/test/controller/test_test.rb +0 -692
  618. data/src/admin_panel/vendor/rails/actionpack/test/controller/translation_test.rb +0 -26
  619. data/src/admin_panel/vendor/rails/actionpack/test/controller/url_rewriter_test.rb +0 -359
  620. data/src/admin_panel/vendor/rails/actionpack/test/controller/verification_test.rb +0 -270
  621. data/src/admin_panel/vendor/rails/actionpack/test/controller/view_paths_test.rb +0 -141
  622. data/src/admin_panel/vendor/rails/actionpack/test/controller/webservice_test.rb +0 -260
  623. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/_top_level_partial.html.erb +0 -1
  624. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/_top_level_partial_only.erb +0 -1
  625. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/addresses/list.erb +0 -1
  626. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/alternate_helpers/foo_helper.rb +0 -3
  627. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/bad_customers/_bad_customer.html.erb +0 -1
  628. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/companies.yml +0 -24
  629. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/company.rb +0 -10
  630. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/content_type/render_default_content_types_for_respond_to.rhtml +0 -1
  631. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rhtml.rhtml +0 -1
  632. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rjs.rjs +0 -1
  633. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rxml.rxml +0 -1
  634. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/customers/_customer.html.erb +0 -1
  635. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/db_definitions/sqlite.sql +0 -49
  636. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/developer.rb +0 -9
  637. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/developers/_developer.erb +0 -1
  638. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/developers.yml +0 -21
  639. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/developers_projects.yml +0 -13
  640. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/fun/games/_game.erb +0 -1
  641. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/fun/games/hello_world.erb +0 -1
  642. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/fun/serious/games/_game.erb +0 -1
  643. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/functional_caching/_partial.erb +0 -3
  644. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/functional_caching/formatted_fragment_cached.html.erb +0 -3
  645. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/functional_caching/formatted_fragment_cached.js.rjs +0 -6
  646. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/functional_caching/formatted_fragment_cached.xml.builder +0 -5
  647. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/functional_caching/fragment_cached.html.erb +0 -2
  648. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/functional_caching/html_fragment_cached_with_partial.html.erb +0 -1
  649. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/functional_caching/inline_fragment_cached.html.erb +0 -2
  650. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/functional_caching/js_fragment_cached_with_partial.js.rjs +0 -1
  651. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/good_customers/_good_customer.html.erb +0 -1
  652. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/helpers/abc_helper.rb +0 -5
  653. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/helpers/fun/games_helper.rb +0 -3
  654. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/helpers/fun/pdf_helper.rb +0 -3
  655. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layout_tests/alt/hello.rhtml +0 -1
  656. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layout_tests/alt/layouts/alt.rhtml +0 -0
  657. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/controller_name_space/nested.rhtml +0 -1
  658. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/item.rhtml +0 -1
  659. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/layout_test.rhtml +0 -1
  660. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/multiple_extensions.html.erb +0 -1
  661. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/third_party_template_library.mab +0 -1
  662. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layout_tests/views/hello.rhtml +0 -1
  663. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/_column.html.erb +0 -2
  664. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/block_with_layout.erb +0 -3
  665. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/builder.builder +0 -3
  666. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/default_html.html.erb +0 -1
  667. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/partial_with_layout.erb +0 -3
  668. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/standard.erb +0 -1
  669. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/talk_from_action.erb +0 -2
  670. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/xhr.html.erb +0 -2
  671. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/layouts/yield.erb +0 -2
  672. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/mascot.rb +0 -3
  673. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/mascots/_mascot.html.erb +0 -1
  674. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/mascots.yml +0 -4
  675. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/binary_file +0 -0
  676. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/boundary_problem_file +0 -10
  677. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/bracketed_param +0 -5
  678. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/empty +0 -10
  679. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/hello.txt +0 -1
  680. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/large_text_file +0 -10
  681. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/mixed_files +0 -0
  682. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/mona_lisa.jpg +0 -0
  683. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/none +0 -9
  684. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/single_parameter +0 -5
  685. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/multipart/text_file +0 -10
  686. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/override/test/hello_world.erb +0 -1
  687. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/override2/layouts/test/sub.erb +0 -1
  688. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/post_test/layouts/post.html.erb +0 -1
  689. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/post_test/layouts/super_post.iphone.erb +0 -1
  690. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/post_test/post/index.html.erb +0 -1
  691. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/post_test/post/index.iphone.erb +0 -1
  692. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/post_test/super_post/index.html.erb +0 -1
  693. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/post_test/super_post/index.iphone.erb +0 -1
  694. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/project.rb +0 -3
  695. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/projects/_project.erb +0 -1
  696. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/projects.yml +0 -7
  697. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/404.html +0 -1
  698. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/500.da.html +0 -1
  699. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/500.html +0 -1
  700. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/images/rails.png +0 -0
  701. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/application.js +0 -1
  702. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/bank.js +0 -1
  703. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/controls.js +0 -1
  704. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/dragdrop.js +0 -1
  705. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/effects.js +0 -1
  706. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/prototype.js +0 -1
  707. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/robber.js +0 -1
  708. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/subdir/subdir.js +0 -1
  709. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/javascripts/version.1.0.js +0 -1
  710. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/stylesheets/bank.css +0 -1
  711. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/stylesheets/robber.css +0 -1
  712. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/stylesheets/subdir/subdir.css +0 -1
  713. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/public/stylesheets/version.1.0.css +0 -1
  714. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/quiz/questions/_question.html.erb +0 -1
  715. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/replies/_reply.erb +0 -1
  716. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/replies.yml +0 -15
  717. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/reply.rb +0 -7
  718. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.html.erb +0 -1
  719. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.js.rjs +0 -1
  720. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/custom_constant_handling_without_block.mobile.erb +0 -1
  721. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/iphone_with_html_response_type.html.erb +0 -1
  722. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/iphone_with_html_response_type.iphone.erb +0 -1
  723. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/layouts/missing.html.erb +0 -1
  724. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.html.erb +0 -1
  725. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.iphone.erb +0 -1
  726. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.html.erb +0 -1
  727. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.js.rjs +0 -1
  728. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.xml.builder +0 -1
  729. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.html.erb +0 -1
  730. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.js.rjs +0 -1
  731. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.xml.builder +0 -1
  732. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/scope/test/modgreet.erb +0 -1
  733. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/shared.html.erb +0 -1
  734. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/symlink_parent/symlinked_layout.erb +0 -5
  735. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_counter.html.erb +0 -1
  736. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_customer.erb +0 -1
  737. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_customer_counter.erb +0 -1
  738. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_customer_greeting.erb +0 -1
  739. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_customer_with_var.erb +0 -1
  740. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_form.erb +0 -1
  741. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_hash_greeting.erb +0 -1
  742. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_hash_object.erb +0 -2
  743. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_hello.builder +0 -1
  744. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_labelling_form.erb +0 -1
  745. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_layout_for_block_with_args.html.erb +0 -3
  746. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_layout_for_partial.html.erb +0 -3
  747. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_local_inspector.html.erb +0 -1
  748. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_one.html.erb +0 -1
  749. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_partial.erb +0 -1
  750. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_partial.html.erb +0 -1
  751. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_partial.js.erb +0 -1
  752. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_partial_for_use_in_layout.html.erb +0 -1
  753. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_partial_only.erb +0 -1
  754. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_partial_with_only_html_version.html.erb +0 -1
  755. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_person.erb +0 -2
  756. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_raise.html.erb +0 -1
  757. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/_two.html.erb +0 -1
  758. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/action_talk_to_layout.erb +0 -2
  759. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/calling_partial_with_layout.html.erb +0 -1
  760. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/capturing.erb +0 -4
  761. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/content_for.erb +0 -2
  762. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/content_for_concatenated.erb +0 -3
  763. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/content_for_with_parameter.erb +0 -2
  764. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/delete_with_js.rjs +0 -2
  765. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/dont_pick_me +0 -1
  766. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/dot.directory/render_file_with_ivar.erb +0 -1
  767. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/enum_rjs_test.rjs +0 -6
  768. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/formatted_html_erb.html.erb +0 -1
  769. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.builder +0 -1
  770. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.html.erb +0 -1
  771. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.xml.erb +0 -1
  772. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/greeting.erb +0 -1
  773. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/greeting.js.rjs +0 -1
  774. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hello.builder +0 -4
  775. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hello_world.da.html.erb +0 -1
  776. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hello_world.erb +0 -1
  777. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hello_world.pt-BR.html.erb +0 -1
  778. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hello_world_container.builder +0 -3
  779. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hello_world_from_rxml.builder +0 -4
  780. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hello_world_with_layout_false.erb +0 -1
  781. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hello_xml_world.builder +0 -11
  782. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/hyphen-ated.erb +0 -1
  783. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/implicit_content_type.atom.builder +0 -2
  784. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/list.erb +0 -1
  785. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/nested_layout.erb +0 -3
  786. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/non_erb_block_content_for.builder +0 -4
  787. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/potential_conflicts.erb +0 -4
  788. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_explicit_html_template.js.rjs +0 -1
  789. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_file_from_template.html.erb +0 -1
  790. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_file_with_ivar.erb +0 -1
  791. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_file_with_locals.erb +0 -1
  792. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_implicit_html_template.js.rjs +0 -1
  793. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_implicit_html_template_from_xhr_request.da.html.erb +0 -1
  794. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_implicit_html_template_from_xhr_request.html.erb +0 -1
  795. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_implicit_js_template_without_layout.js.erb +0 -1
  796. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/render_to_string_test.erb +0 -1
  797. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/sub_template_raise.html.erb +0 -1
  798. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/template.erb +0 -1
  799. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/update_element_with_capture.erb +0 -9
  800. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/using_layout_around_block.html.erb +0 -1
  801. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/using_layout_around_block_with_args.html.erb +0 -1
  802. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/test/utf8.html.erb +0 -2
  803. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/topic.rb +0 -3
  804. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/topics/_topic.html.erb +0 -1
  805. data/src/admin_panel/vendor/rails/actionpack/test/fixtures/topics.yml +0 -22
  806. data/src/admin_panel/vendor/rails/actionpack/test/template/active_record_helper_i18n_test.rb +0 -44
  807. data/src/admin_panel/vendor/rails/actionpack/test/template/active_record_helper_test.rb +0 -302
  808. data/src/admin_panel/vendor/rails/actionpack/test/template/asset_tag_helper_test.rb +0 -713
  809. data/src/admin_panel/vendor/rails/actionpack/test/template/atom_feed_helper_test.rb +0 -286
  810. data/src/admin_panel/vendor/rails/actionpack/test/template/benchmark_helper_test.rb +0 -86
  811. data/src/admin_panel/vendor/rails/actionpack/test/template/compiled_templates_test.rb +0 -203
  812. data/src/admin_panel/vendor/rails/actionpack/test/template/date_helper_i18n_test.rb +0 -120
  813. data/src/admin_panel/vendor/rails/actionpack/test/template/date_helper_test.rb +0 -2469
  814. data/src/admin_panel/vendor/rails/actionpack/test/template/erb_util_test.rb +0 -24
  815. data/src/admin_panel/vendor/rails/actionpack/test/template/form_helper_test.rb +0 -1176
  816. data/src/admin_panel/vendor/rails/actionpack/test/template/form_options_helper_test.rb +0 -751
  817. data/src/admin_panel/vendor/rails/actionpack/test/template/form_tag_helper_test.rb +0 -327
  818. data/src/admin_panel/vendor/rails/actionpack/test/template/javascript_helper_test.rb +0 -106
  819. data/src/admin_panel/vendor/rails/actionpack/test/template/number_helper_i18n_test.rb +0 -69
  820. data/src/admin_panel/vendor/rails/actionpack/test/template/number_helper_test.rb +0 -128
  821. data/src/admin_panel/vendor/rails/actionpack/test/template/prototype_helper_test.rb +0 -639
  822. data/src/admin_panel/vendor/rails/actionpack/test/template/record_tag_helper_test.rb +0 -58
  823. data/src/admin_panel/vendor/rails/actionpack/test/template/render_test.rb +0 -290
  824. data/src/admin_panel/vendor/rails/actionpack/test/template/sanitize_helper_test.rb +0 -48
  825. data/src/admin_panel/vendor/rails/actionpack/test/template/scriptaculous_helper_test.rb +0 -90
  826. data/src/admin_panel/vendor/rails/actionpack/test/template/tag_helper_test.rb +0 -97
  827. data/src/admin_panel/vendor/rails/actionpack/test/template/test_test.rb +0 -54
  828. data/src/admin_panel/vendor/rails/actionpack/test/template/text_helper_test.rb +0 -520
  829. data/src/admin_panel/vendor/rails/actionpack/test/template/translation_helper_test.rb +0 -32
  830. data/src/admin_panel/vendor/rails/actionpack/test/template/url_helper_test.rb +0 -614
  831. data/src/admin_panel/vendor/rails/actionpack/test/testing_sandbox.rb +0 -15
  832. data/src/admin_panel/vendor/rails/actionpack/test/view/test_case_test.rb +0 -8
  833. data/src/admin_panel/vendor/rails/activerecord/CHANGELOG +0 -5832
  834. data/src/admin_panel/vendor/rails/activerecord/README +0 -351
  835. data/src/admin_panel/vendor/rails/activerecord/RUNNING_UNIT_TESTS +0 -36
  836. data/src/admin_panel/vendor/rails/activerecord/Rakefile +0 -253
  837. data/src/admin_panel/vendor/rails/activerecord/examples/associations.png +0 -0
  838. data/src/admin_panel/vendor/rails/activerecord/install.rb +0 -30
  839. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/aggregations.rb +0 -261
  840. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/association_preload.rb +0 -389
  841. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb +0 -470
  842. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb +0 -279
  843. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/belongs_to_association.rb +0 -58
  844. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb +0 -49
  845. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb +0 -127
  846. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/has_many_association.rb +0 -121
  847. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/has_many_through_association.rb +0 -256
  848. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/has_one_association.rb +0 -124
  849. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations/has_one_through_association.rb +0 -31
  850. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/associations.rb +0 -2169
  851. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/attribute_methods.rb +0 -388
  852. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/autosave_association.rb +0 -349
  853. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/base.rb +0 -3155
  854. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/batches.rb +0 -73
  855. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/calculations.rb +0 -317
  856. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/callbacks.rb +0 -360
  857. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb +0 -371
  858. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb +0 -139
  859. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb +0 -289
  860. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb +0 -94
  861. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb +0 -69
  862. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +0 -708
  863. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +0 -434
  864. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +0 -234
  865. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb +0 -617
  866. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +0 -1050
  867. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb +0 -34
  868. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb +0 -438
  869. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/dirty.rb +0 -183
  870. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/dynamic_finder_match.rb +0 -41
  871. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/dynamic_scope_match.rb +0 -25
  872. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/fixtures.rb +0 -993
  873. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/i18n_interpolation_deprecation.rb +0 -26
  874. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/locale/en.yml +0 -54
  875. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/locking/optimistic.rb +0 -181
  876. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/locking/pessimistic.rb +0 -77
  877. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/migration.rb +0 -566
  878. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/named_scope.rb +0 -197
  879. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/nested_attributes.rb +0 -329
  880. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/observer.rb +0 -197
  881. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/query_cache.rb +0 -33
  882. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/reflection.rb +0 -320
  883. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/schema.rb +0 -51
  884. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/schema_dumper.rb +0 -179
  885. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/serialization.rb +0 -100
  886. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/serializers/json_serializer.rb +0 -99
  887. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/serializers/xml_serializer.rb +0 -353
  888. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/session_store.rb +0 -318
  889. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/test_case.rb +0 -66
  890. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/timestamp.rb +0 -41
  891. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/transactions.rb +0 -235
  892. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/validations.rb +0 -1066
  893. data/src/admin_panel/vendor/rails/activerecord/lib/active_record/version.rb +0 -9
  894. data/src/admin_panel/vendor/rails/activerecord/lib/active_record.rb +0 -84
  895. data/src/admin_panel/vendor/rails/activerecord/lib/activerecord.rb +0 -1
  896. data/src/admin_panel/vendor/rails/activerecord/test/assets/flowers.jpg +0 -0
  897. data/src/admin_panel/vendor/rails/activerecord/test/cases/aaa_create_tables_test.rb +0 -24
  898. data/src/admin_panel/vendor/rails/activerecord/test/cases/active_schema_test_mysql.rb +0 -100
  899. data/src/admin_panel/vendor/rails/activerecord/test/cases/active_schema_test_postgresql.rb +0 -24
  900. data/src/admin_panel/vendor/rails/activerecord/test/cases/adapter_test.rb +0 -133
  901. data/src/admin_panel/vendor/rails/activerecord/test/cases/aggregations_test.rb +0 -167
  902. data/src/admin_panel/vendor/rails/activerecord/test/cases/ar_schema_test.rb +0 -32
  903. data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/belongs_to_associations_test.rb +0 -345
  904. data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/callbacks_test.rb +0 -161
  905. data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/cascaded_eager_loading_test.rb +0 -131
  906. data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/eager_load_includes_full_sti_class_test.rb +0 -36
  907. data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/eager_load_nested_include_test.rb +0 -130
  908. data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/eager_singularization_test.rb +0 -145
  909. data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/eager_test.rb +0 -822
  910. data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/extension_test.rb +0 -62
  911. data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb +0 -822
  912. data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/has_many_associations_test.rb +0 -1062
  913. data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/has_many_through_associations_test.rb +0 -279
  914. data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/has_one_associations_test.rb +0 -309
  915. data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/has_one_through_associations_test.rb +0 -192
  916. data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/inner_join_association_test.rb +0 -88
  917. data/src/admin_panel/vendor/rails/activerecord/test/cases/associations/join_model_test.rb +0 -712
  918. data/src/admin_panel/vendor/rails/activerecord/test/cases/associations_test.rb +0 -262
  919. data/src/admin_panel/vendor/rails/activerecord/test/cases/attribute_methods_test.rb +0 -305
  920. data/src/admin_panel/vendor/rails/activerecord/test/cases/autosave_association_test.rb +0 -901
  921. data/src/admin_panel/vendor/rails/activerecord/test/cases/base_test.rb +0 -2107
  922. data/src/admin_panel/vendor/rails/activerecord/test/cases/batches_test.rb +0 -61
  923. data/src/admin_panel/vendor/rails/activerecord/test/cases/binary_test.rb +0 -30
  924. data/src/admin_panel/vendor/rails/activerecord/test/cases/calculations_test.rb +0 -348
  925. data/src/admin_panel/vendor/rails/activerecord/test/cases/callbacks_observers_test.rb +0 -38
  926. data/src/admin_panel/vendor/rails/activerecord/test/cases/callbacks_test.rb +0 -438
  927. data/src/admin_panel/vendor/rails/activerecord/test/cases/class_inheritable_attributes_test.rb +0 -32
  928. data/src/admin_panel/vendor/rails/activerecord/test/cases/column_alias_test.rb +0 -17
  929. data/src/admin_panel/vendor/rails/activerecord/test/cases/column_definition_test.rb +0 -36
  930. data/src/admin_panel/vendor/rails/activerecord/test/cases/connection_pool_test.rb +0 -25
  931. data/src/admin_panel/vendor/rails/activerecord/test/cases/connection_test_firebird.rb +0 -8
  932. data/src/admin_panel/vendor/rails/activerecord/test/cases/connection_test_mysql.rb +0 -56
  933. data/src/admin_panel/vendor/rails/activerecord/test/cases/copy_table_test_sqlite.rb +0 -80
  934. data/src/admin_panel/vendor/rails/activerecord/test/cases/database_statements_test.rb +0 -12
  935. data/src/admin_panel/vendor/rails/activerecord/test/cases/datatype_test_postgresql.rb +0 -204
  936. data/src/admin_panel/vendor/rails/activerecord/test/cases/date_time_test.rb +0 -37
  937. data/src/admin_panel/vendor/rails/activerecord/test/cases/default_test_firebird.rb +0 -16
  938. data/src/admin_panel/vendor/rails/activerecord/test/cases/defaults_test.rb +0 -111
  939. data/src/admin_panel/vendor/rails/activerecord/test/cases/deprecated_finder_test.rb +0 -30
  940. data/src/admin_panel/vendor/rails/activerecord/test/cases/dirty_test.rb +0 -306
  941. data/src/admin_panel/vendor/rails/activerecord/test/cases/finder_respond_to_test.rb +0 -76
  942. data/src/admin_panel/vendor/rails/activerecord/test/cases/finder_test.rb +0 -1083
  943. data/src/admin_panel/vendor/rails/activerecord/test/cases/fixtures_test.rb +0 -651
  944. data/src/admin_panel/vendor/rails/activerecord/test/cases/helper.rb +0 -69
  945. data/src/admin_panel/vendor/rails/activerecord/test/cases/i18n_test.rb +0 -41
  946. data/src/admin_panel/vendor/rails/activerecord/test/cases/inheritance_test.rb +0 -262
  947. data/src/admin_panel/vendor/rails/activerecord/test/cases/invalid_date_test.rb +0 -24
  948. data/src/admin_panel/vendor/rails/activerecord/test/cases/json_serialization_test.rb +0 -205
  949. data/src/admin_panel/vendor/rails/activerecord/test/cases/lifecycle_test.rb +0 -193
  950. data/src/admin_panel/vendor/rails/activerecord/test/cases/locking_test.rb +0 -322
  951. data/src/admin_panel/vendor/rails/activerecord/test/cases/method_scoping_test.rb +0 -694
  952. data/src/admin_panel/vendor/rails/activerecord/test/cases/migration_test.rb +0 -1495
  953. data/src/admin_panel/vendor/rails/activerecord/test/cases/migration_test_firebird.rb +0 -124
  954. data/src/admin_panel/vendor/rails/activerecord/test/cases/mixin_test.rb +0 -96
  955. data/src/admin_panel/vendor/rails/activerecord/test/cases/modules_test.rb +0 -39
  956. data/src/admin_panel/vendor/rails/activerecord/test/cases/multiple_db_test.rb +0 -85
  957. data/src/admin_panel/vendor/rails/activerecord/test/cases/named_scope_test.rb +0 -359
  958. data/src/admin_panel/vendor/rails/activerecord/test/cases/nested_attributes_test.rb +0 -509
  959. data/src/admin_panel/vendor/rails/activerecord/test/cases/pk_test.rb +0 -101
  960. data/src/admin_panel/vendor/rails/activerecord/test/cases/pooled_connections_test.rb +0 -103
  961. data/src/admin_panel/vendor/rails/activerecord/test/cases/query_cache_test.rb +0 -123
  962. data/src/admin_panel/vendor/rails/activerecord/test/cases/readonly_test.rb +0 -107
  963. data/src/admin_panel/vendor/rails/activerecord/test/cases/reflection_test.rb +0 -194
  964. data/src/admin_panel/vendor/rails/activerecord/test/cases/reload_models_test.rb +0 -22
  965. data/src/admin_panel/vendor/rails/activerecord/test/cases/repair_helper.rb +0 -50
  966. data/src/admin_panel/vendor/rails/activerecord/test/cases/reserved_word_test_mysql.rb +0 -176
  967. data/src/admin_panel/vendor/rails/activerecord/test/cases/sanitize_test.rb +0 -25
  968. data/src/admin_panel/vendor/rails/activerecord/test/cases/schema_authorization_test_postgresql.rb +0 -75
  969. data/src/admin_panel/vendor/rails/activerecord/test/cases/schema_dumper_test.rb +0 -183
  970. data/src/admin_panel/vendor/rails/activerecord/test/cases/schema_test_postgresql.rb +0 -102
  971. data/src/admin_panel/vendor/rails/activerecord/test/cases/serialization_test.rb +0 -47
  972. data/src/admin_panel/vendor/rails/activerecord/test/cases/synonym_test_oracle.rb +0 -17
  973. data/src/admin_panel/vendor/rails/activerecord/test/cases/transactions_test.rb +0 -522
  974. data/src/admin_panel/vendor/rails/activerecord/test/cases/unconnected_test.rb +0 -32
  975. data/src/admin_panel/vendor/rails/activerecord/test/cases/validations_i18n_test.rb +0 -915
  976. data/src/admin_panel/vendor/rails/activerecord/test/cases/validations_test.rb +0 -1602
  977. data/src/admin_panel/vendor/rails/activerecord/test/cases/xml_serialization_test.rb +0 -220
  978. data/src/admin_panel/vendor/rails/activerecord/test/config.rb +0 -5
  979. data/src/admin_panel/vendor/rails/activerecord/test/connections/jdbc_jdbcderby/connection.rb +0 -18
  980. data/src/admin_panel/vendor/rails/activerecord/test/connections/jdbc_jdbch2/connection.rb +0 -18
  981. data/src/admin_panel/vendor/rails/activerecord/test/connections/jdbc_jdbchsqldb/connection.rb +0 -18
  982. data/src/admin_panel/vendor/rails/activerecord/test/connections/jdbc_jdbcmysql/connection.rb +0 -26
  983. data/src/admin_panel/vendor/rails/activerecord/test/connections/jdbc_jdbcpostgresql/connection.rb +0 -26
  984. data/src/admin_panel/vendor/rails/activerecord/test/connections/jdbc_jdbcsqlite3/connection.rb +0 -25
  985. data/src/admin_panel/vendor/rails/activerecord/test/connections/native_db2/connection.rb +0 -25
  986. data/src/admin_panel/vendor/rails/activerecord/test/connections/native_firebird/connection.rb +0 -26
  987. data/src/admin_panel/vendor/rails/activerecord/test/connections/native_frontbase/connection.rb +0 -27
  988. data/src/admin_panel/vendor/rails/activerecord/test/connections/native_mysql/connection.rb +0 -25
  989. data/src/admin_panel/vendor/rails/activerecord/test/connections/native_openbase/connection.rb +0 -21
  990. data/src/admin_panel/vendor/rails/activerecord/test/connections/native_oracle/connection.rb +0 -27
  991. data/src/admin_panel/vendor/rails/activerecord/test/connections/native_postgresql/connection.rb +0 -21
  992. data/src/admin_panel/vendor/rails/activerecord/test/connections/native_sqlite/connection.rb +0 -25
  993. data/src/admin_panel/vendor/rails/activerecord/test/connections/native_sqlite3/connection.rb +0 -25
  994. data/src/admin_panel/vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb +0 -18
  995. data/src/admin_panel/vendor/rails/activerecord/test/connections/native_sybase/connection.rb +0 -23
  996. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/accounts.yml +0 -28
  997. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/all/developers.yml +0 -0
  998. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/all/people.csv +0 -0
  999. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/all/tasks.yml +0 -0
  1000. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/author_addresses.yml +0 -5
  1001. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/author_favorites.yml +0 -4
  1002. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/authors.yml +0 -9
  1003. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/binaries.yml +0 -132
  1004. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/books.yml +0 -7
  1005. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/categories/special_categories.yml +0 -9
  1006. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/categories/subsubdir/arbitrary_filename.yml +0 -4
  1007. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/categories.yml +0 -14
  1008. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/categories_ordered.yml +0 -7
  1009. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/categories_posts.yml +0 -23
  1010. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/categorizations.yml +0 -17
  1011. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/clubs.yml +0 -6
  1012. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/comments.yml +0 -59
  1013. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/companies.yml +0 -56
  1014. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/computers.yml +0 -4
  1015. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/courses.yml +0 -7
  1016. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/customers.yml +0 -26
  1017. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/developers.yml +0 -21
  1018. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/developers_projects.yml +0 -17
  1019. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/edges.yml +0 -6
  1020. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/entrants.yml +0 -14
  1021. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/fixture_database.sqlite3 +0 -0
  1022. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/fixture_database_2.sqlite3 +0 -0
  1023. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/fk_test_has_fk.yml +0 -3
  1024. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/fk_test_has_pk.yml +0 -2
  1025. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/funny_jokes.yml +0 -10
  1026. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/items.yml +0 -4
  1027. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/jobs.yml +0 -7
  1028. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/legacy_things.yml +0 -3
  1029. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/mateys.yml +0 -4
  1030. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/member_types.yml +0 -6
  1031. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/members.yml +0 -6
  1032. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/memberships.yml +0 -20
  1033. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/minimalistics.yml +0 -2
  1034. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/mixed_case_monkeys.yml +0 -6
  1035. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/mixins.yml +0 -29
  1036. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/movies.yml +0 -7
  1037. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/naked/csv/accounts.csv +0 -1
  1038. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/naked/yml/accounts.yml +0 -1
  1039. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/naked/yml/companies.yml +0 -1
  1040. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/naked/yml/courses.yml +0 -1
  1041. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/organizations.yml +0 -5
  1042. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/owners.yml +0 -7
  1043. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/parrots.yml +0 -27
  1044. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/parrots_pirates.yml +0 -7
  1045. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/people.yml +0 -15
  1046. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/pets.yml +0 -14
  1047. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/pirates.yml +0 -9
  1048. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/posts.yml +0 -49
  1049. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/price_estimates.yml +0 -7
  1050. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/projects.yml +0 -7
  1051. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/readers.yml +0 -9
  1052. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/references.yml +0 -17
  1053. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/reserved_words/distinct.yml +0 -5
  1054. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/reserved_words/distincts_selects.yml +0 -11
  1055. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/reserved_words/group.yml +0 -14
  1056. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/reserved_words/select.yml +0 -8
  1057. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/reserved_words/values.yml +0 -7
  1058. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/ships.yml +0 -5
  1059. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/sponsors.yml +0 -9
  1060. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/subscribers.yml +0 -7
  1061. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/subscriptions.yml +0 -12
  1062. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/taggings.yml +0 -28
  1063. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/tags.yml +0 -7
  1064. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/tasks.yml +0 -7
  1065. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/topics.yml +0 -42
  1066. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/toys.yml +0 -4
  1067. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/treasures.yml +0 -10
  1068. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/vertices.yml +0 -4
  1069. data/src/admin_panel/vendor/rails/activerecord/test/fixtures/warehouse-things.yml +0 -3
  1070. data/src/admin_panel/vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb +0 -10
  1071. data/src/admin_panel/vendor/rails/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb +0 -15
  1072. data/src/admin_panel/vendor/rails/activerecord/test/migrations/duplicate/1_people_have_last_names.rb +0 -9
  1073. data/src/admin_panel/vendor/rails/activerecord/test/migrations/duplicate/2_we_need_reminders.rb +0 -12
  1074. data/src/admin_panel/vendor/rails/activerecord/test/migrations/duplicate/3_foo.rb +0 -7
  1075. data/src/admin_panel/vendor/rails/activerecord/test/migrations/duplicate/3_innocent_jointable.rb +0 -12
  1076. data/src/admin_panel/vendor/rails/activerecord/test/migrations/duplicate_names/20080507052938_chunky.rb +0 -7
  1077. data/src/admin_panel/vendor/rails/activerecord/test/migrations/duplicate_names/20080507053028_chunky.rb +0 -7
  1078. data/src/admin_panel/vendor/rails/activerecord/test/migrations/interleaved/pass_1/3_innocent_jointable.rb +0 -12
  1079. data/src/admin_panel/vendor/rails/activerecord/test/migrations/interleaved/pass_2/1_people_have_last_names.rb +0 -9
  1080. data/src/admin_panel/vendor/rails/activerecord/test/migrations/interleaved/pass_2/3_innocent_jointable.rb +0 -12
  1081. data/src/admin_panel/vendor/rails/activerecord/test/migrations/interleaved/pass_3/1_people_have_last_names.rb +0 -9
  1082. data/src/admin_panel/vendor/rails/activerecord/test/migrations/interleaved/pass_3/2_i_raise_on_down.rb +0 -8
  1083. data/src/admin_panel/vendor/rails/activerecord/test/migrations/interleaved/pass_3/3_innocent_jointable.rb +0 -12
  1084. data/src/admin_panel/vendor/rails/activerecord/test/migrations/missing/1000_people_have_middle_names.rb +0 -9
  1085. data/src/admin_panel/vendor/rails/activerecord/test/migrations/missing/1_people_have_last_names.rb +0 -9
  1086. data/src/admin_panel/vendor/rails/activerecord/test/migrations/missing/3_we_need_reminders.rb +0 -12
  1087. data/src/admin_panel/vendor/rails/activerecord/test/migrations/missing/4_innocent_jointable.rb +0 -12
  1088. data/src/admin_panel/vendor/rails/activerecord/test/migrations/valid/1_people_have_last_names.rb +0 -9
  1089. data/src/admin_panel/vendor/rails/activerecord/test/migrations/valid/2_we_need_reminders.rb +0 -12
  1090. data/src/admin_panel/vendor/rails/activerecord/test/migrations/valid/3_innocent_jointable.rb +0 -12
  1091. data/src/admin_panel/vendor/rails/activerecord/test/models/author.rb +0 -141
  1092. data/src/admin_panel/vendor/rails/activerecord/test/models/auto_id.rb +0 -4
  1093. data/src/admin_panel/vendor/rails/activerecord/test/models/binary.rb +0 -2
  1094. data/src/admin_panel/vendor/rails/activerecord/test/models/bird.rb +0 -3
  1095. data/src/admin_panel/vendor/rails/activerecord/test/models/book.rb +0 -4
  1096. data/src/admin_panel/vendor/rails/activerecord/test/models/categorization.rb +0 -5
  1097. data/src/admin_panel/vendor/rails/activerecord/test/models/category.rb +0 -34
  1098. data/src/admin_panel/vendor/rails/activerecord/test/models/citation.rb +0 -6
  1099. data/src/admin_panel/vendor/rails/activerecord/test/models/club.rb +0 -13
  1100. data/src/admin_panel/vendor/rails/activerecord/test/models/column_name.rb +0 -3
  1101. data/src/admin_panel/vendor/rails/activerecord/test/models/comment.rb +0 -25
  1102. data/src/admin_panel/vendor/rails/activerecord/test/models/company.rb +0 -159
  1103. data/src/admin_panel/vendor/rails/activerecord/test/models/company_in_module.rb +0 -61
  1104. data/src/admin_panel/vendor/rails/activerecord/test/models/computer.rb +0 -3
  1105. data/src/admin_panel/vendor/rails/activerecord/test/models/contact.rb +0 -16
  1106. data/src/admin_panel/vendor/rails/activerecord/test/models/course.rb +0 -3
  1107. data/src/admin_panel/vendor/rails/activerecord/test/models/customer.rb +0 -73
  1108. data/src/admin_panel/vendor/rails/activerecord/test/models/default.rb +0 -2
  1109. data/src/admin_panel/vendor/rails/activerecord/test/models/developer.rb +0 -91
  1110. data/src/admin_panel/vendor/rails/activerecord/test/models/edge.rb +0 -5
  1111. data/src/admin_panel/vendor/rails/activerecord/test/models/entrant.rb +0 -3
  1112. data/src/admin_panel/vendor/rails/activerecord/test/models/event.rb +0 -3
  1113. data/src/admin_panel/vendor/rails/activerecord/test/models/guid.rb +0 -2
  1114. data/src/admin_panel/vendor/rails/activerecord/test/models/item.rb +0 -7
  1115. data/src/admin_panel/vendor/rails/activerecord/test/models/job.rb +0 -5
  1116. data/src/admin_panel/vendor/rails/activerecord/test/models/joke.rb +0 -3
  1117. data/src/admin_panel/vendor/rails/activerecord/test/models/keyboard.rb +0 -3
  1118. data/src/admin_panel/vendor/rails/activerecord/test/models/legacy_thing.rb +0 -3
  1119. data/src/admin_panel/vendor/rails/activerecord/test/models/matey.rb +0 -4
  1120. data/src/admin_panel/vendor/rails/activerecord/test/models/member.rb +0 -12
  1121. data/src/admin_panel/vendor/rails/activerecord/test/models/member_detail.rb +0 -5
  1122. data/src/admin_panel/vendor/rails/activerecord/test/models/member_type.rb +0 -3
  1123. data/src/admin_panel/vendor/rails/activerecord/test/models/membership.rb +0 -9
  1124. data/src/admin_panel/vendor/rails/activerecord/test/models/minimalistic.rb +0 -2
  1125. data/src/admin_panel/vendor/rails/activerecord/test/models/mixed_case_monkey.rb +0 -3
  1126. data/src/admin_panel/vendor/rails/activerecord/test/models/movie.rb +0 -5
  1127. data/src/admin_panel/vendor/rails/activerecord/test/models/order.rb +0 -4
  1128. data/src/admin_panel/vendor/rails/activerecord/test/models/organization.rb +0 -4
  1129. data/src/admin_panel/vendor/rails/activerecord/test/models/owner.rb +0 -5
  1130. data/src/admin_panel/vendor/rails/activerecord/test/models/parrot.rb +0 -16
  1131. data/src/admin_panel/vendor/rails/activerecord/test/models/person.rb +0 -16
  1132. data/src/admin_panel/vendor/rails/activerecord/test/models/pet.rb +0 -5
  1133. data/src/admin_panel/vendor/rails/activerecord/test/models/pirate.rb +0 -63
  1134. data/src/admin_panel/vendor/rails/activerecord/test/models/post.rb +0 -100
  1135. data/src/admin_panel/vendor/rails/activerecord/test/models/price_estimate.rb +0 -3
  1136. data/src/admin_panel/vendor/rails/activerecord/test/models/project.rb +0 -30
  1137. data/src/admin_panel/vendor/rails/activerecord/test/models/reader.rb +0 -4
  1138. data/src/admin_panel/vendor/rails/activerecord/test/models/reference.rb +0 -4
  1139. data/src/admin_panel/vendor/rails/activerecord/test/models/reply.rb +0 -45
  1140. data/src/admin_panel/vendor/rails/activerecord/test/models/ship.rb +0 -10
  1141. data/src/admin_panel/vendor/rails/activerecord/test/models/ship_part.rb +0 -5
  1142. data/src/admin_panel/vendor/rails/activerecord/test/models/sponsor.rb +0 -4
  1143. data/src/admin_panel/vendor/rails/activerecord/test/models/subject.rb +0 -4
  1144. data/src/admin_panel/vendor/rails/activerecord/test/models/subscriber.rb +0 -8
  1145. data/src/admin_panel/vendor/rails/activerecord/test/models/subscription.rb +0 -4
  1146. data/src/admin_panel/vendor/rails/activerecord/test/models/tag.rb +0 -7
  1147. data/src/admin_panel/vendor/rails/activerecord/test/models/tagging.rb +0 -10
  1148. data/src/admin_panel/vendor/rails/activerecord/test/models/task.rb +0 -3
  1149. data/src/admin_panel/vendor/rails/activerecord/test/models/topic.rb +0 -81
  1150. data/src/admin_panel/vendor/rails/activerecord/test/models/toy.rb +0 -4
  1151. data/src/admin_panel/vendor/rails/activerecord/test/models/treasure.rb +0 -6
  1152. data/src/admin_panel/vendor/rails/activerecord/test/models/vertex.rb +0 -9
  1153. data/src/admin_panel/vendor/rails/activerecord/test/models/warehouse_thing.rb +0 -5
  1154. data/src/admin_panel/vendor/rails/activerecord/test/schema/mysql_specific_schema.rb +0 -12
  1155. data/src/admin_panel/vendor/rails/activerecord/test/schema/postgresql_specific_schema.rb +0 -103
  1156. data/src/admin_panel/vendor/rails/activerecord/test/schema/schema.rb +0 -473
  1157. data/src/admin_panel/vendor/rails/activerecord/test/schema/schema2.rb +0 -6
  1158. data/src/admin_panel/vendor/rails/activerecord/test/schema/sqlite_specific_schema.rb +0 -25
  1159. data/src/admin_panel/vendor/rails/activeresource/CHANGELOG +0 -267
  1160. data/src/admin_panel/vendor/rails/activeresource/README +0 -165
  1161. data/src/admin_panel/vendor/rails/activeresource/Rakefile +0 -138
  1162. data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/base.rb +0 -1077
  1163. data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/connection.rb +0 -218
  1164. data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/custom_methods.rb +0 -120
  1165. data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/formats/json_format.rb +0 -23
  1166. data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/formats/xml_format.rb +0 -34
  1167. data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/formats.rb +0 -14
  1168. data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/http_mock.rb +0 -207
  1169. data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/validations.rb +0 -274
  1170. data/src/admin_panel/vendor/rails/activeresource/lib/active_resource/version.rb +0 -9
  1171. data/src/admin_panel/vendor/rails/activeresource/lib/active_resource.rb +0 -44
  1172. data/src/admin_panel/vendor/rails/activeresource/lib/activeresource.rb +0 -1
  1173. data/src/admin_panel/vendor/rails/activeresource/test/abstract_unit.rb +0 -23
  1174. data/src/admin_panel/vendor/rails/activeresource/test/authorization_test.rb +0 -122
  1175. data/src/admin_panel/vendor/rails/activeresource/test/base/custom_methods_test.rb +0 -100
  1176. data/src/admin_panel/vendor/rails/activeresource/test/base/equality_test.rb +0 -52
  1177. data/src/admin_panel/vendor/rails/activeresource/test/base/load_test.rb +0 -146
  1178. data/src/admin_panel/vendor/rails/activeresource/test/base_errors_test.rb +0 -48
  1179. data/src/admin_panel/vendor/rails/activeresource/test/base_test.rb +0 -891
  1180. data/src/admin_panel/vendor/rails/activeresource/test/connection_test.rb +0 -196
  1181. data/src/admin_panel/vendor/rails/activeresource/test/fixtures/beast.rb +0 -14
  1182. data/src/admin_panel/vendor/rails/activeresource/test/fixtures/customer.rb +0 -3
  1183. data/src/admin_panel/vendor/rails/activeresource/test/fixtures/person.rb +0 -3
  1184. data/src/admin_panel/vendor/rails/activeresource/test/fixtures/street_address.rb +0 -4
  1185. data/src/admin_panel/vendor/rails/activeresource/test/format_test.rb +0 -112
  1186. data/src/admin_panel/vendor/rails/activeresource/test/setter_trap.rb +0 -26
  1187. data/src/admin_panel/vendor/rails/activesupport/CHANGELOG +0 -1309
  1188. data/src/admin_panel/vendor/rails/activesupport/README +0 -43
  1189. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/backtrace_cleaner.rb +0 -72
  1190. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/base64.rb +0 -33
  1191. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/basic_object.rb +0 -24
  1192. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/buffered_logger.rb +0 -127
  1193. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb +0 -20
  1194. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/cache/drb_store.rb +0 -14
  1195. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/cache/file_store.rb +0 -72
  1196. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/cache/mem_cache_store.rb +0 -132
  1197. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/cache/memory_store.rb +0 -52
  1198. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/cache/strategy/local_cache.rb +0 -104
  1199. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/cache/synchronized_memory_store.rb +0 -47
  1200. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/cache.rb +0 -228
  1201. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/callbacks.rb +0 -279
  1202. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/array/access.rb +0 -53
  1203. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/array/conversions.rb +0 -196
  1204. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/array/extract_options.rb +0 -20
  1205. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/array/grouping.rb +0 -106
  1206. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/array/random_access.rb +0 -12
  1207. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/array/wrapper.rb +0 -24
  1208. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/array.rb +0 -15
  1209. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/base64/encoding.rb +0 -16
  1210. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/base64.rb +0 -4
  1211. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb +0 -19
  1212. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/bigdecimal/conversions.rb +0 -37
  1213. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/bigdecimal.rb +0 -6
  1214. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/blank.rb +0 -58
  1215. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb +0 -23
  1216. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/cgi.rb +0 -5
  1217. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/class/attribute_accessors.rb +0 -54
  1218. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/class/delegating_attributes.rb +0 -47
  1219. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb +0 -140
  1220. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/class/removal.rb +0 -50
  1221. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/class.rb +0 -4
  1222. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/date/behavior.rb +0 -42
  1223. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/date/calculations.rb +0 -230
  1224. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/date/conversions.rb +0 -107
  1225. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/date.rb +0 -10
  1226. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/date_time/calculations.rb +0 -126
  1227. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/date_time/conversions.rb +0 -96
  1228. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/date_time.rb +0 -12
  1229. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/duplicable.rb +0 -43
  1230. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/enumerable.rb +0 -116
  1231. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/exception.rb +0 -45
  1232. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/file/atomic.rb +0 -46
  1233. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/file.rb +0 -5
  1234. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/float/rounding.rb +0 -24
  1235. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/float/time.rb +0 -27
  1236. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/float.rb +0 -7
  1237. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash/conversions.rb +0 -237
  1238. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash/deep_merge.rb +0 -23
  1239. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb +0 -19
  1240. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash/except.rb +0 -25
  1241. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb +0 -143
  1242. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash/keys.rb +0 -52
  1243. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash/reverse_merge.rb +0 -35
  1244. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash/slice.rb +0 -40
  1245. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/hash.rb +0 -14
  1246. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/integer/even_odd.rb +0 -29
  1247. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/integer/inflections.rb +0 -20
  1248. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/integer/time.rb +0 -45
  1249. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/integer.rb +0 -9
  1250. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/kernel/agnostics.rb +0 -11
  1251. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/kernel/daemonizing.rb +0 -7
  1252. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb +0 -13
  1253. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb +0 -59
  1254. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/kernel/requires.rb +0 -24
  1255. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/kernel.rb +0 -5
  1256. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/load_error.rb +0 -38
  1257. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/logger.rb +0 -145
  1258. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb +0 -74
  1259. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/attr_accessor_with_default.rb +0 -31
  1260. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/attr_internal.rb +0 -32
  1261. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb +0 -58
  1262. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/delegation.rb +0 -121
  1263. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/inclusion.rb +0 -30
  1264. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/introspection.rb +0 -90
  1265. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb +0 -23
  1266. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/model_naming.rb +0 -23
  1267. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module/synchronization.rb +0 -39
  1268. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/module.rb +0 -23
  1269. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/name_error.rb +0 -17
  1270. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/numeric/bytes.rb +0 -44
  1271. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/numeric/conversions.rb +0 -19
  1272. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/numeric/time.rb +0 -81
  1273. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/numeric.rb +0 -9
  1274. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/object/conversions.rb +0 -15
  1275. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/object/extending.rb +0 -80
  1276. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/object/instance_variables.rb +0 -74
  1277. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/object/metaclass.rb +0 -13
  1278. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/object/misc.rb +0 -90
  1279. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/object.rb +0 -5
  1280. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/pathname/clean_within.rb +0 -14
  1281. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/pathname.rb +0 -7
  1282. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/proc.rb +0 -12
  1283. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/process/daemon.rb +0 -25
  1284. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/process.rb +0 -1
  1285. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/range/blockless_step.rb +0 -32
  1286. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/range/conversions.rb +0 -27
  1287. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/range/include_range.rb +0 -30
  1288. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/range/overlaps.rb +0 -15
  1289. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/range.rb +0 -11
  1290. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/rexml.rb +0 -41
  1291. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/access.rb +0 -82
  1292. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/behavior.rb +0 -13
  1293. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/conversions.rb +0 -28
  1294. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/filters.rb +0 -26
  1295. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb +0 -167
  1296. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/iterators.rb +0 -23
  1297. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/multibyte.rb +0 -81
  1298. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/starts_ends_with.rb +0 -35
  1299. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string/xchar.rb +0 -11
  1300. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/string.rb +0 -22
  1301. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/symbol.rb +0 -14
  1302. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/time/behavior.rb +0 -13
  1303. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/time/calculations.rb +0 -303
  1304. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/time/conversions.rb +0 -90
  1305. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/time/zones.rb +0 -86
  1306. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/time.rb +0 -42
  1307. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/try.rb +0 -36
  1308. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext/uri.rb +0 -16
  1309. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/core_ext.rb +0 -4
  1310. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/dependencies.rb +0 -625
  1311. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/deprecation.rb +0 -196
  1312. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/duration.rb +0 -98
  1313. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/gzip.rb +0 -25
  1314. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/inflections.rb +0 -56
  1315. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/inflector.rb +0 -406
  1316. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/decoding.rb +0 -82
  1317. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/date.rb +0 -21
  1318. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/date_time.rb +0 -21
  1319. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/enumerable.rb +0 -12
  1320. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/false_class.rb +0 -5
  1321. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/hash.rb +0 -46
  1322. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/nil_class.rb +0 -5
  1323. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb +0 -5
  1324. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/object.rb +0 -6
  1325. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/regexp.rb +0 -5
  1326. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/string.rb +0 -36
  1327. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/symbol.rb +0 -5
  1328. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/time.rb +0 -21
  1329. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/true_class.rb +0 -5
  1330. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoding.rb +0 -31
  1331. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json/variable.rb +0 -10
  1332. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/json.rb +0 -23
  1333. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/locale/en.yml +0 -33
  1334. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/memoizable.rb +0 -100
  1335. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/message_encryptor.rb +0 -70
  1336. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/message_verifier.rb +0 -46
  1337. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/multibyte/chars.rb +0 -701
  1338. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/multibyte/exceptions.rb +0 -8
  1339. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/multibyte/unicode_database.rb +0 -71
  1340. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/multibyte.rb +0 -33
  1341. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/option_merger.rb +0 -23
  1342. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/ordered_hash.rb +0 -106
  1343. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/ordered_options.rb +0 -19
  1344. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/rescuable.rb +0 -108
  1345. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/secure_random.rb +0 -199
  1346. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/string_inquirer.rb +0 -21
  1347. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/test_case.rb +0 -39
  1348. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/testing/assertions.rb +0 -65
  1349. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/testing/declarative.rb +0 -21
  1350. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/testing/default.rb +0 -9
  1351. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/testing/deprecation.rb +0 -55
  1352. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/testing/performance.rb +0 -452
  1353. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb +0 -91
  1354. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/time_with_zone.rb +0 -334
  1355. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/values/time_zone.rb +0 -404
  1356. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/values/unicode_tables.dat +0 -0
  1357. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/blankslate.rb +0 -113
  1358. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/blankslate.rb +0 -20
  1359. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/css.rb +0 -250
  1360. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xchar.rb +0 -115
  1361. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlbase.rb +0 -139
  1362. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlevents.rb +0 -63
  1363. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlmarkup.rb +0 -328
  1364. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder.rb +0 -13
  1365. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/MIT-LICENSE +0 -20
  1366. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/README.textile +0 -20
  1367. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/Rakefile +0 -5
  1368. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/i18n.gemspec +0 -27
  1369. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb +0 -214
  1370. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/lib/i18n/exceptions.rb +0 -53
  1371. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/lib/i18n.rb +0 -199
  1372. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/all.rb +0 -5
  1373. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/i18n_exceptions_test.rb +0 -100
  1374. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/i18n_test.rb +0 -125
  1375. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/locale/en.rb +0 -1
  1376. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/locale/en.yml +0 -3
  1377. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb +0 -568
  1378. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/memcache-client-1.6.5/memcache.rb +0 -935
  1379. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/data_timezone.rb +0 -47
  1380. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/data_timezone_info.rb +0 -228
  1381. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Algiers.rb +0 -55
  1382. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Cairo.rb +0 -219
  1383. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Casablanca.rb +0 -40
  1384. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Harare.rb +0 -18
  1385. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Johannesburg.rb +0 -25
  1386. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Monrovia.rb +0 -22
  1387. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Nairobi.rb +0 -23
  1388. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Argentina/Buenos_Aires.rb +0 -166
  1389. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Argentina/San_Juan.rb +0 -86
  1390. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Bogota.rb +0 -23
  1391. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Caracas.rb +0 -23
  1392. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Chicago.rb +0 -283
  1393. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Chihuahua.rb +0 -136
  1394. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Denver.rb +0 -204
  1395. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Godthab.rb +0 -161
  1396. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Guatemala.rb +0 -27
  1397. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Halifax.rb +0 -274
  1398. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Indiana/Indianapolis.rb +0 -149
  1399. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Juneau.rb +0 -194
  1400. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/La_Paz.rb +0 -22
  1401. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Lima.rb +0 -35
  1402. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Los_Angeles.rb +0 -232
  1403. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Mazatlan.rb +0 -139
  1404. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Mexico_City.rb +0 -144
  1405. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Monterrey.rb +0 -131
  1406. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/New_York.rb +0 -282
  1407. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Phoenix.rb +0 -30
  1408. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Regina.rb +0 -74
  1409. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Santiago.rb +0 -205
  1410. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Sao_Paulo.rb +0 -171
  1411. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/St_Johns.rb +0 -288
  1412. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Tijuana.rb +0 -196
  1413. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Almaty.rb +0 -67
  1414. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Baghdad.rb +0 -73
  1415. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Baku.rb +0 -161
  1416. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Bangkok.rb +0 -20
  1417. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Chongqing.rb +0 -33
  1418. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Colombo.rb +0 -30
  1419. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Dhaka.rb +0 -27
  1420. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Hong_Kong.rb +0 -87
  1421. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Irkutsk.rb +0 -165
  1422. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Jakarta.rb +0 -30
  1423. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Jerusalem.rb +0 -163
  1424. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kabul.rb +0 -20
  1425. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kamchatka.rb +0 -163
  1426. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Karachi.rb +0 -30
  1427. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Katmandu.rb +0 -20
  1428. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kolkata.rb +0 -25
  1429. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Krasnoyarsk.rb +0 -163
  1430. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kuala_Lumpur.rb +0 -31
  1431. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kuwait.rb +0 -18
  1432. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Magadan.rb +0 -163
  1433. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Muscat.rb +0 -18
  1434. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Novosibirsk.rb +0 -164
  1435. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Rangoon.rb +0 -24
  1436. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Riyadh.rb +0 -18
  1437. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Seoul.rb +0 -34
  1438. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Shanghai.rb +0 -35
  1439. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Singapore.rb +0 -33
  1440. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Taipei.rb +0 -59
  1441. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tashkent.rb +0 -47
  1442. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tbilisi.rb +0 -78
  1443. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tehran.rb +0 -121
  1444. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tokyo.rb +0 -30
  1445. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Ulaanbaatar.rb +0 -65
  1446. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Urumqi.rb +0 -33
  1447. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Vladivostok.rb +0 -164
  1448. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yakutsk.rb +0 -163
  1449. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yekaterinburg.rb +0 -165
  1450. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yerevan.rb +0 -165
  1451. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/Azores.rb +0 -270
  1452. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/Cape_Verde.rb +0 -23
  1453. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/South_Georgia.rb +0 -18
  1454. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Adelaide.rb +0 -187
  1455. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Brisbane.rb +0 -35
  1456. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Darwin.rb +0 -29
  1457. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Hobart.rb +0 -193
  1458. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Melbourne.rb +0 -185
  1459. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Perth.rb +0 -37
  1460. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Sydney.rb +0 -185
  1461. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Etc/UTC.rb +0 -16
  1462. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Amsterdam.rb +0 -228
  1463. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Athens.rb +0 -185
  1464. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Belgrade.rb +0 -163
  1465. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Berlin.rb +0 -188
  1466. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Bratislava.rb +0 -13
  1467. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Brussels.rb +0 -232
  1468. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Bucharest.rb +0 -181
  1469. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Budapest.rb +0 -197
  1470. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Copenhagen.rb +0 -179
  1471. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Dublin.rb +0 -276
  1472. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Helsinki.rb +0 -163
  1473. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Istanbul.rb +0 -218
  1474. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Kiev.rb +0 -168
  1475. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Lisbon.rb +0 -268
  1476. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Ljubljana.rb +0 -13
  1477. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/London.rb +0 -288
  1478. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Madrid.rb +0 -211
  1479. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Minsk.rb +0 -170
  1480. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Moscow.rb +0 -181
  1481. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Paris.rb +0 -232
  1482. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Prague.rb +0 -187
  1483. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Riga.rb +0 -176
  1484. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Rome.rb +0 -215
  1485. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Sarajevo.rb +0 -13
  1486. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Skopje.rb +0 -13
  1487. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Sofia.rb +0 -173
  1488. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Stockholm.rb +0 -165
  1489. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Tallinn.rb +0 -172
  1490. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Vienna.rb +0 -183
  1491. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Vilnius.rb +0 -170
  1492. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Warsaw.rb +0 -212
  1493. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Zagreb.rb +0 -13
  1494. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Auckland.rb +0 -202
  1495. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Fiji.rb +0 -23
  1496. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Guam.rb +0 -22
  1497. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Honolulu.rb +0 -28
  1498. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Majuro.rb +0 -20
  1499. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Midway.rb +0 -25
  1500. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Noumea.rb +0 -25
  1501. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Pago_Pago.rb +0 -26
  1502. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Port_Moresby.rb +0 -20
  1503. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Tongatapu.rb +0 -27
  1504. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/info_timezone.rb +0 -52
  1505. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/linked_timezone.rb +0 -51
  1506. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/linked_timezone_info.rb +0 -44
  1507. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/offset_rationals.rb +0 -98
  1508. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/ruby_core_support.rb +0 -56
  1509. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/time_or_datetime.rb +0 -292
  1510. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone.rb +0 -508
  1511. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_definition.rb +0 -56
  1512. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_info.rb +0 -40
  1513. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_offset_info.rb +0 -94
  1514. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_period.rb +0 -198
  1515. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_transition_info.rb +0 -129
  1516. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo.rb +0 -33
  1517. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/vendor.rb +0 -29
  1518. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/version.rb +0 -9
  1519. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/whiny_nil.rb +0 -58
  1520. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/xml_mini/libxml.rb +0 -133
  1521. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/xml_mini/nokogiri.rb +0 -77
  1522. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/xml_mini/rexml.rb +0 -108
  1523. data/src/admin_panel/vendor/rails/activesupport/lib/active_support/xml_mini.rb +0 -31
  1524. data/src/admin_panel/vendor/rails/activesupport/lib/active_support.rb +0 -59
  1525. data/src/admin_panel/vendor/rails/activesupport/lib/activesupport.rb +0 -1
  1526. data/src/admin_panel/vendor/rails/railties/CHANGELOG +0 -2156
  1527. data/src/admin_panel/vendor/rails/railties/MIT-LICENSE +0 -20
  1528. data/src/admin_panel/vendor/rails/railties/README +0 -243
  1529. data/src/admin_panel/vendor/rails/railties/Rakefile +0 -364
  1530. data/src/admin_panel/vendor/rails/railties/bin/about +0 -4
  1531. data/src/admin_panel/vendor/rails/railties/bin/console +0 -3
  1532. data/src/admin_panel/vendor/rails/railties/bin/dbconsole +0 -3
  1533. data/src/admin_panel/vendor/rails/railties/bin/destroy +0 -3
  1534. data/src/admin_panel/vendor/rails/railties/bin/generate +0 -3
  1535. data/src/admin_panel/vendor/rails/railties/bin/performance/benchmarker +0 -3
  1536. data/src/admin_panel/vendor/rails/railties/bin/performance/profiler +0 -3
  1537. data/src/admin_panel/vendor/rails/railties/bin/plugin +0 -3
  1538. data/src/admin_panel/vendor/rails/railties/bin/rails +0 -20
  1539. data/src/admin_panel/vendor/rails/railties/bin/runner +0 -3
  1540. data/src/admin_panel/vendor/rails/railties/bin/server +0 -3
  1541. data/src/admin_panel/vendor/rails/railties/builtin/rails_info/rails/info.rb +0 -129
  1542. data/src/admin_panel/vendor/rails/railties/builtin/rails_info/rails/info_controller.rb +0 -9
  1543. data/src/admin_panel/vendor/rails/railties/builtin/rails_info/rails/info_helper.rb +0 -2
  1544. data/src/admin_panel/vendor/rails/railties/builtin/rails_info/rails_info_controller.rb +0 -2
  1545. data/src/admin_panel/vendor/rails/railties/configs/databases/frontbase.yml +0 -28
  1546. data/src/admin_panel/vendor/rails/railties/configs/databases/ibm_db.yml +0 -62
  1547. data/src/admin_panel/vendor/rails/railties/configs/databases/mysql.yml +0 -60
  1548. data/src/admin_panel/vendor/rails/railties/configs/databases/oracle.yml +0 -39
  1549. data/src/admin_panel/vendor/rails/railties/configs/databases/postgresql.yml +0 -51
  1550. data/src/admin_panel/vendor/rails/railties/configs/databases/sqlite2.yml +0 -19
  1551. data/src/admin_panel/vendor/rails/railties/configs/databases/sqlite3.yml +0 -22
  1552. data/src/admin_panel/vendor/rails/railties/configs/initializers/backtrace_silencers.rb +0 -7
  1553. data/src/admin_panel/vendor/rails/railties/configs/initializers/inflections.rb +0 -10
  1554. data/src/admin_panel/vendor/rails/railties/configs/initializers/mime_types.rb +0 -5
  1555. data/src/admin_panel/vendor/rails/railties/configs/initializers/new_rails_defaults.rb +0 -19
  1556. data/src/admin_panel/vendor/rails/railties/configs/initializers/session_store.rb +0 -15
  1557. data/src/admin_panel/vendor/rails/railties/configs/locales/en.yml +0 -5
  1558. data/src/admin_panel/vendor/rails/railties/configs/routes.rb +0 -43
  1559. data/src/admin_panel/vendor/rails/railties/dispatches/config.ru +0 -7
  1560. data/src/admin_panel/vendor/rails/railties/dispatches/dispatch.fcgi +0 -24
  1561. data/src/admin_panel/vendor/rails/railties/dispatches/dispatch.rb +0 -10
  1562. data/src/admin_panel/vendor/rails/railties/dispatches/gateway.cgi +0 -97
  1563. data/src/admin_panel/vendor/rails/railties/doc/README_FOR_APP +0 -2
  1564. data/src/admin_panel/vendor/rails/railties/environments/boot.rb +0 -110
  1565. data/src/admin_panel/vendor/rails/railties/environments/development.rb +0 -17
  1566. data/src/admin_panel/vendor/rails/railties/environments/environment.rb +0 -41
  1567. data/src/admin_panel/vendor/rails/railties/environments/production.rb +0 -28
  1568. data/src/admin_panel/vendor/rails/railties/environments/test.rb +0 -28
  1569. data/src/admin_panel/vendor/rails/railties/fresh_rakefile +0 -10
  1570. data/src/admin_panel/vendor/rails/railties/helpers/application_controller.rb +0 -10
  1571. data/src/admin_panel/vendor/rails/railties/helpers/application_helper.rb +0 -3
  1572. data/src/admin_panel/vendor/rails/railties/helpers/performance_test.rb +0 -9
  1573. data/src/admin_panel/vendor/rails/railties/helpers/test_helper.rb +0 -38
  1574. data/src/admin_panel/vendor/rails/railties/html/404.html +0 -30
  1575. data/src/admin_panel/vendor/rails/railties/html/422.html +0 -30
  1576. data/src/admin_panel/vendor/rails/railties/html/500.html +0 -30
  1577. data/src/admin_panel/vendor/rails/railties/html/favicon.ico +0 -0
  1578. data/src/admin_panel/vendor/rails/railties/html/images/rails.png +0 -0
  1579. data/src/admin_panel/vendor/rails/railties/html/index.html +0 -275
  1580. data/src/admin_panel/vendor/rails/railties/html/javascripts/application.js +0 -2
  1581. data/src/admin_panel/vendor/rails/railties/html/javascripts/controls.js +0 -963
  1582. data/src/admin_panel/vendor/rails/railties/html/javascripts/dragdrop.js +0 -973
  1583. data/src/admin_panel/vendor/rails/railties/html/javascripts/effects.js +0 -1128
  1584. data/src/admin_panel/vendor/rails/railties/html/javascripts/prototype.js +0 -4320
  1585. data/src/admin_panel/vendor/rails/railties/html/robots.txt +0 -5
  1586. data/src/admin_panel/vendor/rails/railties/lib/code_statistics.rb +0 -107
  1587. data/src/admin_panel/vendor/rails/railties/lib/commands/about.rb +0 -3
  1588. data/src/admin_panel/vendor/rails/railties/lib/commands/console.rb +0 -45
  1589. data/src/admin_panel/vendor/rails/railties/lib/commands/dbconsole.rb +0 -83
  1590. data/src/admin_panel/vendor/rails/railties/lib/commands/destroy.rb +0 -6
  1591. data/src/admin_panel/vendor/rails/railties/lib/commands/generate.rb +0 -6
  1592. data/src/admin_panel/vendor/rails/railties/lib/commands/ncgi/listener +0 -86
  1593. data/src/admin_panel/vendor/rails/railties/lib/commands/ncgi/tracker +0 -69
  1594. data/src/admin_panel/vendor/rails/railties/lib/commands/performance/benchmarker.rb +0 -24
  1595. data/src/admin_panel/vendor/rails/railties/lib/commands/performance/profiler.rb +0 -50
  1596. data/src/admin_panel/vendor/rails/railties/lib/commands/plugin.rb +0 -968
  1597. data/src/admin_panel/vendor/rails/railties/lib/commands/runner.rb +0 -54
  1598. data/src/admin_panel/vendor/rails/railties/lib/commands/server.rb +0 -114
  1599. data/src/admin_panel/vendor/rails/railties/lib/commands/update.rb +0 -4
  1600. data/src/admin_panel/vendor/rails/railties/lib/commands.rb +0 -17
  1601. data/src/admin_panel/vendor/rails/railties/lib/console_app.rb +0 -30
  1602. data/src/admin_panel/vendor/rails/railties/lib/console_sandbox.rb +0 -6
  1603. data/src/admin_panel/vendor/rails/railties/lib/console_with_helpers.rb +0 -5
  1604. data/src/admin_panel/vendor/rails/railties/lib/dispatcher.rb +0 -24
  1605. data/src/admin_panel/vendor/rails/railties/lib/fcgi_handler.rb +0 -239
  1606. data/src/admin_panel/vendor/rails/railties/lib/initializer.rb +0 -1105
  1607. data/src/admin_panel/vendor/rails/railties/lib/performance_test_help.rb +0 -5
  1608. data/src/admin_panel/vendor/rails/railties/lib/rails/backtrace_cleaner.rb +0 -54
  1609. data/src/admin_panel/vendor/rails/railties/lib/rails/gem_builder.rb +0 -21
  1610. data/src/admin_panel/vendor/rails/railties/lib/rails/gem_dependency.rb +0 -282
  1611. data/src/admin_panel/vendor/rails/railties/lib/rails/plugin/loader.rb +0 -191
  1612. data/src/admin_panel/vendor/rails/railties/lib/rails/plugin/locator.rb +0 -100
  1613. data/src/admin_panel/vendor/rails/railties/lib/rails/plugin.rb +0 -167
  1614. data/src/admin_panel/vendor/rails/railties/lib/rails/rack/debugger.rb +0 -21
  1615. data/src/admin_panel/vendor/rails/railties/lib/rails/rack/log_tailer.rb +0 -35
  1616. data/src/admin_panel/vendor/rails/railties/lib/rails/rack/metal.rb +0 -51
  1617. data/src/admin_panel/vendor/rails/railties/lib/rails/rack/static.rb +0 -46
  1618. data/src/admin_panel/vendor/rails/railties/lib/rails/rack.rb +0 -8
  1619. data/src/admin_panel/vendor/rails/railties/lib/rails/vendor_gem_source_index.rb +0 -140
  1620. data/src/admin_panel/vendor/rails/railties/lib/rails/version.rb +0 -9
  1621. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/base.rb +0 -266
  1622. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/commands.rb +0 -621
  1623. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generated_attribute.rb +0 -46
  1624. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/applications/app/USAGE +0 -9
  1625. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/applications/app/app_generator.rb +0 -258
  1626. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/applications/app/scm/git.rb +0 -16
  1627. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/applications/app/scm/scm.rb +0 -8
  1628. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/applications/app/scm/svn.rb +0 -7
  1629. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/applications/app/template_runner.rb +0 -401
  1630. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/controller/USAGE +0 -30
  1631. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/controller/controller_generator.rb +0 -43
  1632. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/controller.rb +0 -7
  1633. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/functional_test.rb +0 -8
  1634. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/helper.rb +0 -2
  1635. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/helper_test.rb +0 -4
  1636. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/view.html.erb +0 -2
  1637. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/helper/USAGE +0 -24
  1638. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/helper/helper_generator.rb +0 -25
  1639. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/helper/templates/helper.rb +0 -2
  1640. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/helper/templates/helper_test.rb +0 -4
  1641. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/USAGE +0 -8
  1642. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/integration_test_generator.rb +0 -16
  1643. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/templates/integration_test.rb +0 -10
  1644. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/mailer/USAGE +0 -16
  1645. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb +0 -30
  1646. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/fixture.erb +0 -3
  1647. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/fixture.rhtml +0 -0
  1648. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb +0 -15
  1649. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb +0 -20
  1650. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/view.erb +0 -3
  1651. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/view.rhtml +0 -0
  1652. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/metal/USAGE +0 -8
  1653. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/metal/metal_generator.rb +0 -8
  1654. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/metal/templates/metal.rb +0 -12
  1655. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/migration/USAGE +0 -29
  1656. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/migration/migration_generator.rb +0 -20
  1657. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/migration/templates/migration.rb +0 -11
  1658. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/model/USAGE +0 -27
  1659. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/model/model_generator.rb +0 -45
  1660. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml +0 -19
  1661. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/migration.rb +0 -16
  1662. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/model.rb +0 -5
  1663. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/unit_test.rb +0 -8
  1664. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/observer/USAGE +0 -13
  1665. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/observer/observer_generator.rb +0 -16
  1666. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/observer/templates/observer.rb +0 -2
  1667. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/observer/templates/unit_test.rb +0 -8
  1668. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/performance_test/USAGE +0 -8
  1669. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/performance_test/performance_test_generator.rb +0 -16
  1670. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/performance_test/templates/performance_test.rb +0 -9
  1671. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/USAGE +0 -25
  1672. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/plugin_generator.rb +0 -39
  1673. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/MIT-LICENSE +0 -20
  1674. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/README +0 -13
  1675. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/Rakefile +0 -23
  1676. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/USAGE +0 -8
  1677. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/generator.rb +0 -8
  1678. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/init.rb +0 -1
  1679. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/install.rb +0 -1
  1680. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/plugin.rb +0 -1
  1681. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/tasks.rake +0 -4
  1682. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/test_helper.rb +0 -3
  1683. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/uninstall.rb +0 -1
  1684. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/unit_test.rb +0 -8
  1685. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/resource/USAGE +0 -23
  1686. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/resource/resource_generator.rb +0 -76
  1687. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/controller.rb +0 -2
  1688. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/functional_test.rb +0 -8
  1689. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/helper.rb +0 -2
  1690. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/helper_test.rb +0 -4
  1691. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/USAGE +0 -29
  1692. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb +0 -102
  1693. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb +0 -85
  1694. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/functional_test.rb +0 -45
  1695. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/helper.rb +0 -2
  1696. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/helper_test.rb +0 -4
  1697. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/layout.html.erb +0 -17
  1698. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/style.css +0 -54
  1699. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.html.erb +0 -18
  1700. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb +0 -24
  1701. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.html.erb +0 -17
  1702. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_show.html.erb +0 -10
  1703. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/USAGE +0 -10
  1704. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/session_migration_generator.rb +0 -18
  1705. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb +0 -16
  1706. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/lookup.rb +0 -249
  1707. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/manifest.rb +0 -53
  1708. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/options.rb +0 -150
  1709. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/scripts/destroy.rb +0 -29
  1710. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/scripts/generate.rb +0 -7
  1711. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/scripts/update.rb +0 -12
  1712. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/scripts.rb +0 -89
  1713. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/secret_key_generator.rb +0 -24
  1714. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/simple_logger.rb +0 -46
  1715. data/src/admin_panel/vendor/rails/railties/lib/rails_generator/spec.rb +0 -44
  1716. data/src/admin_panel/vendor/rails/railties/lib/rails_generator.rb +0 -43
  1717. data/src/admin_panel/vendor/rails/railties/lib/railties_path.rb +0 -1
  1718. data/src/admin_panel/vendor/rails/railties/lib/ruby_version_check.rb +0 -17
  1719. data/src/admin_panel/vendor/rails/railties/lib/rubyprof_ext.rb +0 -35
  1720. data/src/admin_panel/vendor/rails/railties/lib/source_annotation_extractor.rb +0 -102
  1721. data/src/admin_panel/vendor/rails/railties/lib/tasks/annotations.rake +0 -20
  1722. data/src/admin_panel/vendor/rails/railties/lib/tasks/databases.rake +0 -423
  1723. data/src/admin_panel/vendor/rails/railties/lib/tasks/documentation.rake +0 -88
  1724. data/src/admin_panel/vendor/rails/railties/lib/tasks/framework.rake +0 -143
  1725. data/src/admin_panel/vendor/rails/railties/lib/tasks/gems.rake +0 -65
  1726. data/src/admin_panel/vendor/rails/railties/lib/tasks/log.rake +0 -9
  1727. data/src/admin_panel/vendor/rails/railties/lib/tasks/middleware.rake +0 -7
  1728. data/src/admin_panel/vendor/rails/railties/lib/tasks/misc.rake +0 -63
  1729. data/src/admin_panel/vendor/rails/railties/lib/tasks/rails.rb +0 -8
  1730. data/src/admin_panel/vendor/rails/railties/lib/tasks/routes.rake +0 -17
  1731. data/src/admin_panel/vendor/rails/railties/lib/tasks/statistics.rake +0 -17
  1732. data/src/admin_panel/vendor/rails/railties/lib/tasks/testing.rake +0 -139
  1733. data/src/admin_panel/vendor/rails/railties/lib/tasks/tmp.rake +0 -37
  1734. data/src/admin_panel/vendor/rails/railties/lib/test_help.rb +0 -35
  1735. data/src/admin_panel/vendor/rails/railties/lib/webrick_server.rb +0 -156
@@ -1,2469 +0,0 @@
1
- require 'abstract_unit'
2
-
3
- class DateHelperTest < ActionView::TestCase
4
- tests ActionView::Helpers::DateHelper
5
-
6
- silence_warnings do
7
- Post = Struct.new("Post", :id, :written_on, :updated_at)
8
- Post.class_eval do
9
- def id
10
- 123
11
- end
12
- def id_before_type_cast
13
- 123
14
- end
15
- def to_param
16
- '123'
17
- end
18
- end
19
- end
20
-
21
- def assert_distance_of_time_in_words(from, to=nil)
22
- to ||= from
23
-
24
- # 0..1 with include_seconds
25
- assert_equal "less than 5 seconds", distance_of_time_in_words(from, to + 0.seconds, true)
26
- assert_equal "less than 5 seconds", distance_of_time_in_words(from, to + 4.seconds, true)
27
- assert_equal "less than 10 seconds", distance_of_time_in_words(from, to + 5.seconds, true)
28
- assert_equal "less than 10 seconds", distance_of_time_in_words(from, to + 9.seconds, true)
29
- assert_equal "less than 20 seconds", distance_of_time_in_words(from, to + 10.seconds, true)
30
- assert_equal "less than 20 seconds", distance_of_time_in_words(from, to + 19.seconds, true)
31
- assert_equal "half a minute", distance_of_time_in_words(from, to + 20.seconds, true)
32
- assert_equal "half a minute", distance_of_time_in_words(from, to + 39.seconds, true)
33
- assert_equal "less than a minute", distance_of_time_in_words(from, to + 40.seconds, true)
34
- assert_equal "less than a minute", distance_of_time_in_words(from, to + 59.seconds, true)
35
- assert_equal "1 minute", distance_of_time_in_words(from, to + 60.seconds, true)
36
- assert_equal "1 minute", distance_of_time_in_words(from, to + 89.seconds, true)
37
-
38
- # First case 0..1
39
- assert_equal "less than a minute", distance_of_time_in_words(from, to + 0.seconds)
40
- assert_equal "less than a minute", distance_of_time_in_words(from, to + 29.seconds)
41
- assert_equal "1 minute", distance_of_time_in_words(from, to + 30.seconds)
42
- assert_equal "1 minute", distance_of_time_in_words(from, to + 1.minutes + 29.seconds)
43
-
44
- # 2..44
45
- assert_equal "2 minutes", distance_of_time_in_words(from, to + 1.minutes + 30.seconds)
46
- assert_equal "44 minutes", distance_of_time_in_words(from, to + 44.minutes + 29.seconds)
47
-
48
- # 45..89
49
- assert_equal "about 1 hour", distance_of_time_in_words(from, to + 44.minutes + 30.seconds)
50
- assert_equal "about 1 hour", distance_of_time_in_words(from, to + 89.minutes + 29.seconds)
51
-
52
- # 90..1439
53
- assert_equal "about 2 hours", distance_of_time_in_words(from, to + 89.minutes + 30.seconds)
54
- assert_equal "about 24 hours", distance_of_time_in_words(from, to + 23.hours + 59.minutes + 29.seconds)
55
-
56
- # 1440..2879
57
- assert_equal "1 day", distance_of_time_in_words(from, to + 23.hours + 59.minutes + 30.seconds)
58
- assert_equal "1 day", distance_of_time_in_words(from, to + 47.hours + 59.minutes + 29.seconds)
59
-
60
- # 2880..43199
61
- assert_equal "2 days", distance_of_time_in_words(from, to + 47.hours + 59.minutes + 30.seconds)
62
- assert_equal "29 days", distance_of_time_in_words(from, to + 29.days + 23.hours + 59.minutes + 29.seconds)
63
-
64
- # 43200..86399
65
- assert_equal "about 1 month", distance_of_time_in_words(from, to + 29.days + 23.hours + 59.minutes + 30.seconds)
66
- assert_equal "about 1 month", distance_of_time_in_words(from, to + 59.days + 23.hours + 59.minutes + 29.seconds)
67
-
68
- # 86400..525599
69
- assert_equal "2 months", distance_of_time_in_words(from, to + 59.days + 23.hours + 59.minutes + 30.seconds)
70
- assert_equal "12 months", distance_of_time_in_words(from, to + 1.years - 31.seconds)
71
-
72
- # 525600..1051199
73
- assert_equal "about 1 year", distance_of_time_in_words(from, to + 1.years - 30.seconds)
74
- assert_equal "about 1 year", distance_of_time_in_words(from, to + 2.years - 31.seconds)
75
-
76
- # > 1051199
77
- assert_equal "over 2 years", distance_of_time_in_words(from, to + 2.years + 30.seconds)
78
- assert_equal "over 10 years", distance_of_time_in_words(from, to + 10.years)
79
-
80
- # test to < from
81
- assert_equal "about 4 hours", distance_of_time_in_words(from + 4.hours, to)
82
- assert_equal "less than 20 seconds", distance_of_time_in_words(from + 19.seconds, to, true)
83
- end
84
-
85
- def test_distance_in_words
86
- from = Time.mktime(2004, 6, 6, 21, 45, 0)
87
- assert_distance_of_time_in_words(from)
88
- end
89
-
90
- def test_distance_in_words_with_time_zones
91
- from = Time.mktime(2004, 6, 6, 21, 45, 0)
92
- assert_distance_of_time_in_words(from.in_time_zone('Alaska'))
93
- assert_distance_of_time_in_words(from.in_time_zone('Hawaii'))
94
- end
95
-
96
- def test_distance_in_words_with_different_time_zones
97
- from = Time.mktime(2004, 6, 6, 21, 45, 0)
98
- assert_distance_of_time_in_words(
99
- from.in_time_zone('Alaska'),
100
- from.in_time_zone('Hawaii')
101
- )
102
- end
103
-
104
- def test_distance_in_words_with_dates
105
- start_date = Date.new 1975, 1, 31
106
- end_date = Date.new 1977, 1, 31
107
- assert_equal("over 2 years", distance_of_time_in_words(start_date, end_date))
108
- end
109
-
110
- def test_distance_in_words_with_integers
111
- assert_equal "less than a minute", distance_of_time_in_words(59)
112
- assert_equal "about 1 hour", distance_of_time_in_words(60*60)
113
- assert_equal "less than a minute", distance_of_time_in_words(0, 59)
114
- assert_equal "about 1 hour", distance_of_time_in_words(60*60, 0)
115
- end
116
-
117
- def test_time_ago_in_words
118
- assert_equal "about 1 year", time_ago_in_words(1.year.ago - 1.day)
119
- end
120
-
121
- def test_select_day
122
- expected = %(<select id="date_day" name="date[day]">\n)
123
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
124
- expected << "</select>\n"
125
-
126
- assert_dom_equal expected, select_day(Time.mktime(2003, 8, 16))
127
- assert_dom_equal expected, select_day(16)
128
- end
129
-
130
- def test_select_day_with_blank
131
- expected = %(<select id="date_day" name="date[day]">\n)
132
- expected << %(<option value=""></option>\n<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
133
- expected << "</select>\n"
134
-
135
- assert_dom_equal expected, select_day(Time.mktime(2003, 8, 16), :include_blank => true)
136
- assert_dom_equal expected, select_day(16, :include_blank => true)
137
- end
138
-
139
- def test_select_day_nil_with_blank
140
- expected = %(<select id="date_day" name="date[day]">\n)
141
- expected << %(<option value=""></option>\n<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
142
- expected << "</select>\n"
143
-
144
- assert_dom_equal expected, select_day(nil, :include_blank => true)
145
- end
146
-
147
- def test_select_day_with_html_options
148
- expected = %(<select id="date_day" name="date[day]" class="selector">\n)
149
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
150
- expected << "</select>\n"
151
-
152
- assert_dom_equal expected, select_day(Time.mktime(2003, 8, 16), {}, :class => 'selector')
153
- assert_dom_equal expected, select_day(16, {}, :class => 'selector')
154
- end
155
-
156
- def test_select_day_with_default_prompt
157
- expected = %(<select id="date_day" name="date[day]">\n)
158
- expected << %(<option value="">Day</option>\n<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
159
- expected << "</select>\n"
160
-
161
- assert_dom_equal expected, select_day(16, :prompt => true)
162
- end
163
-
164
- def test_select_day_with_custom_prompt
165
- expected = %(<select id="date_day" name="date[day]">\n)
166
- expected << %(<option value="">Choose day</option>\n<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
167
- expected << "</select>\n"
168
-
169
- assert_dom_equal expected, select_day(16, :prompt => 'Choose day')
170
- end
171
-
172
- def test_select_month
173
- expected = %(<select id="date_month" name="date[month]">\n)
174
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
175
- expected << "</select>\n"
176
-
177
- assert_dom_equal expected, select_month(Time.mktime(2003, 8, 16))
178
- assert_dom_equal expected, select_month(8)
179
- end
180
-
181
- def test_select_month_with_disabled
182
- expected = %(<select id="date_month" name="date[month]" disabled="disabled">\n)
183
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
184
- expected << "</select>\n"
185
-
186
- assert_dom_equal expected, select_month(Time.mktime(2003, 8, 16), :disabled => true)
187
- assert_dom_equal expected, select_month(8, :disabled => true)
188
- end
189
-
190
- def test_select_month_with_field_name_override
191
- expected = %(<select id="date_mois" name="date[mois]">\n)
192
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
193
- expected << "</select>\n"
194
-
195
- assert_dom_equal expected, select_month(Time.mktime(2003, 8, 16), :field_name => 'mois')
196
- assert_dom_equal expected, select_month(8, :field_name => 'mois')
197
- end
198
-
199
- def test_select_month_with_blank
200
- expected = %(<select id="date_month" name="date[month]">\n)
201
- expected << %(<option value=""></option>\n<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
202
- expected << "</select>\n"
203
-
204
- assert_dom_equal expected, select_month(Time.mktime(2003, 8, 16), :include_blank => true)
205
- assert_dom_equal expected, select_month(8, :include_blank => true)
206
- end
207
-
208
- def test_select_month_nil_with_blank
209
- expected = %(<select id="date_month" name="date[month]">\n)
210
- expected << %(<option value=""></option>\n<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
211
- expected << "</select>\n"
212
-
213
- assert_dom_equal expected, select_month(nil, :include_blank => true)
214
- end
215
-
216
- def test_select_month_with_numbers
217
- expected = %(<select id="date_month" name="date[month]">\n)
218
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8" selected="selected">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n)
219
- expected << "</select>\n"
220
-
221
- assert_dom_equal expected, select_month(Time.mktime(2003, 8, 16), :use_month_numbers => true)
222
- assert_dom_equal expected, select_month(8, :use_month_numbers => true)
223
- end
224
-
225
- def test_select_month_with_numbers_and_names
226
- expected = %(<select id="date_month" name="date[month]">\n)
227
- expected << %(<option value="1">1 - January</option>\n<option value="2">2 - February</option>\n<option value="3">3 - March</option>\n<option value="4">4 - April</option>\n<option value="5">5 - May</option>\n<option value="6">6 - June</option>\n<option value="7">7 - July</option>\n<option value="8" selected="selected">8 - August</option>\n<option value="9">9 - September</option>\n<option value="10">10 - October</option>\n<option value="11">11 - November</option>\n<option value="12">12 - December</option>\n)
228
- expected << "</select>\n"
229
-
230
- assert_dom_equal expected, select_month(Time.mktime(2003, 8, 16), :add_month_numbers => true)
231
- assert_dom_equal expected, select_month(8, :add_month_numbers => true)
232
- end
233
-
234
- def test_select_month_with_numbers_and_names_with_abbv
235
- expected = %(<select id="date_month" name="date[month]">\n)
236
- expected << %(<option value="1">1 - Jan</option>\n<option value="2">2 - Feb</option>\n<option value="3">3 - Mar</option>\n<option value="4">4 - Apr</option>\n<option value="5">5 - May</option>\n<option value="6">6 - Jun</option>\n<option value="7">7 - Jul</option>\n<option value="8" selected="selected">8 - Aug</option>\n<option value="9">9 - Sep</option>\n<option value="10">10 - Oct</option>\n<option value="11">11 - Nov</option>\n<option value="12">12 - Dec</option>\n)
237
- expected << "</select>\n"
238
-
239
- assert_dom_equal expected, select_month(Time.mktime(2003, 8, 16), :add_month_numbers => true, :use_short_month => true)
240
- assert_dom_equal expected, select_month(8, :add_month_numbers => true, :use_short_month => true)
241
- end
242
-
243
- def test_select_month_with_abbv
244
- expected = %(<select id="date_month" name="date[month]">\n)
245
- expected << %(<option value="1">Jan</option>\n<option value="2">Feb</option>\n<option value="3">Mar</option>\n<option value="4">Apr</option>\n<option value="5">May</option>\n<option value="6">Jun</option>\n<option value="7">Jul</option>\n<option value="8" selected="selected">Aug</option>\n<option value="9">Sep</option>\n<option value="10">Oct</option>\n<option value="11">Nov</option>\n<option value="12">Dec</option>\n)
246
- expected << "</select>\n"
247
-
248
- assert_dom_equal expected, select_month(Time.mktime(2003, 8, 16), :use_short_month => true)
249
- assert_dom_equal expected, select_month(8, :use_short_month => true)
250
- end
251
-
252
- def test_select_month_with_custom_names
253
- month_names = %w(nil Januar Februar Marts April Maj Juni Juli August September Oktober November December)
254
-
255
- expected = %(<select id="date_month" name="date[month]">\n)
256
- 1.upto(12) { |month| expected << %(<option value="#{month}"#{' selected="selected"' if month == 8}>#{month_names[month]}</option>\n) }
257
- expected << "</select>\n"
258
-
259
- assert_dom_equal expected, select_month(Time.mktime(2003, 8, 16), :use_month_names => month_names)
260
- assert_dom_equal expected, select_month(8, :use_month_names => month_names)
261
- end
262
-
263
- def test_select_month_with_zero_indexed_custom_names
264
- month_names = %w(Januar Februar Marts April Maj Juni Juli August September Oktober November December)
265
-
266
- expected = %(<select id="date_month" name="date[month]">\n)
267
- 1.upto(12) { |month| expected << %(<option value="#{month}"#{' selected="selected"' if month == 8}>#{month_names[month-1]}</option>\n) }
268
- expected << "</select>\n"
269
-
270
- assert_dom_equal expected, select_month(Time.mktime(2003, 8, 16), :use_month_names => month_names)
271
- assert_dom_equal expected, select_month(8, :use_month_names => month_names)
272
- end
273
-
274
- def test_select_month_with_hidden
275
- assert_dom_equal "<input type=\"hidden\" id=\"date_month\" name=\"date[month]\" value=\"8\" />\n", select_month(8, :use_hidden => true)
276
- end
277
-
278
- def test_select_month_with_hidden_and_field_name
279
- assert_dom_equal "<input type=\"hidden\" id=\"date_mois\" name=\"date[mois]\" value=\"8\" />\n", select_month(8, :use_hidden => true, :field_name => 'mois')
280
- end
281
-
282
- def test_select_month_with_html_options
283
- expected = %(<select id="date_month" name="date[month]" class="selector" accesskey="M">\n)
284
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
285
- expected << "</select>\n"
286
-
287
- assert_dom_equal expected, select_month(Time.mktime(2003, 8, 16), {}, :class => 'selector', :accesskey => 'M')
288
- #result = select_month(Time.mktime(2003, 8, 16), {}, :class => 'selector', :accesskey => 'M')
289
- #assert result.include?('<select id="date_month" name="date[month]"')
290
- #assert result.include?('class="selector"')
291
- #assert result.include?('accesskey="M"')
292
- #assert result.include?('<option value="1">January')
293
- end
294
-
295
- def test_select_month_with_default_prompt
296
- expected = %(<select id="date_month" name="date[month]">\n)
297
- expected << %(<option value="">Month</option>\n<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
298
- expected << "</select>\n"
299
-
300
- assert_dom_equal expected, select_month(8, :prompt => true)
301
- end
302
-
303
- def test_select_month_with_custom_prompt
304
- expected = %(<select id="date_month" name="date[month]">\n)
305
- expected << %(<option value="">Choose month</option>\n<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
306
- expected << "</select>\n"
307
-
308
- assert_dom_equal expected, select_month(8, :prompt => 'Choose month')
309
- end
310
-
311
- def test_select_year
312
- expected = %(<select id="date_year" name="date[year]">\n)
313
- expected << %(<option value="2003" selected="selected">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
314
- expected << "</select>\n"
315
-
316
- assert_dom_equal expected, select_year(Time.mktime(2003, 8, 16), :start_year => 2003, :end_year => 2005)
317
- assert_dom_equal expected, select_year(2003, :start_year => 2003, :end_year => 2005)
318
- end
319
-
320
- def test_select_year_with_disabled
321
- expected = %(<select id="date_year" name="date[year]" disabled="disabled">\n)
322
- expected << %(<option value="2003" selected="selected">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
323
- expected << "</select>\n"
324
-
325
- assert_dom_equal expected, select_year(Time.mktime(2003, 8, 16), :disabled => true, :start_year => 2003, :end_year => 2005)
326
- assert_dom_equal expected, select_year(2003, :disabled => true, :start_year => 2003, :end_year => 2005)
327
- end
328
-
329
- def test_select_year_with_field_name_override
330
- expected = %(<select id="date_annee" name="date[annee]">\n)
331
- expected << %(<option value="2003" selected="selected">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
332
- expected << "</select>\n"
333
-
334
- assert_dom_equal expected, select_year(Time.mktime(2003, 8, 16), :start_year => 2003, :end_year => 2005, :field_name => 'annee')
335
- assert_dom_equal expected, select_year(2003, :start_year => 2003, :end_year => 2005, :field_name => 'annee')
336
- end
337
-
338
- def test_select_year_with_type_discarding
339
- expected = %(<select id="date_year" name="date_year">\n)
340
- expected << %(<option value="2003" selected="selected">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
341
- expected << "</select>\n"
342
-
343
- assert_dom_equal expected, select_year(
344
- Time.mktime(2003, 8, 16), :prefix => "date_year", :discard_type => true, :start_year => 2003, :end_year => 2005)
345
- assert_dom_equal expected, select_year(
346
- 2003, :prefix => "date_year", :discard_type => true, :start_year => 2003, :end_year => 2005)
347
- end
348
-
349
- def test_select_year_descending
350
- expected = %(<select id="date_year" name="date[year]">\n)
351
- expected << %(<option value="2005" selected="selected">2005</option>\n<option value="2004">2004</option>\n<option value="2003">2003</option>\n)
352
- expected << "</select>\n"
353
-
354
- assert_dom_equal expected, select_year(Time.mktime(2005, 8, 16), :start_year => 2005, :end_year => 2003)
355
- assert_dom_equal expected, select_year(2005, :start_year => 2005, :end_year => 2003)
356
- end
357
-
358
- def test_select_year_with_hidden
359
- assert_dom_equal "<input type=\"hidden\" id=\"date_year\" name=\"date[year]\" value=\"2007\" />\n", select_year(2007, :use_hidden => true)
360
- end
361
-
362
- def test_select_year_with_hidden_and_field_name
363
- assert_dom_equal "<input type=\"hidden\" id=\"date_anno\" name=\"date[anno]\" value=\"2007\" />\n", select_year(2007, :use_hidden => true, :field_name => 'anno')
364
- end
365
-
366
- def test_select_year_with_html_options
367
- expected = %(<select id="date_year" name="date[year]" class="selector" accesskey="M">\n)
368
- expected << %(<option value="2003" selected="selected">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
369
- expected << "</select>\n"
370
-
371
- assert_dom_equal expected, select_year(Time.mktime(2003, 8, 16), {:start_year => 2003, :end_year => 2005}, :class => 'selector', :accesskey => 'M')
372
- #result = select_year(Time.mktime(2003, 8, 16), {:start_year => 2003, :end_year => 2005}, :class => 'selector', :accesskey => 'M')
373
- #assert result.include?('<select id="date_year" name="date[year]"')
374
- #assert result.include?('class="selector"')
375
- #assert result.include?('accesskey="M"')
376
- #assert result.include?('<option value="2003"')
377
- end
378
-
379
- def test_select_year_with_default_prompt
380
- expected = %(<select id="date_year" name="date[year]">\n)
381
- expected << %(<option value="">Year</option>\n<option value="2003">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
382
- expected << "</select>\n"
383
-
384
- assert_dom_equal expected, select_year(nil, :start_year => 2003, :end_year => 2005, :prompt => true)
385
- end
386
-
387
- def test_select_year_with_custom_prompt
388
- expected = %(<select id="date_year" name="date[year]">\n)
389
- expected << %(<option value="">Choose year</option>\n<option value="2003">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
390
- expected << "</select>\n"
391
-
392
- assert_dom_equal expected, select_year(nil, :start_year => 2003, :end_year => 2005, :prompt => 'Choose year')
393
- end
394
-
395
- def test_select_hour
396
- expected = %(<select id="date_hour" name="date[hour]">\n)
397
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
398
- expected << "</select>\n"
399
-
400
- assert_dom_equal expected, select_hour(Time.mktime(2003, 8, 16, 8, 4, 18))
401
- end
402
-
403
- def test_select_hour_with_disabled
404
- expected = %(<select id="date_hour" name="date[hour]" disabled="disabled">\n)
405
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
406
- expected << "</select>\n"
407
-
408
- assert_dom_equal expected, select_hour(Time.mktime(2003, 8, 16, 8, 4, 18), :disabled => true)
409
- end
410
-
411
- def test_select_hour_with_field_name_override
412
- expected = %(<select id="date_heure" name="date[heure]">\n)
413
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
414
- expected << "</select>\n"
415
-
416
- assert_dom_equal expected, select_hour(Time.mktime(2003, 8, 16, 8, 4, 18), :field_name => 'heure')
417
- end
418
-
419
- def test_select_hour_with_blank
420
- expected = %(<select id="date_hour" name="date[hour]">\n)
421
- expected << %(<option value=""></option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
422
- expected << "</select>\n"
423
-
424
- assert_dom_equal expected, select_hour(Time.mktime(2003, 8, 16, 8, 4, 18), :include_blank => true)
425
- end
426
-
427
- def test_select_hour_nil_with_blank
428
- expected = %(<select id="date_hour" name="date[hour]">\n)
429
- expected << %(<option value=""></option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
430
- expected << "</select>\n"
431
-
432
- assert_dom_equal expected, select_hour(nil, :include_blank => true)
433
- end
434
-
435
- def test_select_hour_with_html_options
436
- expected = %(<select id="date_hour" name="date[hour]" class="selector" accesskey="M">\n)
437
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
438
- expected << "</select>\n"
439
-
440
- assert_dom_equal expected, select_hour(Time.mktime(2003, 8, 16, 8, 4, 18), {}, :class => 'selector', :accesskey => 'M')
441
- end
442
-
443
- def test_select_hour_with_default_prompt
444
- expected = %(<select id="date_hour" name="date[hour]">\n)
445
- expected << %(<option value="">Hour</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
446
- expected << "</select>\n"
447
-
448
- assert_dom_equal expected, select_hour(Time.mktime(2003, 8, 16, 8, 4, 18), :prompt => true)
449
- end
450
-
451
- def test_select_hour_with_custom_prompt
452
- expected = %(<select id="date_hour" name="date[hour]">\n)
453
- expected << %(<option value="">Choose hour</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
454
- expected << "</select>\n"
455
-
456
- assert_dom_equal expected, select_hour(Time.mktime(2003, 8, 16, 8, 4, 18), :prompt => 'Choose hour')
457
- end
458
-
459
- def test_select_minute
460
- expected = %(<select id="date_minute" name="date[minute]">\n)
461
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
462
- expected << "</select>\n"
463
-
464
- assert_dom_equal expected, select_minute(Time.mktime(2003, 8, 16, 8, 4, 18))
465
- end
466
-
467
- def test_select_minute_with_disabled
468
- expected = %(<select id="date_minute" name="date[minute]" disabled="disabled">\n)
469
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
470
- expected << "</select>\n"
471
-
472
- assert_dom_equal expected, select_minute(Time.mktime(2003, 8, 16, 8, 4, 18), :disabled => true)
473
- end
474
-
475
- def test_select_minute_with_field_name_override
476
- expected = %(<select id="date_minuto" name="date[minuto]">\n)
477
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
478
- expected << "</select>\n"
479
-
480
- assert_dom_equal expected, select_minute(Time.mktime(2003, 8, 16, 8, 4, 18), :field_name => 'minuto')
481
- end
482
-
483
- def test_select_minute_with_blank
484
- expected = %(<select id="date_minute" name="date[minute]">\n)
485
- expected << %(<option value=""></option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
486
- expected << "</select>\n"
487
-
488
- assert_dom_equal expected, select_minute(Time.mktime(2003, 8, 16, 8, 4, 18), :include_blank => true)
489
- end
490
-
491
- def test_select_minute_with_blank_and_step
492
- expected = %(<select id="date_minute" name="date[minute]">\n)
493
- expected << %(<option value=""></option>\n<option value="00">00</option>\n<option value="15">15</option>\n<option value="30">30</option>\n<option value="45">45</option>\n)
494
- expected << "</select>\n"
495
-
496
- assert_dom_equal expected, select_minute(Time.mktime(2003, 8, 16, 8, 4, 18), { :include_blank => true , :minute_step => 15 })
497
- end
498
-
499
- def test_select_minute_nil_with_blank
500
- expected = %(<select id="date_minute" name="date[minute]">\n)
501
- expected << %(<option value=""></option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
502
- expected << "</select>\n"
503
-
504
- assert_dom_equal expected, select_minute(nil, :include_blank => true)
505
- end
506
-
507
- def test_select_minute_nil_with_blank_and_step
508
- expected = %(<select id="date_minute" name="date[minute]">\n)
509
- expected << %(<option value=""></option>\n<option value="00">00</option>\n<option value="15">15</option>\n<option value="30">30</option>\n<option value="45">45</option>\n)
510
- expected << "</select>\n"
511
-
512
- assert_dom_equal expected, select_minute(nil, { :include_blank => true , :minute_step => 15 })
513
- end
514
-
515
- def test_select_minute_with_hidden
516
- assert_dom_equal "<input type=\"hidden\" id=\"date_minute\" name=\"date[minute]\" value=\"8\" />\n", select_minute(8, :use_hidden => true)
517
- end
518
-
519
- def test_select_minute_with_hidden_and_field_name
520
- assert_dom_equal "<input type=\"hidden\" id=\"date_minuto\" name=\"date[minuto]\" value=\"8\" />\n", select_minute(8, :use_hidden => true, :field_name => 'minuto')
521
- end
522
-
523
- def test_select_minute_with_html_options
524
- expected = expected = %(<select id="date_minute" name="date[minute]" class="selector" accesskey="M">\n)
525
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
526
- expected << "</select>\n"
527
-
528
- assert_dom_equal expected, select_minute(Time.mktime(2003, 8, 16, 8, 4, 18), {}, :class => 'selector', :accesskey => 'M')
529
-
530
- #result = select_minute(Time.mktime(2003, 8, 16, 8, 4, 18), {}, :class => 'selector', :accesskey => 'M')
531
- #assert result.include?('<select id="date_minute" name="date[minute]"')
532
- #assert result.include?('class="selector"')
533
- #assert result.include?('accesskey="M"')
534
- #assert result.include?('<option value="00">00')
535
- end
536
-
537
- def test_select_minute_with_default_prompt
538
- expected = %(<select id="date_minute" name="date[minute]">\n)
539
- expected << %(<option value="">Minute</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
540
- expected << "</select>\n"
541
-
542
- assert_dom_equal expected, select_minute(Time.mktime(2003, 8, 16, 8, 4, 18), :prompt => true)
543
- end
544
-
545
- def test_select_minute_with_custom_prompt
546
- expected = %(<select id="date_minute" name="date[minute]">\n)
547
- expected << %(<option value="">Choose minute</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
548
- expected << "</select>\n"
549
-
550
- assert_dom_equal expected, select_minute(Time.mktime(2003, 8, 16, 8, 4, 18), :prompt => 'Choose minute')
551
- end
552
-
553
- def test_select_second
554
- expected = %(<select id="date_second" name="date[second]">\n)
555
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18" selected="selected">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
556
- expected << "</select>\n"
557
-
558
- assert_dom_equal expected, select_second(Time.mktime(2003, 8, 16, 8, 4, 18))
559
- end
560
-
561
- def test_select_second_with_disabled
562
- expected = %(<select id="date_second" name="date[second]" disabled="disabled">\n)
563
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18" selected="selected">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
564
- expected << "</select>\n"
565
-
566
- assert_dom_equal expected, select_second(Time.mktime(2003, 8, 16, 8, 4, 18), :disabled => true)
567
- end
568
-
569
- def test_select_second_with_field_name_override
570
- expected = %(<select id="date_segundo" name="date[segundo]">\n)
571
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18" selected="selected">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
572
- expected << "</select>\n"
573
-
574
- assert_dom_equal expected, select_second(Time.mktime(2003, 8, 16, 8, 4, 18), :field_name => 'segundo')
575
- end
576
-
577
- def test_select_second_with_blank
578
- expected = %(<select id="date_second" name="date[second]">\n)
579
- expected << %(<option value=""></option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18" selected="selected">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
580
- expected << "</select>\n"
581
-
582
- assert_dom_equal expected, select_second(Time.mktime(2003, 8, 16, 8, 4, 18), :include_blank => true)
583
- end
584
-
585
- def test_select_second_nil_with_blank
586
- expected = %(<select id="date_second" name="date[second]">\n)
587
- expected << %(<option value=""></option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
588
- expected << "</select>\n"
589
-
590
- assert_dom_equal expected, select_second(nil, :include_blank => true)
591
- end
592
-
593
- def test_select_second_with_html_options
594
- expected = %(<select id="date_second" name="date[second]" class="selector" accesskey="M">\n)
595
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18" selected="selected">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
596
- expected << "</select>\n"
597
-
598
- assert_dom_equal expected, select_second(Time.mktime(2003, 8, 16, 8, 4, 18), {}, :class => 'selector', :accesskey => 'M')
599
-
600
- #result = select_second(Time.mktime(2003, 8, 16, 8, 4, 18), {}, :class => 'selector', :accesskey => 'M')
601
- #assert result.include?('<select id="date_second" name="date[second]"')
602
- #assert result.include?('class="selector"')
603
- #assert result.include?('accesskey="M"')
604
- #assert result.include?('<option value="00">00')
605
- end
606
-
607
- def test_select_second_with_default_prompt
608
- expected = %(<select id="date_second" name="date[second]">\n)
609
- expected << %(<option value="">Seconds</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18" selected="selected">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
610
- expected << "</select>\n"
611
-
612
- assert_dom_equal expected, select_second(Time.mktime(2003, 8, 16, 8, 4, 18), :prompt => true)
613
- end
614
-
615
- def test_select_second_with_custom_prompt
616
- expected = %(<select id="date_second" name="date[second]">\n)
617
- expected << %(<option value="">Choose seconds</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18" selected="selected">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
618
- expected << "</select>\n"
619
-
620
- assert_dom_equal expected, select_second(Time.mktime(2003, 8, 16, 8, 4, 18), :prompt => 'Choose seconds')
621
- end
622
-
623
- def test_select_date
624
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
625
- expected << %(<option value="2003" selected="selected">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
626
- expected << "</select>\n"
627
-
628
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
629
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
630
- expected << "</select>\n"
631
-
632
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
633
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
634
- expected << "</select>\n"
635
-
636
- assert_dom_equal expected, select_date(Time.mktime(2003, 8, 16), :start_year => 2003, :end_year => 2005, :prefix => "date[first]")
637
- end
638
-
639
- def test_select_date_with_order
640
- expected = %(<select id="date_first_month" name="date[first][month]">\n)
641
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
642
- expected << "</select>\n"
643
-
644
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
645
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
646
- expected << "</select>\n"
647
-
648
- expected << %(<select id="date_first_year" name="date[first][year]">\n)
649
- expected << %(<option value="2003" selected="selected">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
650
- expected << "</select>\n"
651
-
652
- assert_dom_equal expected, select_date(Time.mktime(2003, 8, 16), :start_year => 2003, :end_year => 2005, :prefix => "date[first]", :order => [:month, :day, :year])
653
- end
654
-
655
- def test_select_date_with_incomplete_order
656
- # NOTE: modified this test because of minimal API change
657
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
658
- expected << %(<option value="2003" selected="selected">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
659
- expected << "</select>\n"
660
-
661
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
662
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
663
- expected << "</select>\n"
664
-
665
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
666
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
667
- expected << "</select>\n"
668
-
669
- assert_dom_equal expected, select_date(Time.mktime(2003, 8, 16), :start_year => 2003, :end_year => 2005, :prefix => "date[first]", :order => [:day])
670
- end
671
-
672
- def test_select_date_with_disabled
673
- expected = %(<select id="date_first_year" name="date[first][year]" disabled="disabled">\n)
674
- expected << %(<option value="2003" selected="selected">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
675
- expected << "</select>\n"
676
-
677
- expected << %(<select id="date_first_month" name="date[first][month]" disabled="disabled">\n)
678
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
679
- expected << "</select>\n"
680
-
681
- expected << %(<select id="date_first_day" name="date[first][day]" disabled="disabled">\n)
682
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
683
- expected << "</select>\n"
684
-
685
- assert_dom_equal expected, select_date(Time.mktime(2003, 8, 16), :start_year => 2003, :end_year => 2005, :prefix => "date[first]", :disabled => true)
686
- end
687
-
688
- def test_select_date_with_no_start_year
689
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
690
- (Date.today.year-5).upto(Date.today.year+1) do |y|
691
- if y == Date.today.year
692
- expected << %(<option value="#{y}" selected="selected">#{y}</option>\n)
693
- else
694
- expected << %(<option value="#{y}">#{y}</option>\n)
695
- end
696
- end
697
- expected << "</select>\n"
698
-
699
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
700
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
701
- expected << "</select>\n"
702
-
703
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
704
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
705
- expected << "</select>\n"
706
-
707
- assert_dom_equal expected, select_date(
708
- Time.mktime(Date.today.year, 8, 16), :end_year => Date.today.year+1, :prefix => "date[first]"
709
- )
710
- end
711
-
712
- def test_select_date_with_no_end_year
713
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
714
- 2003.upto(2008) do |y|
715
- if y == 2003
716
- expected << %(<option value="#{y}" selected="selected">#{y}</option>\n)
717
- else
718
- expected << %(<option value="#{y}">#{y}</option>\n)
719
- end
720
- end
721
- expected << "</select>\n"
722
-
723
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
724
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
725
- expected << "</select>\n"
726
-
727
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
728
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
729
- expected << "</select>\n"
730
-
731
- assert_dom_equal expected, select_date(
732
- Time.mktime(2003, 8, 16), :start_year => 2003, :prefix => "date[first]"
733
- )
734
- end
735
-
736
- def test_select_date_with_no_start_or_end_year
737
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
738
- (Date.today.year-5).upto(Date.today.year+5) do |y|
739
- if y == Date.today.year
740
- expected << %(<option value="#{y}" selected="selected">#{y}</option>\n)
741
- else
742
- expected << %(<option value="#{y}">#{y}</option>\n)
743
- end
744
- end
745
- expected << "</select>\n"
746
-
747
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
748
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
749
- expected << "</select>\n"
750
-
751
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
752
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
753
- expected << "</select>\n"
754
-
755
- assert_dom_equal expected, select_date(
756
- Time.mktime(Date.today.year, 8, 16), :prefix => "date[first]"
757
- )
758
- end
759
-
760
- def test_select_date_with_zero_value
761
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
762
- expected << %(<option value="2003">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
763
- expected << "</select>\n"
764
-
765
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
766
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
767
- expected << "</select>\n"
768
-
769
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
770
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
771
- expected << "</select>\n"
772
-
773
- assert_dom_equal expected, select_date(0, :start_year => 2003, :end_year => 2005, :prefix => "date[first]")
774
- end
775
-
776
- def test_select_date_with_zero_value_and_no_start_year
777
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
778
- (Date.today.year-5).upto(Date.today.year+1) { |y| expected << %(<option value="#{y}">#{y}</option>\n) }
779
- expected << "</select>\n"
780
-
781
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
782
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
783
- expected << "</select>\n"
784
-
785
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
786
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
787
- expected << "</select>\n"
788
-
789
- assert_dom_equal expected, select_date(0, :end_year => Date.today.year+1, :prefix => "date[first]")
790
- end
791
-
792
- def test_select_date_with_zero_value_and_no_end_year
793
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
794
- last_year = Time.now.year + 5
795
- 2003.upto(last_year) { |y| expected << %(<option value="#{y}">#{y}</option>\n) }
796
- expected << "</select>\n"
797
-
798
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
799
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
800
- expected << "</select>\n"
801
-
802
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
803
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
804
- expected << "</select>\n"
805
-
806
- assert_dom_equal expected, select_date(0, :start_year => 2003, :prefix => "date[first]")
807
- end
808
-
809
- def test_select_date_with_zero_value_and_no_start_and_end_year
810
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
811
- (Date.today.year-5).upto(Date.today.year+5) { |y| expected << %(<option value="#{y}">#{y}</option>\n) }
812
- expected << "</select>\n"
813
-
814
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
815
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
816
- expected << "</select>\n"
817
-
818
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
819
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
820
- expected << "</select>\n"
821
-
822
- assert_dom_equal expected, select_date(0, :prefix => "date[first]")
823
- end
824
-
825
- def test_select_date_with_nil_value_and_no_start_and_end_year
826
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
827
- (Date.today.year-5).upto(Date.today.year+5) { |y| expected << %(<option value="#{y}">#{y}</option>\n) }
828
- expected << "</select>\n"
829
-
830
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
831
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
832
- expected << "</select>\n"
833
-
834
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
835
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
836
- expected << "</select>\n"
837
-
838
- assert_dom_equal expected, select_date(nil, :prefix => "date[first]")
839
- end
840
-
841
- def test_select_date_with_html_options
842
- expected = %(<select id="date_first_year" name="date[first][year]" class="selector">\n)
843
- expected << %(<option value="2003" selected="selected">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
844
- expected << "</select>\n"
845
-
846
- expected << %(<select id="date_first_month" name="date[first][month]" class="selector">\n)
847
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
848
- expected << "</select>\n"
849
-
850
- expected << %(<select id="date_first_day" name="date[first][day]" class="selector">\n)
851
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
852
- expected << "</select>\n"
853
-
854
- assert_dom_equal expected, select_date(Time.mktime(2003, 8, 16), {:start_year => 2003, :end_year => 2005, :prefix => "date[first]"}, :class => "selector")
855
- end
856
-
857
- def test_select_date_with_separator
858
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
859
- expected << %(<option value="2003" selected="selected">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
860
- expected << "</select>\n"
861
-
862
- expected << " / "
863
-
864
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
865
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
866
- expected << "</select>\n"
867
-
868
- expected << " / "
869
-
870
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
871
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
872
- expected << "</select>\n"
873
-
874
- assert_dom_equal expected, select_date(Time.mktime(2003, 8, 16), { :date_separator => " / ", :start_year => 2003, :end_year => 2005, :prefix => "date[first]"})
875
- end
876
-
877
- def test_select_datetime
878
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
879
- expected << %(<option value="2003" selected="selected">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
880
- expected << "</select>\n"
881
-
882
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
883
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
884
- expected << "</select>\n"
885
-
886
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
887
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
888
- expected << "</select>\n"
889
-
890
- expected << %(<select id="date_first_hour" name="date[first][hour]">\n)
891
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
892
- expected << "</select>\n"
893
-
894
- expected << %(<select id="date_first_minute" name="date[first][minute]">\n)
895
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
896
- expected << "</select>\n"
897
-
898
- assert_dom_equal expected, select_datetime(Time.mktime(2003, 8, 16, 8, 4, 18), :start_year => 2003, :end_year => 2005, :prefix => "date[first]")
899
- end
900
-
901
- def test_select_datetime_with_separators
902
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
903
- expected << %(<option value="2003" selected="selected">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
904
- expected << "</select>\n"
905
-
906
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
907
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
908
- expected << "</select>\n"
909
-
910
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
911
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
912
- expected << "</select>\n"
913
-
914
- expected << " &mdash; "
915
-
916
- expected << %(<select id="date_first_hour" name="date[first][hour]">\n)
917
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
918
- expected << "</select>\n"
919
-
920
- expected << " : "
921
-
922
- expected << %(<select id="date_first_minute" name="date[first][minute]">\n)
923
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
924
- expected << "</select>\n"
925
-
926
- assert_dom_equal expected, select_datetime(Time.mktime(2003, 8, 16, 8, 4, 18), :start_year => 2003, :end_year => 2005, :prefix => "date[first]", :datetime_separator => ' &mdash; ', :time_separator => ' : ')
927
- end
928
-
929
- def test_select_datetime_with_nil_value_and_no_start_and_end_year
930
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
931
- (Date.today.year-5).upto(Date.today.year+5) { |y| expected << %(<option value="#{y}">#{y}</option>\n) }
932
- expected << "</select>\n"
933
-
934
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
935
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
936
- expected << "</select>\n"
937
-
938
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
939
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
940
- expected << "</select>\n"
941
-
942
- expected << %(<select id="date_first_hour" name="date[first][hour]">\n)
943
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
944
- expected << "</select>\n"
945
-
946
- expected << %(<select id="date_first_minute" name="date[first][minute]">\n)
947
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
948
- expected << "</select>\n"
949
-
950
- assert_dom_equal expected, select_datetime(nil, :prefix => "date[first]")
951
- end
952
-
953
- def test_select_datetime_with_html_options
954
- expected = %(<select id="date_first_year" name="date[first][year]" class="selector">\n)
955
- expected << %(<option value="2003" selected="selected">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
956
- expected << "</select>\n"
957
-
958
- expected << %(<select id="date_first_month" name="date[first][month]" class="selector">\n)
959
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
960
- expected << "</select>\n"
961
-
962
- expected << %(<select id="date_first_day" name="date[first][day]" class="selector">\n)
963
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
964
- expected << "</select>\n"
965
-
966
- expected << %(<select id="date_first_hour" name="date[first][hour]" class="selector">\n)
967
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
968
- expected << "</select>\n"
969
-
970
- expected << %(<select id="date_first_minute" name="date[first][minute]" class="selector">\n)
971
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
972
- expected << "</select>\n"
973
-
974
- assert_dom_equal expected, select_datetime(Time.mktime(2003, 8, 16, 8, 4, 18), {:start_year => 2003, :end_year => 2005, :prefix => "date[first]"}, :class => 'selector')
975
- end
976
-
977
- def test_select_datetime_with_all_separators
978
- expected = %(<select id="date_first_year" name="date[first][year]" class="selector">\n)
979
- expected << %(<option value="2003" selected="selected">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
980
- expected << "</select>\n"
981
-
982
- expected << "/"
983
-
984
- expected << %(<select id="date_first_month" name="date[first][month]" class="selector">\n)
985
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
986
- expected << "</select>\n"
987
-
988
- expected << "/"
989
-
990
- expected << %(<select id="date_first_day" name="date[first][day]" class="selector">\n)
991
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
992
- expected << "</select>\n"
993
-
994
- expected << "&mdash;"
995
-
996
- expected << %(<select id="date_first_hour" name="date[first][hour]" class="selector">\n)
997
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
998
- expected << "</select>\n"
999
-
1000
- expected << ":"
1001
-
1002
- expected << %(<select id="date_first_minute" name="date[first][minute]" class="selector">\n)
1003
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
1004
- expected << "</select>\n"
1005
-
1006
- assert_dom_equal expected, select_datetime(Time.mktime(2003, 8, 16, 8, 4, 18), { :datetime_separator => "&mdash;", :date_separator => "/", :time_separator => ":", :start_year => 2003, :end_year => 2005, :prefix => "date[first]"}, :class => 'selector')
1007
- end
1008
-
1009
- def test_select_datetime_should_work_with_date
1010
- assert_nothing_raised { select_datetime(Date.today) }
1011
- end
1012
-
1013
- def test_select_datetime_with_default_prompt
1014
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
1015
- expected << %(<option value="">Year</option>\n<option value="2003" selected="selected">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
1016
- expected << "</select>\n"
1017
-
1018
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
1019
- expected << %(<option value="">Month</option>\n<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
1020
- expected << "</select>\n"
1021
-
1022
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
1023
- expected << %(<option value="">Day</option>\n<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
1024
- expected << "</select>\n"
1025
-
1026
- expected << %(<select id="date_first_hour" name="date[first][hour]">\n)
1027
- expected << %(<option value="">Hour</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
1028
- expected << "</select>\n"
1029
-
1030
- expected << %(<select id="date_first_minute" name="date[first][minute]">\n)
1031
- expected << %(<option value="">Minute</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
1032
- expected << "</select>\n"
1033
-
1034
- assert_dom_equal expected, select_datetime(Time.mktime(2003, 8, 16, 8, 4, 18), :start_year => 2003, :end_year => 2005,
1035
- :prefix => "date[first]", :prompt => true)
1036
- end
1037
-
1038
- def test_select_datetime_with_custom_prompt
1039
-
1040
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
1041
- expected << %(<option value="">Choose year</option>\n<option value="2003" selected="selected">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n)
1042
- expected << "</select>\n"
1043
-
1044
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
1045
- expected << %(<option value="">Choose month</option>\n<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8" selected="selected">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
1046
- expected << "</select>\n"
1047
-
1048
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
1049
- expected << %(<option value="">Choose day</option>\n<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
1050
- expected << "</select>\n"
1051
-
1052
- expected << %(<select id="date_first_hour" name="date[first][hour]">\n)
1053
- expected << %(<option value="">Choose hour</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
1054
- expected << "</select>\n"
1055
-
1056
- expected << %(<select id="date_first_minute" name="date[first][minute]">\n)
1057
- expected << %(<option value="">Choose minute</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
1058
- expected << "</select>\n"
1059
-
1060
- assert_dom_equal expected, select_datetime(Time.mktime(2003, 8, 16, 8, 4, 18), :start_year => 2003, :end_year => 2005, :prefix => "date[first]",
1061
- :prompt => {:day => 'Choose day', :month => 'Choose month', :year => 'Choose year', :hour => 'Choose hour', :minute => 'Choose minute'})
1062
- end
1063
-
1064
- def test_select_time
1065
- expected = %(<select id="date_hour" name="date[hour]">\n)
1066
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
1067
- expected << "</select>\n"
1068
-
1069
- expected << %(<select id="date_minute" name="date[minute]">\n)
1070
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
1071
- expected << "</select>\n"
1072
-
1073
- assert_dom_equal expected, select_time(Time.mktime(2003, 8, 16, 8, 4, 18))
1074
- assert_dom_equal expected, select_time(Time.mktime(2003, 8, 16, 8, 4, 18), :include_seconds => false)
1075
- end
1076
-
1077
- def test_select_time_with_separator
1078
- expected = %(<select id="date_hour" name="date[hour]">\n)
1079
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
1080
- expected << "</select>\n"
1081
-
1082
- expected << " : "
1083
-
1084
- expected << %(<select id="date_minute" name="date[minute]">\n)
1085
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
1086
- expected << "</select>\n"
1087
-
1088
- assert_dom_equal expected, select_time(Time.mktime(2003, 8, 16, 8, 4, 18), :time_separator => ' : ')
1089
- assert_dom_equal expected, select_time(Time.mktime(2003, 8, 16, 8, 4, 18), :time_separator => ' : ', :include_seconds => false)
1090
- end
1091
-
1092
- def test_select_time_with_seconds
1093
- expected = %(<select id="date_hour" name="date[hour]">\n)
1094
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
1095
- expected << "</select>\n"
1096
-
1097
- expected << %(<select id="date_minute" name="date[minute]">\n)
1098
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
1099
- expected << "</select>\n"
1100
-
1101
- expected << %(<select id="date_second" name="date[second]">\n)
1102
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18" selected="selected">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
1103
- expected << "</select>\n"
1104
-
1105
- assert_dom_equal expected, select_time(Time.mktime(2003, 8, 16, 8, 4, 18), :include_seconds => true)
1106
- end
1107
-
1108
- def test_select_time_with_seconds_and_separator
1109
- expected = %(<select id="date_hour" name="date[hour]">\n)
1110
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
1111
- expected << "</select>\n"
1112
-
1113
- expected << " : "
1114
-
1115
- expected << %(<select id="date_minute" name="date[minute]">\n)
1116
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
1117
- expected << "</select>\n"
1118
-
1119
- expected << " : "
1120
-
1121
- expected << %(<select id="date_second" name="date[second]">\n)
1122
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18" selected="selected">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
1123
- expected << "</select>\n"
1124
-
1125
- assert_dom_equal expected, select_time(Time.mktime(2003, 8, 16, 8, 4, 18), :include_seconds => true, :time_separator => ' : ')
1126
- end
1127
-
1128
- def test_select_time_with_html_options
1129
- expected = %(<select id="date_hour" name="date[hour]" class="selector">\n)
1130
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
1131
- expected << "</select>\n"
1132
-
1133
- expected << %(<select id="date_minute" name="date[minute]" class="selector">\n)
1134
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
1135
- expected << "</select>\n"
1136
-
1137
- assert_dom_equal expected, select_time(Time.mktime(2003, 8, 16, 8, 4, 18), {}, :class => 'selector')
1138
- assert_dom_equal expected, select_time(Time.mktime(2003, 8, 16, 8, 4, 18), {:include_seconds => false}, :class => 'selector')
1139
- end
1140
-
1141
- def test_select_time_should_work_with_date
1142
- assert_nothing_raised { select_time(Date.today) }
1143
- end
1144
-
1145
- def test_select_time_with_default_prompt
1146
- expected = %(<select id="date_hour" name="date[hour]">\n)
1147
- expected << %(<option value="">Hour</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
1148
- expected << "</select>\n"
1149
-
1150
- expected << %(<select id="date_minute" name="date[minute]">\n)
1151
- expected << %(<option value="">Minute</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
1152
- expected << "</select>\n"
1153
-
1154
- expected << %(<select id="date_second" name="date[second]">\n)
1155
- expected << %(<option value="">Seconds</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18" selected="selected">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
1156
- expected << "</select>\n"
1157
-
1158
- assert_dom_equal expected, select_time(Time.mktime(2003, 8, 16, 8, 4, 18), :include_seconds => true, :prompt => true)
1159
- end
1160
-
1161
- def test_select_time_with_custom_prompt
1162
-
1163
- expected = %(<select id="date_hour" name="date[hour]">\n)
1164
- expected << %(<option value="">Choose hour</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08" selected="selected">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
1165
- expected << "</select>\n"
1166
-
1167
- expected << %(<select id="date_minute" name="date[minute]">\n)
1168
- expected << %(<option value="">Choose minute</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04" selected="selected">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
1169
- expected << "</select>\n"
1170
-
1171
- expected << %(<select id="date_second" name="date[second]">\n)
1172
- expected << %(<option value="">Choose seconds</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18" selected="selected">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
1173
- expected << "</select>\n"
1174
-
1175
- assert_dom_equal expected, select_time(Time.mktime(2003, 8, 16, 8, 4, 18), :prompt => true, :include_seconds => true,
1176
- :prompt => {:hour => 'Choose hour', :minute => 'Choose minute', :second => 'Choose seconds'})
1177
- end
1178
-
1179
- def test_date_select
1180
- @post = Post.new
1181
- @post.written_on = Date.new(2004, 6, 15)
1182
-
1183
- expected = %{<select id="post_written_on_1i" name="post[written_on(1i)]">\n}
1184
- expected << %{<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004" selected="selected">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
1185
- expected << "</select>\n"
1186
-
1187
- expected << %{<select id="post_written_on_2i" name="post[written_on(2i)]">\n}
1188
- expected << %{<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6" selected="selected">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
1189
- expected << "</select>\n"
1190
-
1191
- expected << %{<select id="post_written_on_3i" name="post[written_on(3i)]">\n}
1192
- expected << %{<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15" selected="selected">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
1193
-
1194
- expected << "</select>\n"
1195
-
1196
- assert_dom_equal expected, date_select("post", "written_on")
1197
- end
1198
-
1199
- def test_date_select_without_day
1200
- @post = Post.new
1201
- @post.written_on = Date.new(2004, 6, 15)
1202
-
1203
- expected = "<input type=\"hidden\" id=\"post_written_on_3i\" name=\"post[written_on(3i)]\" value=\"1\" />\n"
1204
-
1205
- expected << %{<select id="post_written_on_2i" name="post[written_on(2i)]">\n}
1206
- expected << %{<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6" selected="selected">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
1207
- expected << "</select>\n"
1208
-
1209
- expected << %{<select id="post_written_on_1i" name="post[written_on(1i)]">\n}
1210
- expected << %{<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004" selected="selected">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
1211
- expected << "</select>\n"
1212
-
1213
- assert_dom_equal expected, date_select("post", "written_on", :order => [ :month, :year ])
1214
- end
1215
-
1216
- def test_date_select_within_fields_for
1217
- @post = Post.new
1218
- @post.written_on = Date.new(2004, 6, 15)
1219
-
1220
- fields_for :post, @post do |f|
1221
- concat f.date_select(:written_on)
1222
- end
1223
-
1224
- expected = "<select id='post_written_on_1i' name='post[written_on(1i)]'>\n<option value='1999'>1999</option>\n<option value='2000'>2000</option>\n<option value='2001'>2001</option>\n<option value='2002'>2002</option>\n<option value='2003'>2003</option>\n<option selected='selected' value='2004'>2004</option>\n<option value='2005'>2005</option>\n<option value='2006'>2006</option>\n<option value='2007'>2007</option>\n<option value='2008'>2008</option>\n<option value='2009'>2009</option>\n</select>\n"
1225
- expected << "<select id='post_written_on_2i' name='post[written_on(2i)]'>\n<option value='1'>January</option>\n<option value='2'>February</option>\n<option value='3'>March</option>\n<option value='4'>April</option>\n<option value='5'>May</option>\n<option selected='selected' value='6'>June</option>\n<option value='7'>July</option>\n<option value='8'>August</option>\n<option value='9'>September</option>\n<option value='10'>October</option>\n<option value='11'>November</option>\n<option value='12'>December</option>\n</select>\n"
1226
- expected << "<select id='post_written_on_3i' name='post[written_on(3i)]'>\n<option value='1'>1</option>\n<option value='2'>2</option>\n<option value='3'>3</option>\n<option value='4'>4</option>\n<option value='5'>5</option>\n<option value='6'>6</option>\n<option value='7'>7</option>\n<option value='8'>8</option>\n<option value='9'>9</option>\n<option value='10'>10</option>\n<option value='11'>11</option>\n<option value='12'>12</option>\n<option value='13'>13</option>\n<option value='14'>14</option>\n<option selected='selected' value='15'>15</option>\n<option value='16'>16</option>\n<option value='17'>17</option>\n<option value='18'>18</option>\n<option value='19'>19</option>\n<option value='20'>20</option>\n<option value='21'>21</option>\n<option value='22'>22</option>\n<option value='23'>23</option>\n<option value='24'>24</option>\n<option value='25'>25</option>\n<option value='26'>26</option>\n<option value='27'>27</option>\n<option value='28'>28</option>\n<option value='29'>29</option>\n<option value='30'>30</option>\n<option value='31'>31</option>\n</select>\n"
1227
-
1228
- assert_dom_equal(expected, output_buffer)
1229
- end
1230
-
1231
- def test_date_select_within_fields_for_with_index
1232
- @post = Post.new
1233
- @post.written_on = Date.new(2004, 6, 15)
1234
- id = 27
1235
-
1236
- fields_for :post, @post, :index => id do |f|
1237
- concat f.date_select(:written_on)
1238
- end
1239
-
1240
- expected = "<select id='post_#{id}_written_on_1i' name='post[#{id}][written_on(1i)]'>\n<option value='1999'>1999</option>\n<option value='2000'>2000</option>\n<option value='2001'>2001</option>\n<option value='2002'>2002</option>\n<option value='2003'>2003</option>\n<option selected='selected' value='2004'>2004</option>\n<option value='2005'>2005</option>\n<option value='2006'>2006</option>\n<option value='2007'>2007</option>\n<option value='2008'>2008</option>\n<option value='2009'>2009</option>\n</select>\n"
1241
- expected << "<select id='post_#{id}_written_on_2i' name='post[#{id}][written_on(2i)]'>\n<option value='1'>January</option>\n<option value='2'>February</option>\n<option value='3'>March</option>\n<option value='4'>April</option>\n<option value='5'>May</option>\n<option selected='selected' value='6'>June</option>\n<option value='7'>July</option>\n<option value='8'>August</option>\n<option value='9'>September</option>\n<option value='10'>October</option>\n<option value='11'>November</option>\n<option value='12'>December</option>\n</select>\n"
1242
- expected << "<select id='post_#{id}_written_on_3i' name='post[#{id}][written_on(3i)]'>\n<option value='1'>1</option>\n<option value='2'>2</option>\n<option value='3'>3</option>\n<option value='4'>4</option>\n<option value='5'>5</option>\n<option value='6'>6</option>\n<option value='7'>7</option>\n<option value='8'>8</option>\n<option value='9'>9</option>\n<option value='10'>10</option>\n<option value='11'>11</option>\n<option value='12'>12</option>\n<option value='13'>13</option>\n<option value='14'>14</option>\n<option selected='selected' value='15'>15</option>\n<option value='16'>16</option>\n<option value='17'>17</option>\n<option value='18'>18</option>\n<option value='19'>19</option>\n<option value='20'>20</option>\n<option value='21'>21</option>\n<option value='22'>22</option>\n<option value='23'>23</option>\n<option value='24'>24</option>\n<option value='25'>25</option>\n<option value='26'>26</option>\n<option value='27'>27</option>\n<option value='28'>28</option>\n<option value='29'>29</option>\n<option value='30'>30</option>\n<option value='31'>31</option>\n</select>\n"
1243
-
1244
- assert_dom_equal(expected, output_buffer)
1245
- end
1246
-
1247
- def test_date_select_within_fields_for_with_blank_index
1248
- @post = Post.new
1249
- @post.written_on = Date.new(2004, 6, 15)
1250
- id = nil
1251
-
1252
- fields_for :post, @post, :index => id do |f|
1253
- concat f.date_select(:written_on)
1254
- end
1255
-
1256
- expected = "<select id='post_#{id}_written_on_1i' name='post[#{id}][written_on(1i)]'>\n<option value='1999'>1999</option>\n<option value='2000'>2000</option>\n<option value='2001'>2001</option>\n<option value='2002'>2002</option>\n<option value='2003'>2003</option>\n<option selected='selected' value='2004'>2004</option>\n<option value='2005'>2005</option>\n<option value='2006'>2006</option>\n<option value='2007'>2007</option>\n<option value='2008'>2008</option>\n<option value='2009'>2009</option>\n</select>\n"
1257
- expected << "<select id='post_#{id}_written_on_2i' name='post[#{id}][written_on(2i)]'>\n<option value='1'>January</option>\n<option value='2'>February</option>\n<option value='3'>March</option>\n<option value='4'>April</option>\n<option value='5'>May</option>\n<option selected='selected' value='6'>June</option>\n<option value='7'>July</option>\n<option value='8'>August</option>\n<option value='9'>September</option>\n<option value='10'>October</option>\n<option value='11'>November</option>\n<option value='12'>December</option>\n</select>\n"
1258
- expected << "<select id='post_#{id}_written_on_3i' name='post[#{id}][written_on(3i)]'>\n<option value='1'>1</option>\n<option value='2'>2</option>\n<option value='3'>3</option>\n<option value='4'>4</option>\n<option value='5'>5</option>\n<option value='6'>6</option>\n<option value='7'>7</option>\n<option value='8'>8</option>\n<option value='9'>9</option>\n<option value='10'>10</option>\n<option value='11'>11</option>\n<option value='12'>12</option>\n<option value='13'>13</option>\n<option value='14'>14</option>\n<option selected='selected' value='15'>15</option>\n<option value='16'>16</option>\n<option value='17'>17</option>\n<option value='18'>18</option>\n<option value='19'>19</option>\n<option value='20'>20</option>\n<option value='21'>21</option>\n<option value='22'>22</option>\n<option value='23'>23</option>\n<option value='24'>24</option>\n<option value='25'>25</option>\n<option value='26'>26</option>\n<option value='27'>27</option>\n<option value='28'>28</option>\n<option value='29'>29</option>\n<option value='30'>30</option>\n<option value='31'>31</option>\n</select>\n"
1259
-
1260
- assert_dom_equal(expected, output_buffer)
1261
- end
1262
-
1263
- def test_date_select_with_index
1264
- @post = Post.new
1265
- @post.written_on = Date.new(2004, 6, 15)
1266
- id = 456
1267
-
1268
- expected = %{<select id="post_456_written_on_1i" name="post[#{id}][written_on(1i)]">\n}
1269
- expected << %{<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004" selected="selected">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
1270
- expected << "</select>\n"
1271
-
1272
- expected << %{<select id="post_456_written_on_2i" name="post[#{id}][written_on(2i)]">\n}
1273
- expected << %{<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6" selected="selected">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
1274
- expected << "</select>\n"
1275
-
1276
- expected << %{<select id="post_456_written_on_3i" name="post[#{id}][written_on(3i)]">\n}
1277
- expected << %{<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15" selected="selected">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
1278
- expected << "</select>\n"
1279
-
1280
- assert_dom_equal expected, date_select("post", "written_on", :index => id)
1281
- end
1282
-
1283
- def test_date_select_with_auto_index
1284
- @post = Post.new
1285
- @post.written_on = Date.new(2004, 6, 15)
1286
- id = 123
1287
-
1288
- expected = %{<select id="post_123_written_on_1i" name="post[#{id}][written_on(1i)]">\n}
1289
- expected << %{<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004" selected="selected">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
1290
- expected << "</select>\n"
1291
-
1292
- expected << %{<select id="post_123_written_on_2i" name="post[#{id}][written_on(2i)]">\n}
1293
- expected << %{<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6" selected="selected">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
1294
- expected << "</select>\n"
1295
-
1296
- expected << %{<select id="post_123_written_on_3i" name="post[#{id}][written_on(3i)]">\n}
1297
- expected << %{<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15" selected="selected">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
1298
- expected << "</select>\n"
1299
-
1300
- assert_dom_equal expected, date_select("post[]", "written_on")
1301
- end
1302
-
1303
- def test_date_select_with_different_order
1304
- @post = Post.new
1305
- @post.written_on = Date.new(2004, 6, 15)
1306
-
1307
- expected = %{<select id="post_written_on_3i" name="post[written_on(3i)]">\n}
1308
- 1.upto(31) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 15}>#{i}</option>\n) }
1309
- expected << "</select>\n"
1310
-
1311
- expected << %{<select id="post_written_on_2i" name="post[written_on(2i)]">\n}
1312
- 1.upto(12) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 6}>#{Date::MONTHNAMES[i]}</option>\n) }
1313
- expected << "</select>\n"
1314
-
1315
- expected << %{<select id="post_written_on_1i" name="post[written_on(1i)]">\n}
1316
- 1999.upto(2009) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 2004}>#{i}</option>\n) }
1317
- expected << "</select>\n"
1318
-
1319
- assert_dom_equal expected, date_select("post", "written_on", :order => [:day, :month, :year])
1320
- end
1321
-
1322
- def test_date_select_with_nil
1323
- @post = Post.new
1324
-
1325
- start_year = Time.now.year-5
1326
- end_year = Time.now.year+5
1327
- expected = %{<select id="post_written_on_1i" name="post[written_on(1i)]">\n}
1328
- start_year.upto(end_year) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == Time.now.year}>#{i}</option>\n) }
1329
- expected << "</select>\n"
1330
-
1331
- expected << %{<select id="post_written_on_2i" name="post[written_on(2i)]">\n}
1332
- 1.upto(12) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == Time.now.month}>#{Date::MONTHNAMES[i]}</option>\n) }
1333
- expected << "</select>\n"
1334
-
1335
- expected << %{<select id="post_written_on_3i" name="post[written_on(3i)]">\n}
1336
- 1.upto(31) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == Time.now.day}>#{i}</option>\n) }
1337
- expected << "</select>\n"
1338
-
1339
- assert_dom_equal expected, date_select("post", "written_on")
1340
- end
1341
-
1342
- def test_date_select_with_nil_and_blank
1343
- @post = Post.new
1344
-
1345
- start_year = Time.now.year-5
1346
- end_year = Time.now.year+5
1347
- expected = %{<select id="post_written_on_1i" name="post[written_on(1i)]">\n}
1348
- expected << "<option value=\"\"></option>\n"
1349
- start_year.upto(end_year) { |i| expected << %(<option value="#{i}">#{i}</option>\n) }
1350
- expected << "</select>\n"
1351
-
1352
- expected << %{<select id="post_written_on_2i" name="post[written_on(2i)]">\n}
1353
- expected << "<option value=\"\"></option>\n"
1354
- 1.upto(12) { |i| expected << %(<option value="#{i}">#{Date::MONTHNAMES[i]}</option>\n) }
1355
- expected << "</select>\n"
1356
-
1357
- expected << %{<select id="post_written_on_3i" name="post[written_on(3i)]">\n}
1358
- expected << "<option value=\"\"></option>\n"
1359
- 1.upto(31) { |i| expected << %(<option value="#{i}">#{i}</option>\n) }
1360
- expected << "</select>\n"
1361
-
1362
- assert_dom_equal expected, date_select("post", "written_on", :include_blank => true)
1363
- end
1364
-
1365
- def test_date_select_with_nil_and_blank_and_order
1366
- @post = Post.new
1367
-
1368
- start_year = Time.now.year-5
1369
- end_year = Time.now.year+5
1370
-
1371
- expected = '<input name="post[written_on(3i)]" type="hidden" id="post_written_on_3i"/>' + "\n"
1372
- expected << %{<select id="post_written_on_1i" name="post[written_on(1i)]">\n}
1373
- expected << "<option value=\"\"></option>\n"
1374
- start_year.upto(end_year) { |i| expected << %(<option value="#{i}">#{i}</option>\n) }
1375
- expected << "</select>\n"
1376
-
1377
- expected << %{<select id="post_written_on_2i" name="post[written_on(2i)]">\n}
1378
- expected << "<option value=\"\"></option>\n"
1379
- 1.upto(12) { |i| expected << %(<option value="#{i}">#{Date::MONTHNAMES[i]}</option>\n) }
1380
- expected << "</select>\n"
1381
-
1382
- assert_dom_equal expected, date_select("post", "written_on", :order=>[:year, :month], :include_blank=>true)
1383
- end
1384
-
1385
- def test_date_select_with_nil_and_blank_and_order
1386
- @post = Post.new
1387
-
1388
- start_year = Time.now.year-5
1389
- end_year = Time.now.year+5
1390
-
1391
- expected = '<input name="post[written_on(3i)]" type="hidden" id="post_written_on_3i"/>' + "\n"
1392
- expected << %{<select id="post_written_on_1i" name="post[written_on(1i)]">\n}
1393
- expected << "<option value=\"\"></option>\n"
1394
- start_year.upto(end_year) { |i| expected << %(<option value="#{i}">#{i}</option>\n) }
1395
- expected << "</select>\n"
1396
-
1397
- expected << %{<select id="post_written_on_2i" name="post[written_on(2i)]">\n}
1398
- expected << "<option value=\"\"></option>\n"
1399
- 1.upto(12) { |i| expected << %(<option value="#{i}">#{Date::MONTHNAMES[i]}</option>\n) }
1400
- expected << "</select>\n"
1401
-
1402
- assert_dom_equal expected, date_select("post", "written_on", :order=>[:year, :month], :include_blank=>true)
1403
- end
1404
-
1405
- def test_date_select_cant_override_discard_hour
1406
- @post = Post.new
1407
- @post.written_on = Date.new(2004, 6, 15)
1408
-
1409
- expected = %{<select id="post_written_on_1i" name="post[written_on(1i)]">\n}
1410
- expected << %{<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004" selected="selected">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
1411
- expected << "</select>\n"
1412
-
1413
- expected << %{<select id="post_written_on_2i" name="post[written_on(2i)]">\n}
1414
- expected << %{<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6" selected="selected">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
1415
- expected << "</select>\n"
1416
-
1417
- expected << %{<select id="post_written_on_3i" name="post[written_on(3i)]">\n}
1418
- expected << %{<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15" selected="selected">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
1419
- expected << "</select>\n"
1420
-
1421
- assert_dom_equal expected, date_select("post", "written_on", :discard_hour => false)
1422
- end
1423
-
1424
- def test_date_select_with_html_options
1425
- @post = Post.new
1426
- @post.written_on = Date.new(2004, 6, 15)
1427
-
1428
- expected = %{<select id="post_written_on_1i" name="post[written_on(1i)]" class="selector">\n}
1429
- expected << %{<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004" selected="selected">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
1430
- expected << "</select>\n"
1431
-
1432
- expected << %{<select id="post_written_on_2i" name="post[written_on(2i)]" class="selector">\n}
1433
- expected << %{<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6" selected="selected">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
1434
- expected << "</select>\n"
1435
-
1436
- expected << %{<select id="post_written_on_3i" name="post[written_on(3i)]" class="selector">\n}
1437
- expected << %{<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15" selected="selected">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
1438
-
1439
- expected << "</select>\n"
1440
-
1441
- assert_dom_equal expected, date_select("post", "written_on", {}, :class => 'selector')
1442
- end
1443
-
1444
- def test_date_select_with_html_options_within_fields_for
1445
- @post = Post.new
1446
- @post.written_on = Date.new(2004, 6, 15)
1447
-
1448
- fields_for :post, @post do |f|
1449
- concat f.date_select(:written_on, {}, :class => 'selector')
1450
- end
1451
-
1452
- expected = %{<select id="post_written_on_1i" name="post[written_on(1i)]" class="selector">\n}
1453
- expected << %{<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004" selected="selected">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
1454
- expected << "</select>\n"
1455
-
1456
- expected << %{<select id="post_written_on_2i" name="post[written_on(2i)]" class="selector">\n}
1457
- expected << %{<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6" selected="selected">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
1458
- expected << "</select>\n"
1459
-
1460
- expected << %{<select id="post_written_on_3i" name="post[written_on(3i)]" class="selector">\n}
1461
- expected << %{<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15" selected="selected">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
1462
-
1463
- expected << "</select>\n"
1464
-
1465
- assert_dom_equal expected, output_buffer
1466
- end
1467
-
1468
- def test_date_select_with_separator
1469
- @post = Post.new
1470
- @post.written_on = Date.new(2004, 6, 15)
1471
-
1472
- expected = %{<select id="post_written_on_1i" name="post[written_on(1i)]">\n}
1473
- expected << %{<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004" selected="selected">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
1474
- expected << "</select>\n"
1475
-
1476
- expected << " / "
1477
-
1478
- expected << %{<select id="post_written_on_2i" name="post[written_on(2i)]">\n}
1479
- expected << %{<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6" selected="selected">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
1480
- expected << "</select>\n"
1481
-
1482
- expected << " / "
1483
-
1484
- expected << %{<select id="post_written_on_3i" name="post[written_on(3i)]">\n}
1485
- expected << %{<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15" selected="selected">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
1486
-
1487
- expected << "</select>\n"
1488
-
1489
- assert_dom_equal expected, date_select("post", "written_on", { :date_separator => " / " })
1490
- end
1491
-
1492
- def test_date_select_with_default_prompt
1493
- @post = Post.new
1494
- @post.written_on = Date.new(2004, 6, 15)
1495
-
1496
- expected = %{<select id="post_written_on_1i" name="post[written_on(1i)]">\n}
1497
- expected << %{<option value="">Year</option>\n<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004" selected="selected">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
1498
- expected << "</select>\n"
1499
-
1500
- expected << %{<select id="post_written_on_2i" name="post[written_on(2i)]">\n}
1501
- expected << %{<option value="">Month</option>\n<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6" selected="selected">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
1502
- expected << "</select>\n"
1503
-
1504
- expected << %{<select id="post_written_on_3i" name="post[written_on(3i)]">\n}
1505
- expected << %{<option value="">Day</option>\n<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15" selected="selected">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
1506
-
1507
- expected << "</select>\n"
1508
-
1509
- assert_dom_equal expected, date_select("post", "written_on", :prompt => true)
1510
- end
1511
-
1512
- def test_date_select_with_custom_prompt
1513
- @post = Post.new
1514
- @post.written_on = Date.new(2004, 6, 15)
1515
-
1516
- expected = %{<select id="post_written_on_1i" name="post[written_on(1i)]">\n}
1517
- expected << %{<option value="">Choose year</option>\n<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004" selected="selected">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
1518
- expected << "</select>\n"
1519
-
1520
- expected << %{<select id="post_written_on_2i" name="post[written_on(2i)]">\n}
1521
- expected << %{<option value="">Choose month</option>\n<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6" selected="selected">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
1522
- expected << "</select>\n"
1523
-
1524
- expected << %{<select id="post_written_on_3i" name="post[written_on(3i)]">\n}
1525
- expected << %{<option value="">Choose day</option>\n<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15" selected="selected">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
1526
-
1527
- expected << "</select>\n"
1528
-
1529
- assert_dom_equal expected, date_select("post", "written_on", :prompt => {:year => 'Choose year', :month => 'Choose month', :day => 'Choose day'})
1530
- end
1531
-
1532
- def test_time_select
1533
- @post = Post.new
1534
- @post.written_on = Time.local(2004, 6, 15, 15, 16, 35)
1535
-
1536
- expected = %{<input type="hidden" id="post_written_on_1i" name="post[written_on(1i)]" value="2004" />\n}
1537
- expected << %{<input type="hidden" id="post_written_on_2i" name="post[written_on(2i)]" value="6" />\n}
1538
- expected << %{<input type="hidden" id="post_written_on_3i" name="post[written_on(3i)]" value="15" />\n}
1539
-
1540
- expected << %(<select id="post_written_on_4i" name="post[written_on(4i)]">\n)
1541
- 0.upto(23) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 15}>#{sprintf("%02d", i)}</option>\n) }
1542
- expected << "</select>\n"
1543
- expected << " : "
1544
- expected << %(<select id="post_written_on_5i" name="post[written_on(5i)]">\n)
1545
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 16}>#{sprintf("%02d", i)}</option>\n) }
1546
- expected << "</select>\n"
1547
-
1548
- assert_dom_equal expected, time_select("post", "written_on")
1549
- end
1550
-
1551
- def test_time_select_without_date_hidden_fields
1552
- @post = Post.new
1553
- @post.written_on = Time.local(2004, 6, 15, 15, 16, 35)
1554
-
1555
- expected = %(<select id="post_written_on_4i" name="post[written_on(4i)]">\n)
1556
- 0.upto(23) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 15}>#{sprintf("%02d", i)}</option>\n) }
1557
- expected << "</select>\n"
1558
- expected << " : "
1559
- expected << %(<select id="post_written_on_5i" name="post[written_on(5i)]">\n)
1560
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 16}>#{sprintf("%02d", i)}</option>\n) }
1561
- expected << "</select>\n"
1562
-
1563
- assert_dom_equal expected, time_select("post", "written_on", :ignore_date => true)
1564
- end
1565
-
1566
- def test_time_select_with_seconds
1567
- @post = Post.new
1568
- @post.written_on = Time.local(2004, 6, 15, 15, 16, 35)
1569
-
1570
- expected = %{<input type="hidden" id="post_written_on_1i" name="post[written_on(1i)]" value="2004" />\n}
1571
- expected << %{<input type="hidden" id="post_written_on_2i" name="post[written_on(2i)]" value="6" />\n}
1572
- expected << %{<input type="hidden" id="post_written_on_3i" name="post[written_on(3i)]" value="15" />\n}
1573
-
1574
- expected << %(<select id="post_written_on_4i" name="post[written_on(4i)]">\n)
1575
- 0.upto(23) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 15}>#{sprintf("%02d", i)}</option>\n) }
1576
- expected << "</select>\n"
1577
- expected << " : "
1578
- expected << %(<select id="post_written_on_5i" name="post[written_on(5i)]">\n)
1579
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 16}>#{sprintf("%02d", i)}</option>\n) }
1580
- expected << "</select>\n"
1581
- expected << " : "
1582
- expected << %(<select id="post_written_on_6i" name="post[written_on(6i)]">\n)
1583
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 35}>#{sprintf("%02d", i)}</option>\n) }
1584
- expected << "</select>\n"
1585
-
1586
- assert_dom_equal expected, time_select("post", "written_on", :include_seconds => true)
1587
- end
1588
-
1589
- def test_time_select_with_html_options
1590
- @post = Post.new
1591
- @post.written_on = Time.local(2004, 6, 15, 15, 16, 35)
1592
-
1593
- expected = %{<input type="hidden" id="post_written_on_1i" name="post[written_on(1i)]" value="2004" />\n}
1594
- expected << %{<input type="hidden" id="post_written_on_2i" name="post[written_on(2i)]" value="6" />\n}
1595
- expected << %{<input type="hidden" id="post_written_on_3i" name="post[written_on(3i)]" value="15" />\n}
1596
-
1597
- expected << %(<select id="post_written_on_4i" name="post[written_on(4i)]" class="selector">\n)
1598
- 0.upto(23) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 15}>#{sprintf("%02d", i)}</option>\n) }
1599
- expected << "</select>\n"
1600
- expected << " : "
1601
- expected << %(<select id="post_written_on_5i" name="post[written_on(5i)]" class="selector">\n)
1602
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 16}>#{sprintf("%02d", i)}</option>\n) }
1603
- expected << "</select>\n"
1604
-
1605
- assert_dom_equal expected, time_select("post", "written_on", {}, :class => 'selector')
1606
- end
1607
-
1608
- def test_time_select_with_html_options_within_fields_for
1609
- @post = Post.new
1610
- @post.written_on = Time.local(2004, 6, 15, 15, 16, 35)
1611
-
1612
- fields_for :post, @post do |f|
1613
- concat f.time_select(:written_on, {}, :class => 'selector')
1614
- end
1615
-
1616
- expected = %{<input type="hidden" id="post_written_on_1i" name="post[written_on(1i)]" value="2004" />\n}
1617
- expected << %{<input type="hidden" id="post_written_on_2i" name="post[written_on(2i)]" value="6" />\n}
1618
- expected << %{<input type="hidden" id="post_written_on_3i" name="post[written_on(3i)]" value="15" />\n}
1619
-
1620
- expected << %(<select id="post_written_on_4i" name="post[written_on(4i)]" class="selector">\n)
1621
- 0.upto(23) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 15}>#{sprintf("%02d", i)}</option>\n) }
1622
- expected << "</select>\n"
1623
- expected << " : "
1624
- expected << %(<select id="post_written_on_5i" name="post[written_on(5i)]" class="selector">\n)
1625
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 16}>#{sprintf("%02d", i)}</option>\n) }
1626
- expected << "</select>\n"
1627
-
1628
- assert_dom_equal expected, output_buffer
1629
- end
1630
-
1631
- def test_time_select_with_separator
1632
- @post = Post.new
1633
- @post.written_on = Time.local(2004, 6, 15, 15, 16, 35)
1634
-
1635
- expected = %{<input type="hidden" id="post_written_on_1i" name="post[written_on(1i)]" value="2004" />\n}
1636
- expected << %{<input type="hidden" id="post_written_on_2i" name="post[written_on(2i)]" value="6" />\n}
1637
- expected << %{<input type="hidden" id="post_written_on_3i" name="post[written_on(3i)]" value="15" />\n}
1638
-
1639
- expected << %(<select id="post_written_on_4i" name="post[written_on(4i)]">\n)
1640
- 0.upto(23) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 15}>#{sprintf("%02d", i)}</option>\n) }
1641
- expected << "</select>\n"
1642
-
1643
- expected << " - "
1644
-
1645
- expected << %(<select id="post_written_on_5i" name="post[written_on(5i)]">\n)
1646
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 16}>#{sprintf("%02d", i)}</option>\n) }
1647
- expected << "</select>\n"
1648
-
1649
- expected << " - "
1650
-
1651
- expected << %(<select id="post_written_on_6i" name="post[written_on(6i)]">\n)
1652
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 35}>#{sprintf("%02d", i)}</option>\n) }
1653
- expected << "</select>\n"
1654
-
1655
- assert_dom_equal expected, time_select("post", "written_on", { :time_separator => " - ", :include_seconds => true })
1656
- end
1657
-
1658
- def test_time_select_with_default_prompt
1659
- @post = Post.new
1660
- @post.written_on = Time.local(2004, 6, 15, 15, 16, 35)
1661
-
1662
- expected = %{<input type="hidden" id="post_written_on_1i" name="post[written_on(1i)]" value="2004" />\n}
1663
- expected << %{<input type="hidden" id="post_written_on_2i" name="post[written_on(2i)]" value="6" />\n}
1664
- expected << %{<input type="hidden" id="post_written_on_3i" name="post[written_on(3i)]" value="15" />\n}
1665
-
1666
- expected << %(<select id="post_written_on_4i" name="post[written_on(4i)]">\n)
1667
- expected << %(<option value="">Hour</option>\n)
1668
- 0.upto(23) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 15}>#{sprintf("%02d", i)}</option>\n) }
1669
- expected << "</select>\n"
1670
- expected << " : "
1671
- expected << %(<select id="post_written_on_5i" name="post[written_on(5i)]">\n)
1672
- expected << %(<option value="">Minute</option>\n)
1673
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 16}>#{sprintf("%02d", i)}</option>\n) }
1674
- expected << "</select>\n"
1675
-
1676
- assert_dom_equal expected, time_select("post", "written_on", :prompt => true)
1677
- end
1678
-
1679
- def test_time_select_with_custom_prompt
1680
- @post = Post.new
1681
- @post.written_on = Time.local(2004, 6, 15, 15, 16, 35)
1682
-
1683
- expected = %{<input type="hidden" id="post_written_on_1i" name="post[written_on(1i)]" value="2004" />\n}
1684
- expected << %{<input type="hidden" id="post_written_on_2i" name="post[written_on(2i)]" value="6" />\n}
1685
- expected << %{<input type="hidden" id="post_written_on_3i" name="post[written_on(3i)]" value="15" />\n}
1686
-
1687
- expected << %(<select id="post_written_on_4i" name="post[written_on(4i)]">\n)
1688
- expected << %(<option value="">Choose hour</option>\n)
1689
- 0.upto(23) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 15}>#{sprintf("%02d", i)}</option>\n) }
1690
- expected << "</select>\n"
1691
- expected << " : "
1692
- expected << %(<select id="post_written_on_5i" name="post[written_on(5i)]">\n)
1693
- expected << %(<option value="">Choose minute</option>\n)
1694
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 16}>#{sprintf("%02d", i)}</option>\n) }
1695
- expected << "</select>\n"
1696
-
1697
- assert_dom_equal expected, time_select("post", "written_on", :prompt => {:hour => 'Choose hour', :minute => 'Choose minute'})
1698
- end
1699
-
1700
- def test_datetime_select
1701
- @post = Post.new
1702
- @post.updated_at = Time.local(2004, 6, 15, 16, 35)
1703
-
1704
- expected = %{<select id="post_updated_at_1i" name="post[updated_at(1i)]">\n}
1705
- expected << %{<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004" selected="selected">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
1706
- expected << "</select>\n"
1707
-
1708
- expected << %{<select id="post_updated_at_2i" name="post[updated_at(2i)]">\n}
1709
- expected << %{<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6" selected="selected">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
1710
- expected << "</select>\n"
1711
-
1712
- expected << %{<select id="post_updated_at_3i" name="post[updated_at(3i)]">\n}
1713
- expected << %{<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15" selected="selected">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
1714
- expected << "</select>\n"
1715
-
1716
- expected << " &mdash; "
1717
-
1718
- expected << %{<select id="post_updated_at_4i" name="post[updated_at(4i)]">\n}
1719
- expected << %{<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n}
1720
- expected << "</select>\n"
1721
- expected << " : "
1722
- expected << %{<select id="post_updated_at_5i" name="post[updated_at(5i)]">\n}
1723
- expected << %{<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35" selected="selected">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n}
1724
- expected << "</select>\n"
1725
-
1726
- assert_dom_equal expected, datetime_select("post", "updated_at")
1727
- end
1728
-
1729
- def test_datetime_select_defaults_to_time_zone_now_when_config_time_zone_is_set
1730
- time = stub(:year => 2004, :month => 6, :day => 15, :hour => 16, :min => 35, :sec => 0)
1731
- time_zone = mock()
1732
- time_zone.expects(:now).returns time
1733
- Time.zone_default = time_zone
1734
- @post = Post.new
1735
-
1736
- expected = %{<select id="post_updated_at_1i" name="post[updated_at(1i)]">\n}
1737
- expected << %{<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004" selected="selected">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
1738
- expected << "</select>\n"
1739
-
1740
- expected << %{<select id="post_updated_at_2i" name="post[updated_at(2i)]">\n}
1741
- expected << %{<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6" selected="selected">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
1742
- expected << "</select>\n"
1743
-
1744
- expected << %{<select id="post_updated_at_3i" name="post[updated_at(3i)]">\n}
1745
- expected << %{<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15" selected="selected">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
1746
- expected << "</select>\n"
1747
-
1748
- expected << " &mdash; "
1749
-
1750
- expected << %{<select id="post_updated_at_4i" name="post[updated_at(4i)]">\n}
1751
- expected << %{<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n}
1752
- expected << "</select>\n"
1753
- expected << " : "
1754
- expected << %{<select id="post_updated_at_5i" name="post[updated_at(5i)]">\n}
1755
- expected << %{<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35" selected="selected">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n}
1756
- expected << "</select>\n"
1757
-
1758
- assert_dom_equal expected, datetime_select("post", "updated_at")
1759
- ensure
1760
- Time.zone_default = nil
1761
- end
1762
-
1763
- def test_datetime_select_with_html_options_within_fields_for
1764
- @post = Post.new
1765
- @post.updated_at = Time.local(2004, 6, 15, 16, 35)
1766
-
1767
- fields_for :post, @post do |f|
1768
- concat f.datetime_select(:updated_at, {}, :class => 'selector')
1769
- end
1770
-
1771
- expected = "<select id='post_updated_at_1i' name='post[updated_at(1i)]' class='selector'>\n<option value='1999'>1999</option>\n<option value='2000'>2000</option>\n<option value='2001'>2001</option>\n<option value='2002'>2002</option>\n<option value='2003'>2003</option>\n<option selected='selected' value='2004'>2004</option>\n<option value='2005'>2005</option>\n<option value='2006'>2006</option>\n<option value='2007'>2007</option>\n<option value='2008'>2008</option>\n<option value='2009'>2009</option>\n</select>\n"
1772
- expected << "<select id='post_updated_at_2i' name='post[updated_at(2i)]' class='selector'>\n<option value='1'>January</option>\n<option value='2'>February</option>\n<option value='3'>March</option>\n<option value='4'>April</option>\n<option value='5'>May</option>\n<option selected='selected' value='6'>June</option>\n<option value='7'>July</option>\n<option value='8'>August</option>\n<option value='9'>September</option>\n<option value='10'>October</option>\n<option value='11'>November</option>\n<option value='12'>December</option>\n</select>\n"
1773
- expected << "<select id='post_updated_at_3i' name='post[updated_at(3i)]' class='selector'>\n<option value='1'>1</option>\n<option value='2'>2</option>\n<option value='3'>3</option>\n<option value='4'>4</option>\n<option value='5'>5</option>\n<option value='6'>6</option>\n<option value='7'>7</option>\n<option value='8'>8</option>\n<option value='9'>9</option>\n<option value='10'>10</option>\n<option value='11'>11</option>\n<option value='12'>12</option>\n<option value='13'>13</option>\n<option value='14'>14</option>\n<option selected='selected' value='15'>15</option>\n<option value='16'>16</option>\n<option value='17'>17</option>\n<option value='18'>18</option>\n<option value='19'>19</option>\n<option value='20'>20</option>\n<option value='21'>21</option>\n<option value='22'>22</option>\n<option value='23'>23</option>\n<option value='24'>24</option>\n<option value='25'>25</option>\n<option value='26'>26</option>\n<option value='27'>27</option>\n<option value='28'>28</option>\n<option value='29'>29</option>\n<option value='30'>30</option>\n<option value='31'>31</option>\n</select>\n"
1774
- expected << " &mdash; <select id='post_updated_at_4i' name='post[updated_at(4i)]' class='selector'>\n<option value='00'>00</option>\n<option value='01'>01</option>\n<option value='02'>02</option>\n<option value='03'>03</option>\n<option value='04'>04</option>\n<option value='05'>05</option>\n<option value='06'>06</option>\n<option value='07'>07</option>\n<option value='08'>08</option>\n<option value='09'>09</option>\n<option value='10'>10</option>\n<option value='11'>11</option>\n<option value='12'>12</option>\n<option value='13'>13</option>\n<option value='14'>14</option>\n<option value='15'>15</option>\n<option selected='selected' value='16'>16</option>\n<option value='17'>17</option>\n<option value='18'>18</option>\n<option value='19'>19</option>\n<option value='20'>20</option>\n<option value='21'>21</option>\n<option value='22'>22</option>\n<option value='23'>23</option>\n</select>\n"
1775
- expected << " : <select id='post_updated_at_5i' name='post[updated_at(5i)]' class='selector'>\n<option value='00'>00</option>\n<option value='01'>01</option>\n<option value='02'>02</option>\n<option value='03'>03</option>\n<option value='04'>04</option>\n<option value='05'>05</option>\n<option value='06'>06</option>\n<option value='07'>07</option>\n<option value='08'>08</option>\n<option value='09'>09</option>\n<option value='10'>10</option>\n<option value='11'>11</option>\n<option value='12'>12</option>\n<option value='13'>13</option>\n<option value='14'>14</option>\n<option value='15'>15</option>\n<option value='16'>16</option>\n<option value='17'>17</option>\n<option value='18'>18</option>\n<option value='19'>19</option>\n<option value='20'>20</option>\n<option value='21'>21</option>\n<option value='22'>22</option>\n<option value='23'>23</option>\n<option value='24'>24</option>\n<option value='25'>25</option>\n<option value='26'>26</option>\n<option value='27'>27</option>\n<option value='28'>28</option>\n<option value='29'>29</option>\n<option value='30'>30</option>\n<option value='31'>31</option>\n<option value='32'>32</option>\n<option value='33'>33</option>\n<option value='34'>34</option>\n<option selected='selected' value='35'>35</option>\n<option value='36'>36</option>\n<option value='37'>37</option>\n<option value='38'>38</option>\n<option value='39'>39</option>\n<option value='40'>40</option>\n<option value='41'>41</option>\n<option value='42'>42</option>\n<option value='43'>43</option>\n<option value='44'>44</option>\n<option value='45'>45</option>\n<option value='46'>46</option>\n<option value='47'>47</option>\n<option value='48'>48</option>\n<option value='49'>49</option>\n<option value='50'>50</option>\n<option value='51'>51</option>\n<option value='52'>52</option>\n<option value='53'>53</option>\n<option value='54'>54</option>\n<option value='55'>55</option>\n<option value='56'>56</option>\n<option value='57'>57</option>\n<option value='58'>58</option>\n<option value='59'>59</option>\n</select>\n"
1776
-
1777
- assert_dom_equal expected, output_buffer
1778
- end
1779
-
1780
- def test_datetime_select_with_separators
1781
- @post = Post.new
1782
- @post.updated_at = Time.local(2004, 6, 15, 15, 16, 35)
1783
-
1784
- expected = %{<select id="post_updated_at_1i" name="post[updated_at(1i)]">\n}
1785
- expected << %{<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004" selected="selected">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
1786
- expected << "</select>\n"
1787
-
1788
- expected << " / "
1789
-
1790
- expected << %{<select id="post_updated_at_2i" name="post[updated_at(2i)]">\n}
1791
- expected << %{<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6" selected="selected">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
1792
- expected << "</select>\n"
1793
-
1794
- expected << " / "
1795
-
1796
- expected << %{<select id="post_updated_at_3i" name="post[updated_at(3i)]">\n}
1797
- expected << %{<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15" selected="selected">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
1798
- expected << "</select>\n"
1799
-
1800
- expected << " , "
1801
-
1802
- expected << %(<select id="post_updated_at_4i" name="post[updated_at(4i)]">\n)
1803
- 0.upto(23) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 15}>#{sprintf("%02d", i)}</option>\n) }
1804
- expected << "</select>\n"
1805
-
1806
- expected << " - "
1807
-
1808
- expected << %(<select id="post_updated_at_5i" name="post[updated_at(5i)]">\n)
1809
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 16}>#{sprintf("%02d", i)}</option>\n) }
1810
- expected << "</select>\n"
1811
-
1812
- expected << " - "
1813
-
1814
- expected << %(<select id="post_updated_at_6i" name="post[updated_at(6i)]">\n)
1815
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 35}>#{sprintf("%02d", i)}</option>\n) }
1816
- expected << "</select>\n"
1817
-
1818
- assert_dom_equal expected, datetime_select("post", "updated_at", { :date_separator => " / ", :datetime_separator => " , ", :time_separator => " - ", :include_seconds => true })
1819
- end
1820
-
1821
- def test_datetime_select_with_default_prompt
1822
- @post = Post.new
1823
- @post.updated_at = nil
1824
-
1825
- expected = %{<select id="post_updated_at_1i" name="post[updated_at(1i)]">\n}
1826
- expected << %{<option value="">Year</option>\n<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
1827
- expected << "</select>\n"
1828
-
1829
- expected << %{<select id="post_updated_at_2i" name="post[updated_at(2i)]">\n}
1830
- expected << %{<option value="">Month</option>\n<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
1831
- expected << "</select>\n"
1832
-
1833
- expected << %{<select id="post_updated_at_3i" name="post[updated_at(3i)]">\n}
1834
- expected << %{<option value="">Day</option>\n<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
1835
- expected << "</select>\n"
1836
-
1837
- expected << " &mdash; "
1838
-
1839
- expected << %{<select id="post_updated_at_4i" name="post[updated_at(4i)]">\n}
1840
- expected << %{<option value="">Hour</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n}
1841
- expected << "</select>\n"
1842
- expected << " : "
1843
- expected << %{<select id="post_updated_at_5i" name="post[updated_at(5i)]">\n}
1844
- expected << %{<option value="">Minute</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n}
1845
- expected << "</select>\n"
1846
-
1847
- assert_dom_equal expected, datetime_select("post", "updated_at", :start_year=>1999, :end_year=>2009, :prompt => true)
1848
- end
1849
-
1850
- def test_datetime_select_with_custom_prompt
1851
- @post = Post.new
1852
- @post.updated_at = nil
1853
-
1854
- expected = %{<select id="post_updated_at_1i" name="post[updated_at(1i)]">\n}
1855
- expected << %{<option value="">Choose year</option>\n<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
1856
- expected << "</select>\n"
1857
-
1858
- expected << %{<select id="post_updated_at_2i" name="post[updated_at(2i)]">\n}
1859
- expected << %{<option value="">Choose month</option>\n<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
1860
- expected << "</select>\n"
1861
-
1862
- expected << %{<select id="post_updated_at_3i" name="post[updated_at(3i)]">\n}
1863
- expected << %{<option value="">Choose day</option>\n<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
1864
- expected << "</select>\n"
1865
-
1866
- expected << " &mdash; "
1867
-
1868
- expected << %{<select id="post_updated_at_4i" name="post[updated_at(4i)]">\n}
1869
- expected << %{<option value="">Choose hour</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n}
1870
- expected << "</select>\n"
1871
- expected << " : "
1872
- expected << %{<select id="post_updated_at_5i" name="post[updated_at(5i)]">\n}
1873
- expected << %{<option value="">Choose minute</option>\n<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n}
1874
- expected << "</select>\n"
1875
-
1876
- assert_dom_equal expected, datetime_select("post", "updated_at", :start_year=>1999, :end_year=>2009, :prompt => {:year => 'Choose year', :month => 'Choose month', :day => 'Choose day', :hour => 'Choose hour', :minute => 'Choose minute'})
1877
- end
1878
-
1879
- def test_date_select_with_zero_value_and_no_start_year
1880
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
1881
- (Date.today.year-5).upto(Date.today.year+1) { |y| expected << %(<option value="#{y}">#{y}</option>\n) }
1882
- expected << "</select>\n"
1883
-
1884
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
1885
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
1886
- expected << "</select>\n"
1887
-
1888
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
1889
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
1890
- expected << "</select>\n"
1891
-
1892
- assert_dom_equal expected, select_date(0, :end_year => Date.today.year+1, :prefix => "date[first]")
1893
- end
1894
-
1895
- def test_date_select_with_zero_value_and_no_end_year
1896
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
1897
- last_year = Time.now.year + 5
1898
- 2003.upto(last_year) { |y| expected << %(<option value="#{y}">#{y}</option>\n) }
1899
- expected << "</select>\n"
1900
-
1901
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
1902
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
1903
- expected << "</select>\n"
1904
-
1905
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
1906
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
1907
- expected << "</select>\n"
1908
-
1909
- assert_dom_equal expected, select_date(0, :start_year => 2003, :prefix => "date[first]")
1910
- end
1911
-
1912
- def test_date_select_with_zero_value_and_no_start_and_end_year
1913
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
1914
- (Date.today.year-5).upto(Date.today.year+5) { |y| expected << %(<option value="#{y}">#{y}</option>\n) }
1915
- expected << "</select>\n"
1916
-
1917
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
1918
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
1919
- expected << "</select>\n"
1920
-
1921
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
1922
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
1923
- expected << "</select>\n"
1924
-
1925
- assert_dom_equal expected, select_date(0, :prefix => "date[first]")
1926
- end
1927
-
1928
- def test_date_select_with_nil_value_and_no_start_and_end_year
1929
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
1930
- (Date.today.year-5).upto(Date.today.year+5) { |y| expected << %(<option value="#{y}">#{y}</option>\n) }
1931
- expected << "</select>\n"
1932
-
1933
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
1934
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
1935
- expected << "</select>\n"
1936
-
1937
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
1938
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
1939
- expected << "</select>\n"
1940
-
1941
- assert_dom_equal expected, select_date(nil, :prefix => "date[first]")
1942
- end
1943
-
1944
- def test_datetime_select_with_nil_value_and_no_start_and_end_year
1945
- expected = %(<select id="date_first_year" name="date[first][year]">\n)
1946
- (Date.today.year-5).upto(Date.today.year+5) { |y| expected << %(<option value="#{y}">#{y}</option>\n) }
1947
- expected << "</select>\n"
1948
-
1949
- expected << %(<select id="date_first_month" name="date[first][month]">\n)
1950
- expected << %(<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n)
1951
- expected << "</select>\n"
1952
-
1953
- expected << %(<select id="date_first_day" name="date[first][day]">\n)
1954
- expected << %(<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n)
1955
- expected << "</select>\n"
1956
-
1957
- expected << %(<select id="date_first_hour" name="date[first][hour]">\n)
1958
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n)
1959
- expected << "</select>\n"
1960
-
1961
- expected << %(<select id="date_first_minute" name="date[first][minute]">\n)
1962
- expected << %(<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n)
1963
- expected << "</select>\n"
1964
-
1965
- assert_dom_equal expected, select_datetime(nil, :prefix => "date[first]")
1966
- end
1967
-
1968
- def test_datetime_select_with_options_index
1969
- @post = Post.new
1970
- @post.updated_at = Time.local(2004, 6, 15, 16, 35)
1971
- id = 456
1972
-
1973
- expected = %{<select id="post_456_updated_at_1i" name="post[#{id}][updated_at(1i)]">\n}
1974
- expected << %{<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004" selected="selected">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
1975
- expected << "</select>\n"
1976
-
1977
- expected << %{<select id="post_456_updated_at_2i" name="post[#{id}][updated_at(2i)]">\n}
1978
- expected << %{<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6" selected="selected">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
1979
- expected << "</select>\n"
1980
-
1981
- expected << %{<select id="post_456_updated_at_3i" name="post[#{id}][updated_at(3i)]">\n}
1982
- expected << %{<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15" selected="selected">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
1983
- expected << "</select>\n"
1984
-
1985
- expected << " &mdash; "
1986
-
1987
- expected << %{<select id="post_456_updated_at_4i" name="post[#{id}][updated_at(4i)]">\n}
1988
- expected << %{<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n}
1989
- expected << "</select>\n"
1990
- expected << " : "
1991
- expected << %{<select id="post_456_updated_at_5i" name="post[#{id}][updated_at(5i)]">\n}
1992
- expected << %{<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35" selected="selected">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n}
1993
- expected << "</select>\n"
1994
-
1995
- assert_dom_equal expected, datetime_select("post", "updated_at", :index => id)
1996
- end
1997
-
1998
- def test_datetime_select_within_fields_for_with_options_index
1999
- @post = Post.new
2000
- @post.updated_at = Time.local(2004, 6, 15, 16, 35)
2001
- id = 456
2002
-
2003
- fields_for :post, @post, :index => id do |f|
2004
- concat f.datetime_select(:updated_at)
2005
- end
2006
-
2007
- expected = %{<select id="post_456_updated_at_1i" name="post[#{id}][updated_at(1i)]">\n}
2008
- expected << %{<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004" selected="selected">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
2009
- expected << "</select>\n"
2010
-
2011
- expected << %{<select id="post_456_updated_at_2i" name="post[#{id}][updated_at(2i)]">\n}
2012
- expected << %{<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6" selected="selected">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
2013
- expected << "</select>\n"
2014
-
2015
- expected << %{<select id="post_456_updated_at_3i" name="post[#{id}][updated_at(3i)]">\n}
2016
- expected << %{<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15" selected="selected">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
2017
- expected << "</select>\n"
2018
-
2019
- expected << " &mdash; "
2020
-
2021
- expected << %{<select id="post_456_updated_at_4i" name="post[#{id}][updated_at(4i)]">\n}
2022
- expected << %{<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n}
2023
- expected << "</select>\n"
2024
- expected << " : "
2025
- expected << %{<select id="post_456_updated_at_5i" name="post[#{id}][updated_at(5i)]">\n}
2026
- expected << %{<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35" selected="selected">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n}
2027
- expected << "</select>\n"
2028
-
2029
- assert_dom_equal expected, output_buffer
2030
- end
2031
-
2032
- def test_datetime_select_with_auto_index
2033
- @post = Post.new
2034
- @post.updated_at = Time.local(2004, 6, 15, 16, 35)
2035
- id = @post.id
2036
-
2037
- expected = %{<select id="post_123_updated_at_1i" name="post[#{id}][updated_at(1i)]">\n}
2038
- expected << %{<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004" selected="selected">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
2039
- expected << "</select>\n"
2040
-
2041
- expected << %{<select id="post_123_updated_at_2i" name="post[#{id}][updated_at(2i)]">\n}
2042
- expected << %{<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6" selected="selected">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
2043
- expected << "</select>\n"
2044
-
2045
- expected << %{<select id="post_123_updated_at_3i" name="post[#{id}][updated_at(3i)]">\n}
2046
- expected << %{<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15" selected="selected">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
2047
- expected << "</select>\n"
2048
-
2049
- expected << " &mdash; "
2050
-
2051
- expected << %{<select id="post_123_updated_at_4i" name="post[#{id}][updated_at(4i)]">\n}
2052
- expected << %{<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n}
2053
- expected << "</select>\n"
2054
- expected << " : "
2055
- expected << %{<select id="post_123_updated_at_5i" name="post[#{id}][updated_at(5i)]">\n}
2056
- expected << %{<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35" selected="selected">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n}
2057
- expected << "</select>\n"
2058
-
2059
- assert_dom_equal expected, datetime_select("post[]", "updated_at")
2060
- end
2061
-
2062
- def test_datetime_select_with_seconds
2063
- @post = Post.new
2064
- @post.updated_at = Time.local(2004, 6, 15, 15, 16, 35)
2065
-
2066
- expected = %{<select id="post_updated_at_1i" name="post[updated_at(1i)]">\n}
2067
- 1999.upto(2009) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 2004}>#{i}</option>\n) }
2068
- expected << "</select>\n"
2069
- expected << %{<select id="post_updated_at_2i" name="post[updated_at(2i)]">\n}
2070
- 1.upto(12) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 6}>#{Date::MONTHNAMES[i]}</option>\n) }
2071
- expected << "</select>\n"
2072
- expected << %{<select id="post_updated_at_3i" name="post[updated_at(3i)]">\n}
2073
- 1.upto(31) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 15}>#{i}</option>\n) }
2074
- expected << "</select>\n"
2075
-
2076
- expected << " &mdash; "
2077
-
2078
- expected << %{<select id="post_updated_at_4i" name="post[updated_at(4i)]">\n}
2079
- 0.upto(23) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 15}>#{sprintf("%02d", i)}</option>\n) }
2080
- expected << "</select>\n"
2081
- expected << " : "
2082
- expected << %{<select id="post_updated_at_5i" name="post[updated_at(5i)]">\n}
2083
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 16}>#{sprintf("%02d", i)}</option>\n) }
2084
- expected << "</select>\n"
2085
- expected << " : "
2086
- expected << %{<select id="post_updated_at_6i" name="post[updated_at(6i)]">\n}
2087
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 35}>#{sprintf("%02d", i)}</option>\n) }
2088
- expected << "</select>\n"
2089
-
2090
- assert_dom_equal expected, datetime_select("post", "updated_at", :include_seconds => true)
2091
- end
2092
-
2093
- def test_datetime_select_discard_year
2094
- @post = Post.new
2095
- @post.updated_at = Time.local(2004, 6, 15, 15, 16, 35)
2096
-
2097
- expected = %{<input type="hidden" id="post_updated_at_1i" name="post[updated_at(1i)]" value="2004" />\n}
2098
- expected << %{<select id="post_updated_at_2i" name="post[updated_at(2i)]">\n}
2099
- 1.upto(12) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 6}>#{Date::MONTHNAMES[i]}</option>\n) }
2100
- expected << "</select>\n"
2101
- expected << %{<select id="post_updated_at_3i" name="post[updated_at(3i)]">\n}
2102
- 1.upto(31) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 15}>#{i}</option>\n) }
2103
- expected << "</select>\n"
2104
-
2105
- expected << " &mdash; "
2106
-
2107
- expected << %{<select id="post_updated_at_4i" name="post[updated_at(4i)]">\n}
2108
- 0.upto(23) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 15}>#{sprintf("%02d", i)}</option>\n) }
2109
- expected << "</select>\n"
2110
- expected << " : "
2111
- expected << %{<select id="post_updated_at_5i" name="post[updated_at(5i)]">\n}
2112
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 16}>#{sprintf("%02d", i)}</option>\n) }
2113
- expected << "</select>\n"
2114
-
2115
- assert_dom_equal expected, datetime_select("post", "updated_at", :discard_year => true)
2116
- end
2117
-
2118
- def test_datetime_select_discard_month
2119
- @post = Post.new
2120
- @post.updated_at = Time.local(2004, 6, 15, 15, 16, 35)
2121
-
2122
- expected = %{<select id="post_updated_at_1i" name="post[updated_at(1i)]">\n}
2123
- 1999.upto(2009) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 2004}>#{i}</option>\n) }
2124
- expected << "</select>\n"
2125
- expected << %{<input type="hidden" id="post_updated_at_2i" name="post[updated_at(2i)]" value="6" />\n}
2126
- expected << %{<input type="hidden" id="post_updated_at_3i" name="post[updated_at(3i)]" value="15" />\n}
2127
-
2128
- expected << " &mdash; "
2129
-
2130
- expected << %{<select id="post_updated_at_4i" name="post[updated_at(4i)]">\n}
2131
- 0.upto(23) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 15}>#{sprintf("%02d", i)}</option>\n) }
2132
- expected << "</select>\n"
2133
- expected << " : "
2134
- expected << %{<select id="post_updated_at_5i" name="post[updated_at(5i)]">\n}
2135
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 16}>#{sprintf("%02d", i)}</option>\n) }
2136
- expected << "</select>\n"
2137
-
2138
- assert_dom_equal expected, datetime_select("post", "updated_at", :discard_month => true)
2139
- end
2140
-
2141
- def test_datetime_select_discard_year_and_month
2142
- @post = Post.new
2143
- @post.updated_at = Time.local(2004, 6, 15, 15, 16, 35)
2144
-
2145
- expected = %{<input type="hidden" id="post_updated_at_1i" name="post[updated_at(1i)]" value="2004" />\n}
2146
- expected << %{<input type="hidden" id="post_updated_at_2i" name="post[updated_at(2i)]" value="6" />\n}
2147
- expected << %{<input type="hidden" id="post_updated_at_3i" name="post[updated_at(3i)]" value="15" />\n}
2148
-
2149
- expected << %{<select id="post_updated_at_4i" name="post[updated_at(4i)]">\n}
2150
- 0.upto(23) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 15}>#{sprintf("%02d", i)}</option>\n) }
2151
- expected << "</select>\n"
2152
- expected << " : "
2153
- expected << %{<select id="post_updated_at_5i" name="post[updated_at(5i)]">\n}
2154
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 16}>#{sprintf("%02d", i)}</option>\n) }
2155
- expected << "</select>\n"
2156
-
2157
- assert_dom_equal expected, datetime_select("post", "updated_at", :discard_year => true, :discard_month => true)
2158
- end
2159
-
2160
- def test_datetime_select_invalid_order
2161
- @post = Post.new
2162
- @post.updated_at = Time.local(2004, 6, 15, 15, 16, 35)
2163
-
2164
- expected = %{<select id="post_updated_at_3i" name="post[updated_at(3i)]">\n}
2165
- 1.upto(31) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 15}>#{i}</option>\n) }
2166
- expected << "</select>\n"
2167
- expected << %{<select id="post_updated_at_2i" name="post[updated_at(2i)]">\n}
2168
- 1.upto(12) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 6}>#{Date::MONTHNAMES[i]}</option>\n) }
2169
- expected << "</select>\n"
2170
- expected << %{<select id="post_updated_at_1i" name="post[updated_at(1i)]">\n}
2171
- 1999.upto(2009) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 2004}>#{i}</option>\n) }
2172
- expected << "</select>\n"
2173
-
2174
- expected << " &mdash; "
2175
-
2176
- expected << %{<select id="post_updated_at_4i" name="post[updated_at(4i)]">\n}
2177
- 0.upto(23) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 15}>#{sprintf("%02d", i)}</option>\n) }
2178
- expected << "</select>\n"
2179
- expected << " : "
2180
- expected << %{<select id="post_updated_at_5i" name="post[updated_at(5i)]">\n}
2181
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 16}>#{sprintf("%02d", i)}</option>\n) }
2182
- expected << "</select>\n"
2183
-
2184
- assert_dom_equal expected, datetime_select("post", "updated_at", :order => [:minute, :day, :hour, :month, :year, :second])
2185
- end
2186
-
2187
- def test_datetime_select_discard_with_order
2188
- @post = Post.new
2189
- @post.updated_at = Time.local(2004, 6, 15, 15, 16, 35)
2190
-
2191
- expected = %{<input type="hidden" id="post_updated_at_1i" name="post[updated_at(1i)]" value="2004" />\n}
2192
- expected << %{<select id="post_updated_at_3i" name="post[updated_at(3i)]">\n}
2193
- 1.upto(31) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 15}>#{i}</option>\n) }
2194
- expected << "</select>\n"
2195
- expected << %{<select id="post_updated_at_2i" name="post[updated_at(2i)]">\n}
2196
- 1.upto(12) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 6}>#{Date::MONTHNAMES[i]}</option>\n) }
2197
- expected << "</select>\n"
2198
-
2199
- expected << " &mdash; "
2200
-
2201
- expected << %{<select id="post_updated_at_4i" name="post[updated_at(4i)]">\n}
2202
- 0.upto(23) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 15}>#{sprintf("%02d", i)}</option>\n) }
2203
- expected << "</select>\n"
2204
- expected << " : "
2205
- expected << %{<select id="post_updated_at_5i" name="post[updated_at(5i)]">\n}
2206
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 16}>#{sprintf("%02d", i)}</option>\n) }
2207
- expected << "</select>\n"
2208
-
2209
- assert_dom_equal expected, datetime_select("post", "updated_at", :order => [:day, :month])
2210
- end
2211
-
2212
- def test_datetime_select_with_default_value_as_time
2213
- @post = Post.new
2214
- @post.updated_at = nil
2215
-
2216
- expected = %{<select id="post_updated_at_1i" name="post[updated_at(1i)]">\n}
2217
- 2001.upto(2011) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 2006}>#{i}</option>\n) }
2218
- expected << "</select>\n"
2219
- expected << %{<select id="post_updated_at_2i" name="post[updated_at(2i)]">\n}
2220
- 1.upto(12) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 9}>#{Date::MONTHNAMES[i]}</option>\n) }
2221
- expected << "</select>\n"
2222
- expected << %{<select id="post_updated_at_3i" name="post[updated_at(3i)]">\n}
2223
- 1.upto(31) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 19}>#{i}</option>\n) }
2224
- expected << "</select>\n"
2225
-
2226
- expected << " &mdash; "
2227
-
2228
- expected << %{<select id="post_updated_at_4i" name="post[updated_at(4i)]">\n}
2229
- 0.upto(23) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 15}>#{sprintf("%02d", i)}</option>\n) }
2230
- expected << "</select>\n"
2231
- expected << " : "
2232
- expected << %{<select id="post_updated_at_5i" name="post[updated_at(5i)]">\n}
2233
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 16}>#{sprintf("%02d", i)}</option>\n) }
2234
- expected << "</select>\n"
2235
-
2236
- assert_dom_equal expected, datetime_select("post", "updated_at", :default => Time.local(2006, 9, 19, 15, 16, 35))
2237
- end
2238
-
2239
- def test_include_blank_overrides_default_option
2240
- @post = Post.new
2241
- @post.updated_at = nil
2242
-
2243
- expected = %{<select id="post_updated_at_1i" name="post[updated_at(1i)]">\n}
2244
- expected << %(<option value=""></option>\n)
2245
- (Time.now.year - 5).upto(Time.now.year + 5) { |i| expected << %(<option value="#{i}">#{i}</option>\n) }
2246
- expected << "</select>\n"
2247
- expected << %{<select id="post_updated_at_2i" name="post[updated_at(2i)]">\n}
2248
- expected << %(<option value=""></option>\n)
2249
- 1.upto(12) { |i| expected << %(<option value="#{i}">#{Date::MONTHNAMES[i]}</option>\n) }
2250
- expected << "</select>\n"
2251
- expected << %{<select id="post_updated_at_3i" name="post[updated_at(3i)]">\n}
2252
- expected << %(<option value=""></option>\n)
2253
- 1.upto(31) { |i| expected << %(<option value="#{i}">#{i}</option>\n) }
2254
- expected << "</select>\n"
2255
-
2256
- assert_dom_equal expected, date_select("post", "updated_at", :default => Time.local(2006, 9, 19, 15, 16, 35), :include_blank => true)
2257
- end
2258
-
2259
- def test_datetime_select_with_default_value_as_hash
2260
- @post = Post.new
2261
- @post.updated_at = nil
2262
-
2263
- expected = %{<select id="post_updated_at_1i" name="post[updated_at(1i)]">\n}
2264
- (Time.now.year - 5).upto(Time.now.year + 5) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == Time.now.year}>#{i}</option>\n) }
2265
- expected << "</select>\n"
2266
- expected << %{<select id="post_updated_at_2i" name="post[updated_at(2i)]">\n}
2267
- 1.upto(12) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == 10}>#{Date::MONTHNAMES[i]}</option>\n) }
2268
- expected << "</select>\n"
2269
- expected << %{<select id="post_updated_at_3i" name="post[updated_at(3i)]">\n}
2270
- 1.upto(31) { |i| expected << %(<option value="#{i}"#{' selected="selected"' if i == Time.now.day}>#{i}</option>\n) }
2271
- expected << "</select>\n"
2272
-
2273
- expected << " &mdash; "
2274
-
2275
- expected << %{<select id="post_updated_at_4i" name="post[updated_at(4i)]">\n}
2276
- 0.upto(23) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 9}>#{sprintf("%02d", i)}</option>\n) }
2277
- expected << "</select>\n"
2278
- expected << " : "
2279
- expected << %{<select id="post_updated_at_5i" name="post[updated_at(5i)]">\n}
2280
- 0.upto(59) { |i| expected << %(<option value="#{sprintf("%02d", i)}"#{' selected="selected"' if i == 42}>#{sprintf("%02d", i)}</option>\n) }
2281
- expected << "</select>\n"
2282
-
2283
- assert_dom_equal expected, datetime_select("post", "updated_at", :default => { :month => 10, :minute => 42, :hour => 9 })
2284
- end
2285
-
2286
- def test_datetime_select_with_html_options
2287
- @post = Post.new
2288
- @post.updated_at = Time.local(2004, 6, 15, 16, 35)
2289
-
2290
- expected = %{<select id="post_updated_at_1i" name="post[updated_at(1i)]" class="selector">\n}
2291
- expected << %{<option value="1999">1999</option>\n<option value="2000">2000</option>\n<option value="2001">2001</option>\n<option value="2002">2002</option>\n<option value="2003">2003</option>\n<option value="2004" selected="selected">2004</option>\n<option value="2005">2005</option>\n<option value="2006">2006</option>\n<option value="2007">2007</option>\n<option value="2008">2008</option>\n<option value="2009">2009</option>\n}
2292
- expected << "</select>\n"
2293
-
2294
- expected << %{<select id="post_updated_at_2i" name="post[updated_at(2i)]" class="selector">\n}
2295
- expected << %{<option value="1">January</option>\n<option value="2">February</option>\n<option value="3">March</option>\n<option value="4">April</option>\n<option value="5">May</option>\n<option value="6" selected="selected">June</option>\n<option value="7">July</option>\n<option value="8">August</option>\n<option value="9">September</option>\n<option value="10">October</option>\n<option value="11">November</option>\n<option value="12">December</option>\n}
2296
- expected << "</select>\n"
2297
-
2298
- expected << %{<select id="post_updated_at_3i" name="post[updated_at(3i)]" class="selector">\n}
2299
- expected << %{<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="4">4</option>\n<option value="5">5</option>\n<option value="6">6</option>\n<option value="7">7</option>\n<option value="8">8</option>\n<option value="9">9</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15" selected="selected">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n}
2300
- expected << "</select>\n"
2301
-
2302
- expected << " &mdash; "
2303
-
2304
- expected << %{<select id="post_updated_at_4i" name="post[updated_at(4i)]" class="selector">\n}
2305
- expected << %{<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16" selected="selected">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n}
2306
- expected << "</select>\n"
2307
- expected << " : "
2308
- expected << %{<select id="post_updated_at_5i" name="post[updated_at(5i)]" class="selector">\n}
2309
- expected << %{<option value="00">00</option>\n<option value="01">01</option>\n<option value="02">02</option>\n<option value="03">03</option>\n<option value="04">04</option>\n<option value="05">05</option>\n<option value="06">06</option>\n<option value="07">07</option>\n<option value="08">08</option>\n<option value="09">09</option>\n<option value="10">10</option>\n<option value="11">11</option>\n<option value="12">12</option>\n<option value="13">13</option>\n<option value="14">14</option>\n<option value="15">15</option>\n<option value="16">16</option>\n<option value="17">17</option>\n<option value="18">18</option>\n<option value="19">19</option>\n<option value="20">20</option>\n<option value="21">21</option>\n<option value="22">22</option>\n<option value="23">23</option>\n<option value="24">24</option>\n<option value="25">25</option>\n<option value="26">26</option>\n<option value="27">27</option>\n<option value="28">28</option>\n<option value="29">29</option>\n<option value="30">30</option>\n<option value="31">31</option>\n<option value="32">32</option>\n<option value="33">33</option>\n<option value="34">34</option>\n<option value="35" selected="selected">35</option>\n<option value="36">36</option>\n<option value="37">37</option>\n<option value="38">38</option>\n<option value="39">39</option>\n<option value="40">40</option>\n<option value="41">41</option>\n<option value="42">42</option>\n<option value="43">43</option>\n<option value="44">44</option>\n<option value="45">45</option>\n<option value="46">46</option>\n<option value="47">47</option>\n<option value="48">48</option>\n<option value="49">49</option>\n<option value="50">50</option>\n<option value="51">51</option>\n<option value="52">52</option>\n<option value="53">53</option>\n<option value="54">54</option>\n<option value="55">55</option>\n<option value="56">56</option>\n<option value="57">57</option>\n<option value="58">58</option>\n<option value="59">59</option>\n}
2310
- expected << "</select>\n"
2311
-
2312
- assert_dom_equal expected, datetime_select("post", "updated_at", {}, :class => 'selector')
2313
- end
2314
-
2315
- def test_date_select_should_not_change_passed_options_hash
2316
- @post = Post.new
2317
- @post.updated_at = Time.local(2008, 7, 16, 23, 30)
2318
-
2319
- options = {
2320
- :order => [ :year, :month, :day ],
2321
- :default => { :year => 2008, :month => 7, :day => 16, :hour => 23, :minute => 30, :second => 1 },
2322
- :discard_type => false,
2323
- :include_blank => false,
2324
- :ignore_date => false,
2325
- :include_seconds => true
2326
- }
2327
- date_select(@post, :updated_at, options)
2328
-
2329
- # note: the literal hash is intentional to show that the actual options hash isn't modified
2330
- # don't change this!
2331
- assert_equal({
2332
- :order => [ :year, :month, :day ],
2333
- :default => { :year => 2008, :month => 7, :day => 16, :hour => 23, :minute => 30, :second => 1 },
2334
- :discard_type => false,
2335
- :include_blank => false,
2336
- :ignore_date => false,
2337
- :include_seconds => true
2338
- }, options)
2339
- end
2340
-
2341
- def test_datetime_select_should_not_change_passed_options_hash
2342
- @post = Post.new
2343
- @post.updated_at = Time.local(2008, 7, 16, 23, 30)
2344
-
2345
- options = {
2346
- :order => [ :year, :month, :day ],
2347
- :default => { :year => 2008, :month => 7, :day => 16, :hour => 23, :minute => 30, :second => 1 },
2348
- :discard_type => false,
2349
- :include_blank => false,
2350
- :ignore_date => false,
2351
- :include_seconds => true
2352
- }
2353
- datetime_select(@post, :updated_at, options)
2354
-
2355
- # note: the literal hash is intentional to show that the actual options hash isn't modified
2356
- # don't change this!
2357
- assert_equal({
2358
- :order => [ :year, :month, :day ],
2359
- :default => { :year => 2008, :month => 7, :day => 16, :hour => 23, :minute => 30, :second => 1 },
2360
- :discard_type => false,
2361
- :include_blank => false,
2362
- :ignore_date => false,
2363
- :include_seconds => true
2364
- }, options)
2365
- end
2366
-
2367
- def test_time_select_should_not_change_passed_options_hash
2368
- @post = Post.new
2369
- @post.updated_at = Time.local(2008, 7, 16, 23, 30)
2370
-
2371
- options = {
2372
- :order => [ :year, :month, :day ],
2373
- :default => { :year => 2008, :month => 7, :day => 16, :hour => 23, :minute => 30, :second => 1 },
2374
- :discard_type => false,
2375
- :include_blank => false,
2376
- :ignore_date => false,
2377
- :include_seconds => true
2378
- }
2379
- time_select(@post, :updated_at, options)
2380
-
2381
- # note: the literal hash is intentional to show that the actual options hash isn't modified
2382
- # don't change this!
2383
- assert_equal({
2384
- :order => [ :year, :month, :day ],
2385
- :default => { :year => 2008, :month => 7, :day => 16, :hour => 23, :minute => 30, :second => 1 },
2386
- :discard_type => false,
2387
- :include_blank => false,
2388
- :ignore_date => false,
2389
- :include_seconds => true
2390
- }, options)
2391
- end
2392
-
2393
- def test_select_date_should_not_change_passed_options_hash
2394
- options = {
2395
- :order => [ :year, :month, :day ],
2396
- :default => { :year => 2008, :month => 7, :day => 16, :hour => 23, :minute => 30, :second => 1 },
2397
- :discard_type => false,
2398
- :include_blank => false,
2399
- :ignore_date => false,
2400
- :include_seconds => true
2401
- }
2402
- select_date(Date.today, options)
2403
-
2404
- # note: the literal hash is intentional to show that the actual options hash isn't modified
2405
- # don't change this!
2406
- assert_equal({
2407
- :order => [ :year, :month, :day ],
2408
- :default => { :year => 2008, :month => 7, :day => 16, :hour => 23, :minute => 30, :second => 1 },
2409
- :discard_type => false,
2410
- :include_blank => false,
2411
- :ignore_date => false,
2412
- :include_seconds => true
2413
- }, options)
2414
- end
2415
-
2416
- def test_select_datetime_should_not_change_passed_options_hash
2417
- options = {
2418
- :order => [ :year, :month, :day ],
2419
- :default => { :year => 2008, :month => 7, :day => 16, :hour => 23, :minute => 30, :second => 1 },
2420
- :discard_type => false,
2421
- :include_blank => false,
2422
- :ignore_date => false,
2423
- :include_seconds => true
2424
- }
2425
- select_datetime(Time.now, options)
2426
-
2427
- # note: the literal hash is intentional to show that the actual options hash isn't modified
2428
- # don't change this!
2429
- assert_equal({
2430
- :order => [ :year, :month, :day ],
2431
- :default => { :year => 2008, :month => 7, :day => 16, :hour => 23, :minute => 30, :second => 1 },
2432
- :discard_type => false,
2433
- :include_blank => false,
2434
- :ignore_date => false,
2435
- :include_seconds => true
2436
- }, options)
2437
- end
2438
-
2439
- def test_select_time_should_not_change_passed_options_hash
2440
- options = {
2441
- :order => [ :year, :month, :day ],
2442
- :default => { :year => 2008, :month => 7, :day => 16, :hour => 23, :minute => 30, :second => 1 },
2443
- :discard_type => false,
2444
- :include_blank => false,
2445
- :ignore_date => false,
2446
- :include_seconds => true
2447
- }
2448
- select_time(Time.now, options)
2449
-
2450
- # note: the literal hash is intentional to show that the actual options hash isn't modified
2451
- # don't change this!
2452
- assert_equal({
2453
- :order => [ :year, :month, :day ],
2454
- :default => { :year => 2008, :month => 7, :day => 16, :hour => 23, :minute => 30, :second => 1 },
2455
- :discard_type => false,
2456
- :include_blank => false,
2457
- :ignore_date => false,
2458
- :include_seconds => true
2459
- }, options)
2460
- end
2461
-
2462
- protected
2463
- def with_env_tz(new_tz = 'US/Eastern')
2464
- old_tz, ENV['TZ'] = ENV['TZ'], new_tz
2465
- yield
2466
- ensure
2467
- old_tz ? ENV['TZ'] = old_tz : ENV.delete('TZ')
2468
- end
2469
- end