enju_library 0.1.0.pre33 → 0.1.0.pre34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (334) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/accepts_controller.rb +14 -14
  3. data/app/controllers/baskets_controller.rb +15 -21
  4. data/app/controllers/libraries_controller.rb +12 -12
  5. data/app/controllers/library_groups_controller.rb +5 -6
  6. data/app/controllers/shelves_controller.rb +17 -17
  7. data/app/controllers/subscribes_controller.rb +10 -10
  8. data/app/controllers/subscriptions_controller.rb +11 -11
  9. data/app/models/accept.rb +7 -12
  10. data/app/models/basket.rb +6 -6
  11. data/app/models/bookstore.rb +2 -2
  12. data/app/models/budget_type.rb +1 -1
  13. data/app/models/library.rb +8 -8
  14. data/app/models/library_group.rb +5 -21
  15. data/app/models/request_status_type.rb +1 -1
  16. data/app/models/request_type.rb +1 -1
  17. data/app/models/search_engine.rb +6 -6
  18. data/app/models/shelf.rb +5 -5
  19. data/app/models/subscribe.rb +3 -3
  20. data/app/models/subscription.rb +5 -5
  21. data/app/views/accepts/_form.html.erb +1 -1
  22. data/app/views/accepts/_list.html.erb +3 -3
  23. data/app/views/accepts/edit.html.erb +1 -1
  24. data/app/views/accepts/index.html.erb +6 -6
  25. data/app/views/accepts/{index.csv.erb → index.txt.csv} +0 -0
  26. data/app/views/accepts/new.html.erb +1 -1
  27. data/app/views/accepts/show.html.erb +2 -2
  28. data/app/views/baskets/edit.html.erb +2 -2
  29. data/app/views/baskets/index.html.erb +3 -2
  30. data/app/views/baskets/new.html.erb +6 -6
  31. data/app/views/baskets/show.html.erb +1 -1
  32. data/app/views/bookstores/_form.html.erb +3 -3
  33. data/app/views/bookstores/edit.html.erb +1 -1
  34. data/app/views/bookstores/index.html.erb +3 -3
  35. data/app/views/bookstores/new.html.erb +1 -1
  36. data/app/views/bookstores/show.html.erb +1 -1
  37. data/app/views/budget_types/_form.html.erb +2 -2
  38. data/app/views/budget_types/edit.html.erb +1 -1
  39. data/app/views/budget_types/index.html.erb +6 -6
  40. data/app/views/budget_types/new.html.erb +1 -1
  41. data/app/views/budget_types/show.html.erb +1 -1
  42. data/app/views/libraries/_calendar.html.erb +2 -2
  43. data/app/views/libraries/_form.html.erb +12 -12
  44. data/app/views/libraries/edit.html.erb +1 -1
  45. data/app/views/libraries/index.html.erb +18 -14
  46. data/app/views/libraries/new.html.erb +1 -1
  47. data/app/views/libraries/show.html.erb +7 -7
  48. data/app/views/library_groups/_form.html.erb +4 -4
  49. data/app/views/library_groups/edit.html.erb +1 -1
  50. data/app/views/library_groups/index.html.erb +2 -2
  51. data/app/views/library_groups/new.html.erb +1 -1
  52. data/app/views/library_groups/show.html.erb +2 -2
  53. data/app/views/request_status_types/edit.html.erb +1 -1
  54. data/app/views/request_status_types/index.html.erb +3 -3
  55. data/app/views/request_status_types/new.html.erb +1 -1
  56. data/app/views/request_status_types/show.html.erb +1 -1
  57. data/app/views/request_types/edit.html.erb +1 -1
  58. data/app/views/request_types/index.html.erb +3 -3
  59. data/app/views/request_types/new.html.erb +1 -1
  60. data/app/views/request_types/show.html.erb +1 -1
  61. data/app/views/search_engines/_form.html.erb +4 -4
  62. data/app/views/search_engines/edit.html.erb +1 -1
  63. data/app/views/search_engines/index.html.erb +3 -3
  64. data/app/views/search_engines/new.html.erb +1 -1
  65. data/app/views/search_engines/show.html.erb +1 -1
  66. data/app/views/shelves/_form.html.erb +4 -4
  67. data/app/views/shelves/_library_facet.html.erb +1 -1
  68. data/app/views/shelves/edit.html.erb +1 -1
  69. data/app/views/shelves/index.html.erb +5 -5
  70. data/app/views/shelves/new.html.erb +2 -2
  71. data/app/views/shelves/show.html.erb +5 -5
  72. data/app/views/shelves/show.mobile.erb +1 -1
  73. data/app/views/subscribes/edit.html.erb +3 -3
  74. data/app/views/subscribes/index.html.erb +3 -3
  75. data/app/views/subscribes/new.html.erb +8 -8
  76. data/app/views/subscribes/show.html.erb +1 -1
  77. data/app/views/subscriptions/edit.html.erb +3 -3
  78. data/app/views/subscriptions/index.html.erb +4 -4
  79. data/app/views/subscriptions/new.html.erb +3 -3
  80. data/app/views/subscriptions/show.html.erb +1 -1
  81. data/config/locales/translation_ja.yml +1 -1
  82. data/db/migrate/080_create_library_groups.rb +0 -1
  83. data/lib/enju_library/version.rb +1 -1
  84. data/lib/generators/enju_library/setup/templates/db/fixtures/request_status_types.yml +37 -0
  85. data/lib/generators/enju_library/setup/templates/db/fixtures/request_types.yml +29 -0
  86. data/spec/controllers/accepts_controller_spec.rb +1 -1
  87. data/spec/controllers/baskets_controller_spec.rb +30 -30
  88. data/spec/controllers/bookstores_controller_spec.rb +21 -21
  89. data/spec/controllers/budget_types_controller_spec.rb +1 -1
  90. data/spec/controllers/libraries_controller_spec.rb +24 -24
  91. data/spec/controllers/library_groups_controller_spec.rb +7 -7
  92. data/spec/controllers/request_status_types_controller_spec.rb +21 -21
  93. data/spec/controllers/request_types_controller_spec.rb +21 -21
  94. data/spec/controllers/search_engines_controller_spec.rb +21 -21
  95. data/spec/controllers/shelves_controller_spec.rb +20 -20
  96. data/spec/controllers/subscribes_controller_spec.rb +21 -21
  97. data/spec/controllers/subscriptions_controller_spec.rb +21 -21
  98. data/spec/dummy/app/helpers/application_helper.rb +1 -0
  99. data/spec/dummy/app/models/user.rb +6 -86
  100. data/spec/dummy/db/development.sqlite3 +0 -0
  101. data/spec/dummy/db/migrate/001_create_agents.rb +0 -8
  102. data/spec/dummy/db/migrate/{20111201155513_add_devise_to_users.rb → 002_devise_create_users.rb} +18 -16
  103. data/spec/dummy/db/migrate/005_create_manifestations.rb +7 -24
  104. data/spec/dummy/db/migrate/006_create_items.rb +0 -6
  105. data/spec/dummy/db/migrate/041_create_roles.rb +13 -0
  106. data/spec/dummy/db/migrate/077_create_user_groups.rb +3 -7
  107. data/spec/dummy/db/migrate/112_create_frequencies.rb +12 -0
  108. data/spec/dummy/db/migrate/117_create_form_of_works.rb +12 -0
  109. data/spec/dummy/db/migrate/154_create_messages.rb +0 -1
  110. data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +0 -2
  111. data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +0 -1
  112. data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +20 -0
  113. data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +20 -0
  114. data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +0 -2
  115. data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +0 -1
  116. data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +0 -1
  117. data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +0 -1
  118. data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +0 -1
  119. data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +0 -4
  120. data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
  121. data/spec/dummy/db/migrate/20090719201843_create_extents.rb +12 -0
  122. data/spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb +12 -0
  123. data/spec/dummy/db/migrate/20090720091429_create_content_types.rb +12 -0
  124. data/spec/dummy/db/migrate/20091025080447_create_licenses.rb +12 -0
  125. data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +14 -0
  126. data/spec/dummy/db/migrate/{20111201163718_create_user_has_roles.rb → 20100606065209_create_user_has_roles.rb} +2 -0
  127. data/spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb +15 -0
  128. data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +12 -0
  129. data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +0 -2
  130. data/spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb +9 -0
  131. data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +6 -0
  132. data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +6 -0
  133. data/spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +5 -0
  134. data/spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +5 -0
  135. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +5 -0
  136. data/spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +5 -0
  137. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +5 -0
  138. data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
  139. data/spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +5 -0
  140. data/spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +6 -0
  141. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +5 -0
  142. data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
  143. data/spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb +6 -0
  144. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +16 -0
  145. data/spec/dummy/db/migrate/{20111201121844_create_roles.rb → 20130506175303_create_identifier_types.rb} +2 -2
  146. data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +15 -0
  147. data/spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb +5 -0
  148. data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +18 -0
  149. data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +11 -0
  150. data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +20 -0
  151. data/spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb +14 -0
  152. data/spec/dummy/db/migrate/20140518111006_create_message_transitions.rb +14 -0
  153. data/spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb +14 -0
  154. data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +14 -0
  155. data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +14 -0
  156. data/spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb +14 -0
  157. data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +14 -0
  158. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +14 -0
  159. data/spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb +14 -0
  160. data/spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb +14 -0
  161. data/spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb +14 -0
  162. data/spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb +14 -0
  163. data/spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +11 -0
  164. data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +11 -0
  165. data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +14 -0
  166. data/spec/dummy/db/migrate/20140628071719_add_user_encoding_to_event_import_file.rb +5 -0
  167. data/spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +5 -0
  168. data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +5 -0
  169. data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +5 -0
  170. data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +11 -0
  171. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +14 -0
  172. data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
  173. data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +5 -0
  174. data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +5 -0
  175. data/spec/dummy/db/migrate/20140720192418_add_default_library_id_to_event_import_file.rb +5 -0
  176. data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
  177. data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +6 -0
  178. data/spec/dummy/db/migrate/20140810061942_add_user_id_to_user_checkout_stat.rb +12 -0
  179. data/spec/dummy/db/migrate/20140810091231_add_checkout_icalendar_token_to_profile.rb +6 -0
  180. data/spec/dummy/db/migrate/20140810091417_add_save_checkout_history_to_profile.rb +5 -0
  181. data/spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb +5 -0
  182. data/spec/dummy/db/schema.rb +453 -74
  183. data/spec/dummy/db/test.sqlite3 +0 -0
  184. data/spec/dummy/solr/conf/admin-extra.html +31 -0
  185. data/spec/dummy/solr/conf/elevate.xml +36 -0
  186. data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
  187. data/spec/dummy/solr/conf/protwords.txt +21 -0
  188. data/spec/dummy/solr/conf/schema.xml +255 -0
  189. data/spec/dummy/solr/conf/scripts.conf +24 -0
  190. data/spec/dummy/solr/conf/solrconfig.xml +667 -0
  191. data/spec/dummy/solr/conf/spellings.txt +2 -0
  192. data/spec/dummy/solr/conf/stopwords.txt +58 -0
  193. data/spec/dummy/solr/conf/synonyms.txt +31 -0
  194. data/spec/dummy/solr/default/data/index/_1vz.fdt +0 -0
  195. data/spec/dummy/solr/default/data/index/_1vz.fdx +0 -0
  196. data/spec/dummy/solr/default/data/index/_1vz.fnm +0 -0
  197. data/spec/dummy/solr/default/data/index/_1vz.nvd +0 -0
  198. data/spec/dummy/solr/default/data/index/_1vz.nvm +0 -0
  199. data/spec/dummy/solr/default/data/index/_1vz.si +0 -0
  200. data/spec/dummy/solr/default/data/index/_1vz_Lucene41_0.doc +0 -0
  201. data/spec/dummy/solr/default/data/index/_1vz_Lucene41_0.pos +0 -0
  202. data/spec/dummy/solr/default/data/index/_1vz_Lucene41_0.tim +0 -0
  203. data/spec/dummy/solr/default/data/index/_1vz_Lucene41_0.tip +0 -0
  204. data/spec/dummy/solr/default/data/index/segments.gen +0 -0
  205. data/spec/dummy/solr/default/data/index/segments_36s +0 -0
  206. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004121 +0 -0
  207. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004122 +0 -0
  208. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004123 +0 -0
  209. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004124 +0 -0
  210. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004125 +0 -0
  211. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004126 +0 -0
  212. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004127 +0 -0
  213. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004128 +0 -0
  214. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004129 +0 -0
  215. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004130 +0 -0
  216. data/spec/dummy/solr/development/data/index/segments.gen +0 -0
  217. data/spec/dummy/solr/development/data/index/segments_1 +0 -0
  218. data/spec/dummy/solr/solr.xml +8 -0
  219. data/spec/dummy/solr/test/data/index/segments.gen +0 -0
  220. data/spec/dummy/solr/test/data/index/segments_1 +0 -0
  221. data/spec/dummy/tmp/cache/assets/test/sprockets/0440b81b0aae840cf287a686585a8cec +0 -0
  222. data/spec/dummy/tmp/cache/assets/test/sprockets/0483120d2ec851526d1beb322a87b34d +0 -0
  223. data/spec/dummy/tmp/cache/assets/test/sprockets/096c3408c7592aaeb756778ce1775f16 +0 -0
  224. data/spec/dummy/tmp/cache/assets/test/sprockets/09bc1fff0c1477a69e8cd36ed3fe771f +0 -0
  225. data/spec/dummy/tmp/cache/assets/test/sprockets/0c0062cfb97ef1437ab0020e724876c6 +0 -0
  226. data/spec/dummy/tmp/cache/assets/test/sprockets/0c8f59d97121b79a2e2a0d009d6da9c3 +0 -0
  227. data/spec/dummy/tmp/cache/assets/test/sprockets/0e3e358e4fe4601ba5e435f6d0c86f12 +0 -0
  228. data/spec/dummy/tmp/cache/assets/test/sprockets/0e7592ffc95bd8b73854cc6453c64e33 +0 -0
  229. data/spec/dummy/tmp/cache/assets/test/sprockets/0e8e7445a50fad85ab545fa283abf5b7 +0 -0
  230. data/spec/dummy/tmp/cache/assets/test/sprockets/1260173072d9796c1ae7d7752b9916c3 +0 -0
  231. data/spec/dummy/tmp/cache/assets/test/sprockets/129cec5384c0f26fcfb0ce65048298c5 +0 -0
  232. data/spec/dummy/tmp/cache/assets/test/sprockets/1572dfd6f1e555f4be1aa60ddc3cb0c0 +0 -0
  233. data/spec/dummy/tmp/cache/assets/test/sprockets/17c9f5037fae5b6ee1fc7466948001b5 +0 -0
  234. data/spec/dummy/tmp/cache/assets/test/sprockets/1c1fbab93e4552626da626e0dbe70c74 +0 -0
  235. data/spec/dummy/tmp/cache/assets/test/sprockets/1d450e5266eb3d679107d9a36dc22559 +0 -0
  236. data/spec/dummy/tmp/cache/assets/test/sprockets/2258e83cd2e464c650334b6a72a87cb6 +0 -0
  237. data/spec/dummy/tmp/cache/assets/test/sprockets/241a5d6ad6008e25a64a5092e8361ae8 +0 -0
  238. data/spec/dummy/tmp/cache/assets/test/sprockets/2bf9c36d2bc8f8ca084394d139ce8edf +0 -0
  239. data/spec/dummy/tmp/cache/assets/test/sprockets/2f09f58943a88f21e3a0318621391785 +0 -0
  240. data/spec/dummy/tmp/cache/assets/test/sprockets/2ffe508d0533d0afd2a37bb574eda40d +0 -0
  241. data/spec/dummy/tmp/cache/assets/test/sprockets/301d9ec69800d0dc163460a12304676a +0 -0
  242. data/spec/dummy/tmp/cache/assets/test/sprockets/3fbe8dcb9a5b2fbc7a22cc4b1ca4aa11 +0 -0
  243. data/spec/dummy/tmp/cache/assets/test/sprockets/45f3c74e1e31b58d9bda6908d5623290 +0 -0
  244. data/spec/dummy/tmp/cache/assets/test/sprockets/49d32c13d390c1b80d8b2705aac86579 +0 -0
  245. data/spec/dummy/tmp/cache/assets/test/sprockets/4aa18096a209e515f5f1df487622cdf4 +0 -0
  246. data/spec/dummy/tmp/cache/assets/test/sprockets/4c4d6b8fc44a49272793290caed29e24 +0 -0
  247. data/spec/dummy/tmp/cache/assets/test/sprockets/4f877aaa67a006f34ad9643d7f82b6dc +0 -0
  248. data/spec/dummy/tmp/cache/assets/test/sprockets/50e64f45f0cb4cee52fd3f3908f89a82 +0 -0
  249. data/spec/dummy/tmp/cache/assets/test/sprockets/5762cca052dd5d3eb8bb35e2ed9a59b8 +0 -0
  250. data/spec/dummy/tmp/cache/assets/test/sprockets/5ab3fcfe4078a2bb14bd91e9ce73ef29 +0 -0
  251. data/spec/dummy/tmp/cache/assets/test/sprockets/5afd4f8068bdfb3d99f5ec4034d2410c +0 -0
  252. data/spec/dummy/tmp/cache/assets/test/sprockets/5db165a5b217a384aaa8885d6bcaf193 +0 -0
  253. data/spec/dummy/tmp/cache/assets/test/sprockets/5dd0b61707256a0514d7f5e224188a1d +0 -0
  254. data/spec/dummy/tmp/cache/assets/test/sprockets/65a8d4d288e5f082f0166aa7be7a2464 +0 -0
  255. data/spec/dummy/tmp/cache/assets/test/sprockets/66e8ff0ee49363fdd0e1866807515228 +0 -0
  256. data/spec/dummy/tmp/cache/assets/test/sprockets/6738d1a07584e4b732d197e10afd6a19 +0 -0
  257. data/spec/dummy/tmp/cache/assets/test/sprockets/6a83d3fd052b7923111a0ed838ff53e0 +0 -0
  258. data/spec/dummy/tmp/cache/assets/test/sprockets/6a958d3fc0999c71aa19bae06bacdeb6 +0 -0
  259. data/spec/dummy/tmp/cache/assets/test/sprockets/6df57ded762c97e6755758008bb3a660 +0 -0
  260. data/spec/dummy/tmp/cache/assets/test/sprockets/6fdb4513af157010ef79b56df44d665e +0 -0
  261. data/spec/dummy/tmp/cache/assets/test/sprockets/7289cf11ae787f5e0639528dc155bffb +0 -0
  262. data/spec/dummy/tmp/cache/assets/test/sprockets/7c4b2e5317023fb751fa54ad41f95101 +0 -0
  263. data/spec/dummy/tmp/cache/assets/test/sprockets/7eea3b9e54d8a23d8a05d354f1a93f51 +0 -0
  264. data/spec/dummy/tmp/cache/assets/test/sprockets/811e5198d0dc4efe02d28c0c2215e207 +0 -0
  265. data/spec/dummy/tmp/cache/assets/test/sprockets/84c8a64682205dba3f8edd60fc1ec8e5 +0 -0
  266. data/spec/dummy/tmp/cache/assets/test/sprockets/8a73d1e841a4716b4f18ed4a23622092 +0 -0
  267. data/spec/dummy/tmp/cache/assets/test/sprockets/8be2a49de16592553e0d0a09d92bf6ef +0 -0
  268. data/spec/dummy/tmp/cache/assets/test/sprockets/8f72bcc7284bf844ac8bec5dc4b71482 +0 -0
  269. data/spec/dummy/tmp/cache/assets/test/sprockets/9604073a83f822f13caaabd7e157bbbb +0 -0
  270. data/spec/dummy/tmp/cache/assets/test/sprockets/979eaef456657e4fc79b9b967aef0587 +0 -0
  271. data/spec/dummy/tmp/cache/assets/test/sprockets/9ad166e60e3d477c78328181979a7b77 +0 -0
  272. data/spec/dummy/tmp/cache/assets/test/sprockets/9b78afe804f3870fbafb97d2d62e5f6b +0 -0
  273. data/spec/dummy/tmp/cache/assets/test/sprockets/a296264dcc89e1f8ab6382e678ffbe38 +0 -0
  274. data/spec/dummy/tmp/cache/assets/test/sprockets/a3cea75f1356ef55329e78f86b4c72b1 +0 -0
  275. data/spec/dummy/tmp/cache/assets/test/sprockets/a5bf9fc3822019953dee89c6ae2b32ea +0 -0
  276. data/spec/dummy/tmp/cache/assets/test/sprockets/a7387ef33f472faf58df3dd72623fbc6 +0 -0
  277. data/spec/dummy/tmp/cache/assets/test/sprockets/aa2e1ada35daa496bb08e85fcb817536 +0 -0
  278. data/spec/dummy/tmp/cache/assets/test/sprockets/abee2d4cb18d15789dcdc9c680f3e6de +0 -0
  279. data/spec/dummy/tmp/cache/assets/test/sprockets/ae706bde720905edffe622ae48f15740 +0 -0
  280. data/spec/dummy/tmp/cache/assets/test/sprockets/b53fd979e77975479427d0b481b004d4 +0 -0
  281. data/spec/dummy/tmp/cache/assets/test/sprockets/b57a0579a21bd3280d1db6f42550e5c7 +0 -0
  282. data/spec/dummy/tmp/cache/assets/test/sprockets/b80bed2ef62ec65384f12272c185a9a8 +0 -0
  283. data/spec/dummy/tmp/cache/assets/test/sprockets/bf33fb298844af06e55096420b989e3b +0 -0
  284. data/spec/dummy/tmp/cache/assets/test/sprockets/c3e97042b232e677d67679e11ebdb8ec +0 -0
  285. data/spec/dummy/tmp/cache/assets/test/sprockets/c4700cd893db92917b893a0e48f57a24 +0 -0
  286. data/spec/dummy/tmp/cache/assets/test/sprockets/c488c91e58a235d36a0ff8058e5a1004 +0 -0
  287. data/spec/dummy/tmp/cache/assets/test/sprockets/c4a984c6feb506f3e1f9120a8d029bda +0 -0
  288. data/spec/dummy/tmp/cache/assets/test/sprockets/c5ef868ba5f891f326945efdd43e3170 +0 -0
  289. data/spec/dummy/tmp/cache/assets/test/sprockets/c6283ae59dff510d5a2bb2bb9194d045 +0 -0
  290. data/spec/dummy/tmp/cache/assets/test/sprockets/c6bbf5ca5c9b58807ba226fde0ccc60f +0 -0
  291. data/spec/dummy/tmp/cache/assets/test/sprockets/ca5b985126fb033dec26015bd08d56ee +0 -0
  292. data/spec/dummy/tmp/cache/assets/test/sprockets/d26b3581068a8ec8af52f3b2cce8c32a +0 -0
  293. data/spec/dummy/tmp/cache/assets/test/sprockets/d34b5413caa9407126db68d5d590804a +0 -0
  294. data/spec/dummy/tmp/cache/assets/test/sprockets/d4ac74c17332ad931b72f42d7997fcc0 +0 -0
  295. data/spec/dummy/tmp/cache/assets/test/sprockets/d648a0b0abb7fd7ff579d72ffe033d50 +0 -0
  296. data/spec/dummy/tmp/cache/assets/test/sprockets/db6425848529903bdee75792cb2ed79a +0 -0
  297. data/spec/dummy/tmp/cache/assets/test/sprockets/dd672deb061233e0db1d2f413d27213f +0 -0
  298. data/spec/dummy/tmp/cache/assets/test/sprockets/e1fcfb0faa3c12467a1c35251e04c8b1 +0 -0
  299. data/spec/dummy/tmp/cache/assets/test/sprockets/e22f9546f5d75bd3549886e979dcb96e +0 -0
  300. data/spec/dummy/tmp/cache/assets/test/sprockets/e44b4816bd1b2a7ba674c978dad35f3a +0 -0
  301. data/spec/dummy/tmp/cache/assets/test/sprockets/e513ee1af8fa24dcb4f473c18c09bf87 +0 -0
  302. data/spec/dummy/tmp/cache/assets/test/sprockets/e8142c2b10712e79b6d2c2cba0894b4c +0 -0
  303. data/spec/dummy/tmp/cache/assets/test/sprockets/f964bf5dc3949774db54d7cda5761d43 +0 -0
  304. data/spec/dummy/tmp/cache/assets/test/sprockets/fa8059ddbbe226114ba0c178de3fc31b +0 -0
  305. data/spec/dummy/tmp/cache/assets/test/sprockets/fa8e81ce1d45228121b9df5618542190 +0 -0
  306. data/spec/dummy/tmp/cache/assets/test/sprockets/fbc69737b9b0dc77871fa2bb8647a38a +0 -0
  307. data/spec/factories/accepts.rb +12 -0
  308. data/spec/factories/budget_types.rb +13 -0
  309. data/spec/factories/profile.rb +10 -0
  310. data/spec/factories/user.rb +21 -12
  311. data/spec/fixtures/agents.yml +0 -12
  312. data/spec/fixtures/items.yml +49 -37
  313. data/spec/fixtures/libraries.yml +25 -28
  314. data/spec/fixtures/library_groups.yml +13 -18
  315. data/spec/fixtures/manifestation_checkout_stats.yml +0 -3
  316. data/spec/fixtures/manifestation_reserve_stats.yml +0 -3
  317. data/spec/fixtures/message_requests.yml +0 -3
  318. data/spec/fixtures/profiles.yml +98 -0
  319. data/spec/fixtures/request_status_types.yml +4 -5
  320. data/spec/fixtures/request_types.yml +4 -5
  321. data/spec/fixtures/reserve_transitions.yml +88 -0
  322. data/spec/fixtures/shelves.yml +7 -7
  323. data/spec/fixtures/user_checkout_stats.yml +0 -3
  324. data/spec/fixtures/user_groups.yml +3 -3
  325. data/spec/fixtures/user_reserve_stats.yml +0 -3
  326. data/spec/fixtures/users.yml +0 -55
  327. data/spec/models/library_group_spec.rb +0 -2
  328. data/spec/views/budget_types/index.html.erb_spec.rb +2 -2
  329. metadata +417 -28
  330. data/app/models/library_group_sweeper.rb +0 -12
  331. data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +0 -9
  332. data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +0 -9
  333. data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +0 -13
  334. data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -16
@@ -1,5 +1,5 @@
1
1
  <div id="content_detail" class="ui-corner-all ui-widget-content">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.subscribe')) -%></h1>
2
+ <h1 class="title"><%= t('page.showing', model: t('activerecord.models.subscribe')) -%></h1>
3
3
  <div id='content_list'>
4
4
  <p id="notice"><%= notice %></p>
5
5
 
@@ -1,5 +1,5 @@
1
1
  <div id="content_detail" class="ui-corner-all ui-widget-content">
2
- <h1 class="title"><%= t('page.editing', :model => t('activerecord.models.subscription')) -%></h1>
2
+ <h1 class="title"><%= t('page.editing', model: t('activerecord.models.subscription')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
5
  <%= form_for(@subscription) do |f| -%>
@@ -7,11 +7,11 @@
7
7
 
8
8
  <div class="field">
9
9
  <%= f.label :title -%><br />
10
- <%= f.text_field :title, :class => 'resource_title' -%>
10
+ <%= f.text_field :title, class: 'resource_title' -%>
11
11
  </div>
12
12
  <div class="field">
13
13
  <%= f.label :note -%><br />
14
- <%= f.text_area :note, :class => 'resource_textarea' -%>
14
+ <%= f.text_area :note, class: 'resource_textarea' -%>
15
15
  </div>
16
16
  <div class="actions">
17
17
  <%= f.submit %>
@@ -1,5 +1,5 @@
1
1
  <div id="content_detail" class="ui-corner-all ui-widget-content">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.subscription')) -%></h1>
2
+ <h1 class="title"><%= t('page.listing', model: t('activerecord.models.subscription')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
5
  <table class="table table-striped index">
@@ -16,7 +16,7 @@
16
16
  <td>
17
17
  <% if can? :delete, subscription %>
18
18
  <%= link_to t('page.edit'), edit_subscription_path(subscription) -%>
19
- <%= link_to t('page.destroy'), subscription, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
19
+ <%= link_to t('page.destroy'), subscription, data: {confirm: t('page.are_you_sure')}, method: :delete -%>
20
20
  <% end %>
21
21
  </td>
22
22
  </tr>
@@ -31,9 +31,9 @@
31
31
  <div id="submenu" class="ui-corner-all ui-widget-content">
32
32
  <ul>
33
33
  <%- if @work -%>
34
- <li><%= link_to t('page.add', :model => t('activerecord.models.work')), subscriptions_path -%></li>
34
+ <li><%= link_to t('page.add', model: t('activerecord.models.work')), subscriptions_path -%></li>
35
35
  <%- else -%>
36
- <li><%= link_to t('page.new', :model => t('activerecord.models.subscription')), new_subscription_path -%></li>
36
+ <li><%= link_to t('page.new', model: t('activerecord.models.subscription')), new_subscription_path -%></li>
37
37
  <%- end -%>
38
38
  </ul>
39
39
  </div>
@@ -1,5 +1,5 @@
1
1
  <div id="content_detail" class="ui-corner-all ui-widget-content">
2
- <h1 class="title"><%= t('page.new', :model => t('activerecord.models.subscription')) -%></h1>
2
+ <h1 class="title"><%= t('page.new', model: t('activerecord.models.subscription')) -%></h1>
3
3
  <div id="content_list">
4
4
 
5
5
  <%= form_for(@subscription) do |f| -%>
@@ -7,11 +7,11 @@
7
7
 
8
8
  <div class="field">
9
9
  <%= f.label :title -%><br />
10
- <%= f.text_field :title, :class => 'resource_title' -%>
10
+ <%= f.text_field :title, class: 'resource_title' -%>
11
11
  </div>
12
12
  <div class="field">
13
13
  <%= f.label :note -%><br />
14
- <%= f.text_area :note, :class => 'resource_textarea' -%>
14
+ <%= f.text_area :note, class: 'resource_textarea' -%>
15
15
  </div>
16
16
  <div class="actions">
17
17
  <%= f.submit %>
@@ -1,5 +1,5 @@
1
1
  <div id="content_detail" class="ui-corner-all ui-widget-content">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.subscription')) -%></h1>
2
+ <h1 class="title"><%= t('page.showing', model: t('activerecord.models.subscription')) -%></h1>
3
3
  <div id="content_list">
4
4
  <p id="notice"><%= notice %></p>
5
5
 
@@ -3,7 +3,7 @@ ja:
3
3
  models:
4
4
  library: 図書館
5
5
  library_group: 図書館全体の設定
6
- shelf: 本棚
6
+ shelf: 書棚
7
7
  accept: 検収
8
8
  budget_type: 予算種別
9
9
  bookstore: 書店
@@ -4,7 +4,6 @@ class CreateLibraryGroups < ActiveRecord::Migration
4
4
  t.string :name, :null => false
5
5
  t.text :display_name
6
6
  t.string :short_name, :null => false
7
- t.string :email
8
7
  t.text :my_networks
9
8
  t.text :login_banner
10
9
  t.text :note
@@ -1,3 +1,3 @@
1
1
  module EnjuLibrary
2
- VERSION = "0.1.0.pre33"
2
+ VERSION = "0.1.0.pre34"
3
3
  end
@@ -0,0 +1,37 @@
1
+ ---
2
+ request_status_type_00001:
3
+ name: Available For Pickup
4
+ display_name: Available For Pickup
5
+ id: 1
6
+ position: 1
7
+ note: ""
8
+ request_status_type_00002:
9
+ name: Cannot Fulfill Request
10
+ display_name: Cannot Fulfill Request
11
+ id: 2
12
+ position: 2
13
+ note: ""
14
+ request_status_type_00003:
15
+ name: Expired
16
+ display_name: Expired
17
+ id: 3
18
+ position: 3
19
+ note: ""
20
+ request_status_type_00004:
21
+ name: In Process
22
+ display_name: In Process
23
+ id: 4
24
+ position: 4
25
+ note: ""
26
+ request_status_type_00005:
27
+ name: Need to Accept Conditions
28
+ display_name: Need to Accept Conditions
29
+ id: 5
30
+ position: 5
31
+ note: ""
32
+ request_status_type_00006:
33
+ name: Requested Via ILL
34
+ display_name: Requested Via ILL
35
+ id: 6
36
+ position: 6
37
+ note: ""
@@ -0,0 +1,29 @@
1
+ ---
2
+ request_type_00001:
3
+ name: Estimate
4
+ display_name: Estimate
5
+ id: 1
6
+ position: 1
7
+ note: ""
8
+ request_type_00002:
9
+ name: Hold
10
+ display_name: Hold
11
+ id: 2
12
+ position: 2
13
+ note: ""
14
+ request_type_00003:
15
+ name: Loan
16
+ display_name: Loan
17
+ position: 3
18
+ note: ""
19
+ request_type_00004:
20
+ name: Non-Returnable Copy
21
+ display_name: Non-Returnable Copy
22
+ position: 4
23
+ note: ""
24
+ request_type_00005:
25
+ name: Stack Retrieval
26
+ display_name: Stack Retrieval
27
+ id: 5
28
+ position: 5
29
+ note: ""
@@ -160,7 +160,7 @@ describe AcceptsController do
160
160
  describe "When basket_id is specified" do
161
161
  it "redirects to the created accept" do
162
162
  post :create, :accept => @attrs, :basket_id => 9
163
- response.should redirect_to(basket_accepts_url(assigns(:accept).basket))
163
+ response.should redirect_to(accepts_url(basket_id: assigns(:accept).basket.id))
164
164
  assigns(:accept).item.circulation_status.name.should eq 'Available On Shelf'
165
165
  end
166
166
  end
@@ -5,7 +5,7 @@ describe BasketsController do
5
5
 
6
6
  describe "GET index" do
7
7
  describe "When logged in as Administrator" do
8
- login_admin
8
+ login_fixture_admin
9
9
 
10
10
  it "assigns all baskets as @baskets" do
11
11
  get :index, :user_id => users(:user1).username
@@ -20,7 +20,7 @@ describe BasketsController do
20
20
  end
21
21
 
22
22
  describe "When logged in as Librarian" do
23
- login_librarian
23
+ login_fixture_librarian
24
24
 
25
25
  it "assigns all baskets as @baskets" do
26
26
  get :index, :user_id => users(:user1).username
@@ -30,7 +30,7 @@ describe BasketsController do
30
30
  end
31
31
 
32
32
  describe "When logged in as User" do
33
- login_user
33
+ login_fixture_user
34
34
 
35
35
  it "assigns all baskets as @baskets" do
36
36
  get :index, :user_id => users(:user1).username
@@ -50,7 +50,7 @@ describe BasketsController do
50
50
 
51
51
  describe "GET show" do
52
52
  describe "When logged in as Administrator" do
53
- login_admin
53
+ login_fixture_admin
54
54
 
55
55
  it "assigns the requested basket as @basket" do
56
56
  get :show, :id => 1, :user_id => users(:admin).username
@@ -59,7 +59,7 @@ describe BasketsController do
59
59
  end
60
60
 
61
61
  describe "When logged in as Librarian" do
62
- login_librarian
62
+ login_fixture_librarian
63
63
 
64
64
  it "assigns the requested basket as @basket" do
65
65
  get :show, :id => 1, :user_id => users(:admin).username
@@ -68,7 +68,7 @@ describe BasketsController do
68
68
  end
69
69
 
70
70
  describe "When logged in as User" do
71
- login_user
71
+ login_fixture_user
72
72
 
73
73
  it "assigns the requested basket as @basket" do
74
74
  get :show, :id => 1, :user_id => users(:admin).username
@@ -88,7 +88,7 @@ describe BasketsController do
88
88
 
89
89
  describe "GET new" do
90
90
  describe "When logged in as Administrator" do
91
- login_admin
91
+ login_fixture_admin
92
92
 
93
93
  it "assigns the requested basket as @basket" do
94
94
  get :new
@@ -97,7 +97,7 @@ describe BasketsController do
97
97
  end
98
98
 
99
99
  describe "When logged in as Librarian" do
100
- login_librarian
100
+ login_fixture_librarian
101
101
 
102
102
  it "assigns the requested basket as @basket" do
103
103
  get :new
@@ -106,7 +106,7 @@ describe BasketsController do
106
106
  end
107
107
 
108
108
  describe "When logged in as User" do
109
- login_user
109
+ login_fixture_user
110
110
 
111
111
  it "should not assign the requested basket as @basket" do
112
112
  get :new
@@ -126,7 +126,7 @@ describe BasketsController do
126
126
 
127
127
  describe "GET edit" do
128
128
  describe "When logged in as Administrator" do
129
- login_admin
129
+ login_fixture_admin
130
130
  before(:each) do
131
131
  @basket = baskets(:basket_00001)
132
132
  end
@@ -138,7 +138,7 @@ describe BasketsController do
138
138
  end
139
139
 
140
140
  describe "When logged in as Librarian" do
141
- login_librarian
141
+ login_fixture_librarian
142
142
  before(:each) do
143
143
  @basket = baskets(:basket_00001)
144
144
  end
@@ -150,7 +150,7 @@ describe BasketsController do
150
150
  end
151
151
 
152
152
  describe "When logged in as User" do
153
- login_user
153
+ login_fixture_user
154
154
  before(:each) do
155
155
  @basket = baskets(:basket_00001)
156
156
  end
@@ -177,16 +177,16 @@ describe BasketsController do
177
177
 
178
178
  describe "POST create" do
179
179
  before(:each) do
180
- @attrs = {:user_number => users(:user1).user_number }
180
+ @attrs = {:user_number => users(:user1).profile.user_number }
181
181
  @invalid_attrs = {:user_number => 'invalid'}
182
182
  end
183
183
 
184
184
  describe "When logged in as Administrator" do
185
- login_admin
185
+ login_fixture_admin
186
186
 
187
187
  describe "with valid params" do
188
188
  it "assigns a newly created basket as @basket" do
189
- post :create, :basket => {:user_number => users(:user1).user_number }
189
+ post :create, :basket => {:user_number => users(:user1).profile.user_number }
190
190
  assigns(:basket).should be_valid
191
191
  end
192
192
  end
@@ -207,11 +207,11 @@ describe BasketsController do
207
207
  end
208
208
 
209
209
  describe "When logged in as Librarian" do
210
- login_librarian
210
+ login_fixture_librarian
211
211
 
212
212
  describe "with valid params" do
213
213
  it "assigns a newly created basket as @basket" do
214
- post :create, :basket => {:user_number => users(:user1).user_number }
214
+ post :create, :basket => {:user_number => users(:user1).profile.user_number }
215
215
  assigns(:basket).should be_valid
216
216
  end
217
217
  end
@@ -231,7 +231,7 @@ describe BasketsController do
231
231
  end
232
232
 
233
233
  it "should not create basket when user is suspended" do
234
- post :create, :basket => {:user_number => users(:user4).user_number }
234
+ post :create, :basket => {:user_number => users(:user4).profile.user_number }
235
235
  assigns(:basket).should_not be_valid
236
236
  assigns(:basket).errors["base"].include?(I18n.t('basket.this_account_is_suspended')).should be_truthy
237
237
  response.should be_success
@@ -251,9 +251,9 @@ describe BasketsController do
251
251
  end
252
252
 
253
253
  it "should create basket" do
254
- post :create, :basket => {:user_number => users(:user1).user_number }
254
+ post :create, :basket => {:user_number => users(:user1).profile.user_number }
255
255
  assigns(:basket).should be_valid
256
- response.should redirect_to new_basket_checked_item_url(assigns(:basket))
256
+ response.should redirect_to new_checked_item_url(basket_id: assigns(:basket).id)
257
257
  end
258
258
 
259
259
  it "should not create basket without user_number" do
@@ -264,22 +264,22 @@ describe BasketsController do
264
264
  end
265
265
 
266
266
  describe "When logged in as User" do
267
- login_user
267
+ login_fixture_user
268
268
 
269
269
  describe "with valid params" do
270
270
  it "assigns a newly created basket as @basket" do
271
- post :create, :basket => {:user_number => users(:user1).user_number }
271
+ post :create, :basket => {:user_number => users(:user1).profile.user_number }
272
272
  assigns(:basket).should_not be_valid
273
273
  end
274
274
 
275
275
  it "should be forbidden" do
276
- post :create, :basket => {:user_number => users(:user1).user_number }
276
+ post :create, :basket => {:user_number => users(:user1).profile.user_number }
277
277
  response.should be_forbidden
278
278
  end
279
279
  end
280
280
 
281
281
  it "should not create basket" do
282
- post :create, :basket => {:user_number => users(:user1).user_number }
282
+ post :create, :basket => {:user_number => users(:user1).profile.user_number }
283
283
  response.should be_forbidden
284
284
  end
285
285
  end
@@ -307,7 +307,7 @@ describe BasketsController do
307
307
  end
308
308
 
309
309
  describe "When logged in as Librarian" do
310
- login_librarian
310
+ login_fixture_librarian
311
311
 
312
312
  describe "with valid params" do
313
313
  it "updates the requested basket" do
@@ -317,7 +317,7 @@ describe BasketsController do
317
317
  it "assigns the requested basket as @basket" do
318
318
  put :update, :id => 8, :basket => @attrs
319
319
  assigns(:basket).checkouts.order('created_at DESC').first.item.circulation_status.name.should eq 'On Loan'
320
- response.should redirect_to(user_checkouts_url(assigns(:basket).user))
320
+ response.should redirect_to(checkouts_url(user_id: assigns(:basket).user.username))
321
321
  end
322
322
  end
323
323
  end
@@ -333,12 +333,12 @@ describe BasketsController do
333
333
 
334
334
  it "should destroy basket without user_id" do
335
335
  delete :destroy, :id => 1, :basket => {:user_id => nil}, :user_id => users(:user1).username
336
- response.should redirect_to user_checkouts_url(assigns(:basket).user)
336
+ response.should redirect_to(checkouts_url(user_id: assigns(:basket).user.username))
337
337
  end
338
338
 
339
339
  it "should destroy basket" do
340
340
  delete :destroy, :id => 1, :basket => { }, :user_id => users(:user1).username
341
- response.should redirect_to user_checkouts_url(assigns(:basket).user)
341
+ response.should redirect_to(checkouts_url(user_id: assigns(:basket).user.username))
342
342
  end
343
343
  end
344
344
 
@@ -347,12 +347,12 @@ describe BasketsController do
347
347
 
348
348
  it "should destroy basket without user_id" do
349
349
  delete :destroy, :id => 1, :basket => {:user_id => nil}, :user_id => users(:user1).username
350
- response.should redirect_to user_checkouts_url(assigns(:basket).user)
350
+ response.should redirect_to(checkouts_url(user_id: assigns(:basket).user.username))
351
351
  end
352
352
 
353
353
  it "should destroy basket" do
354
354
  delete :destroy, :id => 1, :basket => { }, :user_id => users(:user1).username
355
- response.should redirect_to user_checkouts_url(assigns(:basket).user)
355
+ response.should redirect_to(checkouts_url(user_id: assigns(:basket).user.username))
356
356
  end
357
357
  end
358
358
 
@@ -15,7 +15,7 @@ describe BookstoresController do
15
15
  end
16
16
 
17
17
  describe "When logged in as Administrator" do
18
- login_admin
18
+ login_fixture_admin
19
19
 
20
20
  it "assigns all bookstores as @bookstores" do
21
21
  get :index
@@ -24,7 +24,7 @@ describe BookstoresController do
24
24
  end
25
25
 
26
26
  describe "When logged in as Librarian" do
27
- login_librarian
27
+ login_fixture_librarian
28
28
 
29
29
  it "assigns all bookstores as @bookstores" do
30
30
  get :index
@@ -33,7 +33,7 @@ describe BookstoresController do
33
33
  end
34
34
 
35
35
  describe "When logged in as User" do
36
- login_user
36
+ login_fixture_user
37
37
 
38
38
  it "assigns all bookstores as @bookstores" do
39
39
  get :index
@@ -57,7 +57,7 @@ describe BookstoresController do
57
57
  end
58
58
 
59
59
  describe "When logged in as Administrator" do
60
- login_admin
60
+ login_fixture_admin
61
61
 
62
62
  it "assigns the requested bookstore as @bookstore" do
63
63
  get :show, :id => @bookstore.id
@@ -66,7 +66,7 @@ describe BookstoresController do
66
66
  end
67
67
 
68
68
  describe "When logged in as Librarian" do
69
- login_librarian
69
+ login_fixture_librarian
70
70
 
71
71
  it "assigns the requested bookstore as @bookstore" do
72
72
  get :show, :id => @bookstore.id
@@ -75,7 +75,7 @@ describe BookstoresController do
75
75
  end
76
76
 
77
77
  describe "When logged in as User" do
78
- login_user
78
+ login_fixture_user
79
79
 
80
80
  it "assigns the requested bookstore as @bookstore" do
81
81
  get :show, :id => @bookstore.id
@@ -93,7 +93,7 @@ describe BookstoresController do
93
93
 
94
94
  describe "GET new" do
95
95
  describe "When logged in as Administrator" do
96
- login_admin
96
+ login_fixture_admin
97
97
 
98
98
  it "assigns the requested bookstore as @bookstore" do
99
99
  get :new
@@ -103,7 +103,7 @@ describe BookstoresController do
103
103
  end
104
104
 
105
105
  describe "When logged in as Librarian" do
106
- login_librarian
106
+ login_fixture_librarian
107
107
 
108
108
  it "should not assign the requested bookstore as @bookstore" do
109
109
  get :new
@@ -113,7 +113,7 @@ describe BookstoresController do
113
113
  end
114
114
 
115
115
  describe "When logged in as User" do
116
- login_user
116
+ login_fixture_user
117
117
 
118
118
  it "should not assign the requested bookstore as @bookstore" do
119
119
  get :new
@@ -137,7 +137,7 @@ describe BookstoresController do
137
137
  end
138
138
 
139
139
  describe "When logged in as Administrator" do
140
- login_admin
140
+ login_fixture_admin
141
141
 
142
142
  it "assigns the requested bookstore as @bookstore" do
143
143
  get :edit, :id => @bookstore.id
@@ -146,7 +146,7 @@ describe BookstoresController do
146
146
  end
147
147
 
148
148
  describe "When logged in as Librarian" do
149
- login_librarian
149
+ login_fixture_librarian
150
150
 
151
151
  it "assigns the requested bookstore as @bookstore" do
152
152
  get :edit, :id => @bookstore.id
@@ -155,7 +155,7 @@ describe BookstoresController do
155
155
  end
156
156
 
157
157
  describe "When logged in as User" do
158
- login_user
158
+ login_fixture_user
159
159
 
160
160
  it "assigns the requested bookstore as @bookstore" do
161
161
  get :edit, :id => @bookstore.id
@@ -178,7 +178,7 @@ describe BookstoresController do
178
178
  end
179
179
 
180
180
  describe "When logged in as Administrator" do
181
- login_admin
181
+ login_fixture_admin
182
182
 
183
183
  describe "with valid params" do
184
184
  it "assigns a newly created bookstore as @bookstore" do
@@ -206,7 +206,7 @@ describe BookstoresController do
206
206
  end
207
207
 
208
208
  describe "When logged in as Librarian" do
209
- login_librarian
209
+ login_fixture_librarian
210
210
 
211
211
  describe "with valid params" do
212
212
  it "assigns a newly created bookstore as @bookstore" do
@@ -234,7 +234,7 @@ describe BookstoresController do
234
234
  end
235
235
 
236
236
  describe "When logged in as User" do
237
- login_user
237
+ login_fixture_user
238
238
 
239
239
  describe "with valid params" do
240
240
  it "assigns a newly created bookstore as @bookstore" do
@@ -296,7 +296,7 @@ describe BookstoresController do
296
296
  end
297
297
 
298
298
  describe "When logged in as Administrator" do
299
- login_admin
299
+ login_fixture_admin
300
300
 
301
301
  describe "with valid params" do
302
302
  it "updates the requested bookstore" do
@@ -323,7 +323,7 @@ describe BookstoresController do
323
323
  end
324
324
 
325
325
  describe "When logged in as Librarian" do
326
- login_librarian
326
+ login_fixture_librarian
327
327
 
328
328
  describe "with valid params" do
329
329
  it "updates the requested bookstore" do
@@ -346,7 +346,7 @@ describe BookstoresController do
346
346
  end
347
347
 
348
348
  describe "When logged in as User" do
349
- login_user
349
+ login_fixture_user
350
350
 
351
351
  describe "with valid params" do
352
352
  it "updates the requested bookstore" do
@@ -395,7 +395,7 @@ describe BookstoresController do
395
395
  end
396
396
 
397
397
  describe "When logged in as Administrator" do
398
- login_admin
398
+ login_fixture_admin
399
399
 
400
400
  it "destroys the requested bookstore" do
401
401
  delete :destroy, :id => @bookstore.id
@@ -408,7 +408,7 @@ describe BookstoresController do
408
408
  end
409
409
 
410
410
  describe "When logged in as Librarian" do
411
- login_librarian
411
+ login_fixture_librarian
412
412
 
413
413
  it "destroys the requested bookstore" do
414
414
  delete :destroy, :id => @bookstore.id
@@ -421,7 +421,7 @@ describe BookstoresController do
421
421
  end
422
422
 
423
423
  describe "When logged in as User" do
424
- login_user
424
+ login_fixture_user
425
425
 
426
426
  it "destroys the requested bookstore" do
427
427
  delete :destroy, :id => @bookstore.id