krikri 0.11.2 → 0.12.0.pre.rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (296) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/krikri/activity.rb +14 -4
  3. data/app/models/krikri/original_record.rb +21 -2
  4. data/config/settings/development.yml +2 -0
  5. data/config/settings/test.yml +2 -0
  6. data/lib/krikri/engine.rb +10 -4
  7. data/lib/krikri/entity_behavior.rb +3 -3
  8. data/lib/krikri/entity_behaviors/aggregation_entity_behavior.rb +9 -6
  9. data/lib/krikri/entity_behaviors/original_record_entity_behavior.rb +10 -5
  10. data/lib/krikri/harvesters/oai_harvester.rb +1 -0
  11. data/lib/krikri/map_crosswalk.rb +1 -1
  12. data/lib/krikri/provenance_query_client.rb +33 -2
  13. data/lib/krikri/version.rb +1 -1
  14. data/spec/internal/Gemfile +2 -2
  15. data/spec/internal/Gemfile.lock +43 -44
  16. data/spec/internal/config/initializers/blacklight_initializer.rb +1 -1
  17. data/spec/internal/config/initializers/devise.rb +2 -2
  18. data/spec/internal/config/secrets.yml +2 -2
  19. data/spec/internal/db/development.sqlite3 +0 -0
  20. data/spec/internal/db/migrate/{20160201014927_devise_create_users.rb → 20160224174647_devise_create_users.rb} +0 -0
  21. data/spec/internal/db/migrate/{20160201014947_create_searches.blacklight.rb → 20160224174738_create_searches.blacklight.rb} +0 -0
  22. data/spec/internal/db/migrate/{20160201014948_create_bookmarks.blacklight.rb → 20160224174739_create_bookmarks.blacklight.rb} +0 -0
  23. data/spec/internal/db/migrate/{20160201014949_add_polymorphic_type_to_bookmarks.blacklight.rb → 20160224174740_add_polymorphic_type_to_bookmarks.blacklight.rb} +0 -0
  24. data/spec/internal/db/schema.rb +1 -1
  25. data/spec/internal/db/test.sqlite3 +0 -0
  26. data/spec/internal/log/development.log +92 -92
  27. data/spec/internal/log/test.log +6213 -5985
  28. data/spec/internal/tmp/cache/318/301/krikri%2Fapplication_helper%2Favailable_providers +0 -0
  29. data/spec/internal/tmp/cache/assets/test/sass/0f463fae8ec59cbdc602859dac6f3131b47588e5/blacklight.css.scssc +0 -0
  30. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_alerts.scssc +0 -0
  31. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_background-variant.scssc +0 -0
  32. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_border-radius.scssc +0 -0
  33. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_buttons.scssc +0 -0
  34. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_center-block.scssc +0 -0
  35. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_clearfix.scssc +0 -0
  36. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_forms.scssc +0 -0
  37. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_gradients.scssc +0 -0
  38. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_grid-framework.scssc +0 -0
  39. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_grid.scssc +0 -0
  40. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_hide-text.scssc +0 -0
  41. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_image.scssc +0 -0
  42. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_labels.scssc +0 -0
  43. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_list-group.scssc +0 -0
  44. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_nav-divider.scssc +0 -0
  45. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_nav-vertical-align.scssc +0 -0
  46. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_opacity.scssc +0 -0
  47. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_pagination.scssc +0 -0
  48. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_panels.scssc +0 -0
  49. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_progress-bar.scssc +0 -0
  50. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_reset-filter.scssc +0 -0
  51. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_resize.scssc +0 -0
  52. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_responsive-visibility.scssc +0 -0
  53. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_size.scssc +0 -0
  54. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_tab-focus.scssc +0 -0
  55. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_table-row.scssc +0 -0
  56. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_text-emphasis.scssc +0 -0
  57. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_text-overflow.scssc +0 -0
  58. data/spec/internal/tmp/cache/assets/test/sass/622890f0980fe8cd9e30bdaab5a7914245d2443e/_vendor-prefixes.scssc +0 -0
  59. data/spec/internal/tmp/cache/assets/test/sass/80ea3b25063dd984130d99a1c4278f3cd1b013f1/_blacklight_base.scssc +0 -0
  60. data/spec/internal/tmp/cache/assets/test/sass/80ea3b25063dd984130d99a1c4278f3cd1b013f1/_bookmark.scssc +0 -0
  61. data/spec/internal/tmp/cache/assets/test/sass/80ea3b25063dd984130d99a1c4278f3cd1b013f1/_catalog.scssc +0 -0
  62. data/spec/internal/tmp/cache/assets/test/sass/80ea3b25063dd984130d99a1c4278f3cd1b013f1/_facets.scssc +0 -0
  63. data/spec/internal/tmp/cache/assets/test/sass/80ea3b25063dd984130d99a1c4278f3cd1b013f1/_group.scssc +0 -0
  64. data/spec/internal/tmp/cache/assets/test/sass/80ea3b25063dd984130d99a1c4278f3cd1b013f1/_header.scssc +0 -0
  65. data/spec/internal/tmp/cache/assets/test/sass/80ea3b25063dd984130d99a1c4278f3cd1b013f1/_layout.scssc +0 -0
  66. data/spec/internal/tmp/cache/assets/test/sass/80ea3b25063dd984130d99a1c4278f3cd1b013f1/_modal.scssc +0 -0
  67. data/spec/internal/tmp/cache/assets/test/sass/80ea3b25063dd984130d99a1c4278f3cd1b013f1/_search_history.scssc +0 -0
  68. data/spec/internal/tmp/cache/assets/test/sass/80ea3b25063dd984130d99a1c4278f3cd1b013f1/blacklight.scssc +0 -0
  69. data/spec/internal/tmp/cache/assets/test/sass/80ea3b25063dd984130d99a1c4278f3cd1b013f1/blacklight_defaults.scssc +0 -0
  70. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_alerts.scssc +0 -0
  71. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_badges.scssc +0 -0
  72. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_breadcrumbs.scssc +0 -0
  73. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_button-groups.scssc +0 -0
  74. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_buttons.scssc +0 -0
  75. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_carousel.scssc +0 -0
  76. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_close.scssc +0 -0
  77. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_code.scssc +0 -0
  78. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_component-animations.scssc +0 -0
  79. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_dropdowns.scssc +0 -0
  80. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_forms.scssc +0 -0
  81. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_glyphicons.scssc +0 -0
  82. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_grid.scssc +0 -0
  83. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_input-groups.scssc +0 -0
  84. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_jumbotron.scssc +0 -0
  85. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_labels.scssc +0 -0
  86. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_list-group.scssc +0 -0
  87. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_media.scssc +0 -0
  88. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_mixins.scssc +0 -0
  89. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_modals.scssc +0 -0
  90. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_navbar.scssc +0 -0
  91. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_navs.scssc +0 -0
  92. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_normalize.scssc +0 -0
  93. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_pager.scssc +0 -0
  94. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_pagination.scssc +0 -0
  95. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_panels.scssc +0 -0
  96. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_popovers.scssc +0 -0
  97. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_print.scssc +0 -0
  98. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_progress-bars.scssc +0 -0
  99. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_responsive-embed.scssc +0 -0
  100. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_responsive-utilities.scssc +0 -0
  101. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_scaffolding.scssc +0 -0
  102. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_tables.scssc +0 -0
  103. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_thumbnails.scssc +0 -0
  104. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_tooltip.scssc +0 -0
  105. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_type.scssc +0 -0
  106. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_utilities.scssc +0 -0
  107. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_variables.scssc +0 -0
  108. data/spec/internal/tmp/cache/assets/test/sass/93f97edda53560c38d0d029e30e3b3a93212c1b8/_wells.scssc +0 -0
  109. data/spec/internal/tmp/cache/assets/test/sass/c50f52d2eeadabb7c9bfad3246524fac09113575/_bootstrap-sprockets.scssc +0 -0
  110. data/spec/internal/tmp/cache/assets/test/sass/c50f52d2eeadabb7c9bfad3246524fac09113575/_bootstrap.scssc +0 -0
  111. data/spec/internal/tmp/cache/assets/test/sprockets/0a25eb99290a6b015dfe4c29d8585cec +0 -0
  112. data/spec/internal/tmp/cache/assets/test/sprockets/0a778a0a0f363d6d2431e921e19eead7 +0 -0
  113. data/spec/internal/tmp/cache/assets/test/sprockets/0b3eca32a0c1d368e88a01be94ca7f6b +0 -0
  114. data/spec/internal/tmp/cache/assets/test/sprockets/0fe9919db7899ede10068d0d9d3adfa8 +0 -0
  115. data/spec/internal/tmp/cache/assets/test/sprockets/1153a153512ddd535004623e0bbdc1c4 +0 -0
  116. data/spec/internal/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  117. data/spec/internal/tmp/cache/assets/test/sprockets/142790b68ce01969e4bbdd1d2a90b18c +0 -0
  118. data/spec/internal/tmp/cache/assets/test/sprockets/154af7ce6de6c616d3c1c654904a88de +0 -0
  119. data/spec/internal/tmp/cache/assets/test/sprockets/1a6f0128e8b6cc52594e7e16506dd476 +0 -0
  120. data/spec/internal/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  121. data/spec/internal/tmp/cache/assets/test/sprockets/30183a6c313ab79c8ffc2711dc633ea5 +0 -0
  122. data/spec/internal/tmp/cache/assets/test/sprockets/3290971c05649c7d11051df70b2fefbb +0 -0
  123. data/spec/internal/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  124. data/spec/internal/tmp/cache/assets/test/sprockets/35c0cb4e1848557e53960891cf2bbc4c +0 -0
  125. data/spec/internal/tmp/cache/assets/test/sprockets/3822d8965af2c63a9d8eb5be7d54a39e +0 -0
  126. data/spec/internal/tmp/cache/assets/test/sprockets/39191bda3ba14fb0d5671ef5320e9e01 +0 -0
  127. data/spec/internal/tmp/cache/assets/test/sprockets/3a1636e712ea5450451f140a1e11ad6b +0 -0
  128. data/spec/internal/tmp/cache/assets/test/sprockets/3af50e8108914b16e8005270444c23eb +0 -0
  129. data/spec/internal/tmp/cache/assets/test/sprockets/43549442460e63625bfa01b300845db4 +0 -0
  130. data/spec/internal/tmp/cache/assets/test/sprockets/4ffa695d373f85c9375cfeef7a7fa7b0 +0 -0
  131. data/spec/internal/tmp/cache/assets/test/sprockets/55c96cfe875a998dd83f861cec024cd8 +0 -0
  132. data/spec/internal/tmp/cache/assets/test/sprockets/5884f169a3cb492a556b12cf26d98512 +0 -0
  133. data/spec/internal/tmp/cache/assets/test/sprockets/5b4c0893fb6462116b5c893ee5067a7a +0 -0
  134. data/spec/internal/tmp/cache/assets/test/sprockets/5ed91405d3e1d9c4d64964b23e2ddad5 +0 -0
  135. data/spec/internal/tmp/cache/assets/test/sprockets/5ee4ec5587fe5e6b2489c6df8444c3a3 +0 -0
  136. data/spec/internal/tmp/cache/assets/test/sprockets/66bc87f66d912cc874b361b58b063232 +0 -0
  137. data/spec/internal/tmp/cache/assets/test/sprockets/6a7000430a188e026e888de506892486 +0 -0
  138. data/spec/internal/tmp/cache/assets/test/sprockets/6e51639f97de2a9999b40c947cc2cce4 +0 -0
  139. data/spec/internal/tmp/cache/assets/test/sprockets/70678ea30b446b6e43c58cb504a38c5e +0 -0
  140. data/spec/internal/tmp/cache/assets/test/sprockets/736b38c683d67eae78becf8bd03ccc03 +0 -0
  141. data/spec/internal/tmp/cache/assets/test/sprockets/74b2a1c32eb911fede6dbf691e2438fd +0 -0
  142. data/spec/internal/tmp/cache/assets/test/sprockets/769e239a980f02fb5f0d31f2e47661b6 +0 -0
  143. data/spec/internal/tmp/cache/assets/test/sprockets/7ed2a89adfb413f382b9844cb60e004f +0 -0
  144. data/spec/internal/tmp/cache/assets/test/sprockets/843672eb02d8b4596eb8f05b0285812f +0 -0
  145. data/spec/internal/tmp/cache/assets/test/sprockets/86aa4bb34763ef2ec398ce2948064feb +0 -0
  146. data/spec/internal/tmp/cache/assets/test/sprockets/8826cc9e62d566dcd6557e4ce53c0c9e +0 -0
  147. data/spec/internal/tmp/cache/assets/test/sprockets/8e0a985f6d848652e6e2b69502089957 +0 -0
  148. data/spec/internal/tmp/cache/assets/test/sprockets/8e24ef751a813d86a3a2953ce9f31b1b +0 -0
  149. data/spec/internal/tmp/cache/assets/test/sprockets/92440cff8e26faca6421a88212bf5cc5 +0 -0
  150. data/spec/internal/tmp/cache/assets/test/sprockets/93aaa9231a32901266b05632f3d35ecd +0 -0
  151. data/spec/internal/tmp/cache/assets/test/sprockets/9aa82f96c9760fb5b052b29dfead27ee +0 -0
  152. data/spec/internal/tmp/cache/assets/test/sprockets/9e3583b4a24bbae71c81cc89b31cf681 +0 -0
  153. data/spec/internal/tmp/cache/assets/test/sprockets/ad4a54c43c2a4c3874bfde1c9f08c248 +0 -0
  154. data/spec/internal/tmp/cache/assets/test/sprockets/addcc05c958d32994bbcc4df6b13c80a +0 -0
  155. data/spec/internal/tmp/cache/assets/test/sprockets/b02b8a41fe5c3dfa491d8bb0d95d6e2d +0 -0
  156. data/spec/internal/tmp/cache/assets/test/sprockets/b6fcc8843d7d36abc9183de7f3c09fdd +0 -0
  157. data/spec/internal/tmp/cache/assets/test/sprockets/b783bb7bbb5960da9c2720974804b177 +0 -0
  158. data/spec/internal/tmp/cache/assets/test/sprockets/c94aa024045ec61aa3ce4de5c0ca7515 +0 -0
  159. data/spec/internal/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  160. data/spec/internal/tmp/cache/assets/test/sprockets/d04cedd870a36cb0ac8ad65bf032c556 +0 -0
  161. data/spec/internal/tmp/cache/assets/test/sprockets/d0ae540226d860c35ce84f64c67f40bb +0 -0
  162. data/spec/internal/tmp/cache/assets/test/sprockets/d0d4fb263d72afa8341801f74e58939e +0 -0
  163. data/spec/internal/tmp/cache/assets/test/sprockets/d54a9568f2db6442d0be17210a6d683e +0 -0
  164. data/spec/internal/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  165. data/spec/internal/tmp/cache/assets/test/sprockets/d89eec758f13f7959ed8796e9b52469c +0 -0
  166. data/spec/internal/tmp/cache/assets/test/sprockets/da16a797f7553f717a002525bea10cbf +0 -0
  167. data/spec/internal/tmp/cache/assets/test/sprockets/da4e9efddf7d52d8de0c75b2f3ad571e +0 -0
  168. data/spec/internal/tmp/cache/assets/test/sprockets/dec30531a16449cd84734053a70b3a77 +0 -0
  169. data/spec/internal/tmp/cache/assets/test/sprockets/f429314ed6a6b2b42d3141578c4ec023 +0 -0
  170. data/spec/internal/tmp/cache/assets/test/sprockets/f5e21f9266ec8eafa27c52d109a9a498 +0 -0
  171. data/spec/internal/tmp/cache/assets/test/sprockets/f642847460097a56a55c8716c4d7a072 +0 -0
  172. data/spec/internal/tmp/cache/assets/test/sprockets/f69f1290f72a81d63fb93e81ff44f8a1 +0 -0
  173. data/spec/internal/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  174. data/spec/internal/tmp/cache/assets/test/sprockets/f8e9e8fcc081081c00dd69903ebcf709 +0 -0
  175. data/spec/internal/tmp/cache/assets/test/sprockets/f8fd1a8d086eb31f0df8de2ac3ab4517 +0 -0
  176. data/spec/internal/tmp/cache/assets/test/sprockets/fe00102a3b27990f149d71a23f06e32a +0 -0
  177. data/spec/krikri_spec.rb +5 -0
  178. data/spec/ldp/resource_spec.rb +1 -1
  179. data/spec/lib/krikri/aggregation_entity_behavior_spec.rb +7 -0
  180. data/spec/lib/krikri/harvesters/oai_harvester_spec.rb +2 -2
  181. data/spec/lib/krikri/map_crosswalk_spec.rb +1 -1
  182. data/spec/lib/krikri/mapping_dsl/parser_methods_spec.rb +2 -1
  183. data/spec/lib/krikri/mapping_dsl/rdf_subjects_spec.rb +1 -1
  184. data/spec/lib/krikri/original_record_entity_behavior_spec.rb +23 -0
  185. data/spec/lib/krikri/provenance_query_client_spec.rb +18 -0
  186. data/spec/models/activity_spec.rb +17 -1
  187. data/spec/models/dpla/map/aggregation_spec.rb +5 -5
  188. data/spec/models/original_record_spec.rb +6 -1
  189. data/spec/support/matchers/active_triple_matchers.rb +1 -1
  190. data/spec/support/shared_contexts/provenance_query_client.rb +1 -1
  191. metadata +466 -350
  192. data/app/controllers/krikri/_qa_report_list.html.erb~ +0 -10
  193. data/app/controllers/krikri/concerns/provider_context.rb~ +0 -7
  194. data/app/controllers/krikri/qa_reports_controller.rb~ +0 -18
  195. data/app/models/krikri/original_record_desc.rb~ +0 -6
  196. data/app/models/krikri/original_record_metadata.rb~ +0 -9
  197. data/app/models/krikri/parser.rb~ +0 -5
  198. data/app/models/krikri/parsers/xml_parser.rb~ +0 -5
  199. data/app/models/krikri/qa_report.rb~ +0 -7
  200. data/app/views/krikri/qa_reports/index.html.erb~ +0 -3
  201. data/app/views/krikri/qa_reports/show.html.erb~ +0 -1
  202. data/config/initializers/config.rb~ +0 -19
  203. data/config/settings/test.yml~ +0 -3
  204. data/db/migrate/20150328035550_add_qa_report.rb~ +0 -11
  205. data/lib/krikri/ldp/container.rb~ +0 -22
  206. data/lib/krikri/ldp/nr_source.rb~ +0 -4
  207. data/lib/krikri/ldp/rdf_source.rb~ +0 -24
  208. data/lib/krikri/ldp/resource.rb~ +0 -49
  209. data/lib/krikri/parsers/json_parser.rb~ +0 -17
  210. data/lib/krikri/parsers/oai_headers.rb~ +0 -4
  211. data/lib/krikri/parsers/oai_parser.rb~ +0 -2
  212. data/lib/krikri/parsers/oai_parser_headers.rb~ +0 -4
  213. data/lib/krikri/parsers/xml_parser.rb~ +0 -61
  214. data/lib/krikri/util/edtf_converter.rb~ +0 -26
  215. data/lib/krikri/util/extended_date_parser.rb~ +0 -70
  216. data/lib/tasks/jetty.rake~ +0 -12
  217. data/lib/tasks/krikri.rake~ +0 -20
  218. data/spec/controllers/application_controller_spec.rb~ +0 -11
  219. data/spec/controllers/qa_reports_controller_spec.rb~ +0 -15
  220. data/spec/controllers/records_controller_spec.rb~ +0 -11
  221. data/spec/controllers/reports_controller_spec.rb~ +0 -6
  222. data/spec/controllers/validation_reports_controller_spec.rb~ +0 -15
  223. data/spec/factories/krikri_original_record.rb~ +0 -5
  224. data/spec/factories/krikri_provider.rb~ +0 -7
  225. data/spec/factories/krikri_provider_spec.rb~ +0 -7
  226. data/spec/factories/krikri_qa_report.rb~ +0 -8
  227. data/spec/helpers/krikri/application_helper_spec.rb~ +0 -16
  228. data/spec/internal/lib/generators/test_app_generator.rb~ +0 -14
  229. data/spec/krikri_spec.rb~ +0 -30
  230. data/spec/ldp/active_triples_spec.rb~ +0 -15
  231. data/spec/ldp/at_resource_spec.rb~ +0 -41
  232. data/spec/ldp/nr_source_spec.rb~ +0 -3
  233. data/spec/ldp/rdf_source_spec.rb~ +0 -4
  234. data/spec/ldp/resource_spec.rb~ +0 -49
  235. data/spec/lib/krikri/enrichment_agent_spec.rb~ +0 -4
  236. data/spec/lib/krikri/harvesters/api_harvester_spec.rb~ +0 -47
  237. data/spec/lib/krikri/harvesters/basic_save_behavior_spec.rb~ +0 -12
  238. data/spec/lib/krikri/harvesters/file_harvester_spec.rb~ +0 -3
  239. data/spec/lib/krikri/harvesters/harvest_behavior_spec.rb~ +0 -5
  240. data/spec/lib/krikri/harvesters/mdl_api_harvester_spec.rb~ +0 -11
  241. data/spec/lib/krikri/harvesters/mdl_harvester_spec.rb~ +0 -8
  242. data/spec/lib/krikri/harvesters/oai_skip_deleted_behavior.rb~ +0 -7
  243. data/spec/lib/krikri/harvesters/oai_skip_deleted_behavior_spec.rb~ +0 -15
  244. data/spec/lib/krikri/id_service_spec.rb~ +0 -3
  245. data/spec/lib/krikri/job_spec.rb~ +0 -13
  246. data/spec/lib/krikri/map_crosswalk_spec.rb~ +0 -5
  247. data/spec/lib/krikri/mapper_agent_spec.rb~ +0 -64
  248. data/spec/lib/krikri/mapper_spec.rb~ +0 -5
  249. data/spec/lib/krikri/mapping_dsl/parser_methods_spec.rb~ +0 -65
  250. data/spec/lib/krikri/mapping_dsl/property_declaration_spec.rb~ +0 -87
  251. data/spec/lib/krikri/mapping_dsl/rdf_subjects_spec.rb~ +0 -16
  252. data/spec/lib/krikri/mapping_dsl_spec.rb~ +0 -10
  253. data/spec/lib/krikri/mapping_job.rb~ +0 -12
  254. data/spec/lib/krikri/mapping_job_spec.rb~ +0 -11
  255. data/spec/lib/krikri/mapping_spec.rb~ +0 -5
  256. data/spec/lib/krikri/md5_minter_spec.rb~ +0 -5
  257. data/spec/lib/krikri/parser_value_array.rb~ +0 -5
  258. data/spec/lib/krikri/parsers/json_parser_spec.rb~ +0 -17
  259. data/spec/lib/krikri/parsers/xml_parser_spec.rb~ +0 -21
  260. data/spec/lib/krikri/provenance_query_client.rb~ +0 -5
  261. data/spec/lib/krikri/provenance_query_client_spec.rb~ +0 -8
  262. data/spec/lib/krikri/qa_query_client_spec.rb~ +0 -9
  263. data/spec/lib/krikri/random_search_index_docmument_builder_spec.rb~ +0 -6
  264. data/spec/lib/krikri/util/edtf_converter_spec.rb~ +0 -17
  265. data/spec/lib/krikri/util/extended_date_parser_spec.rb~ +0 -102
  266. data/spec/models/activity_spec.rb~ +0 -41
  267. data/spec/models/dpla/map/aggregation_spec.rb~ +0 -67
  268. data/spec/models/harvesters/oai_harvester_spec.rb~ +0 -15
  269. data/spec/models/mapper_spec.rb~ +0 -5
  270. data/spec/models/original_record_metadata_spec.rb~ +0 -5
  271. data/spec/models/original_record_spec.rb~ +0 -5
  272. data/spec/models/provider_spec.rb~ +0 -33
  273. data/spec/models/qa_report_spec.rb~ +0 -64
  274. data/spec/models/validation_report_spec.rb~ +0 -15
  275. data/spec/support/shared_contexts/indexed_item.rb~ +0 -15
  276. data/spec/support/shared_contexts/mapping_dsl.rb~ +0 -12
  277. data/spec/support/shared_contexts/provenance_query_client.rb~ +0 -6
  278. data/spec/support/shared_contexts/rake.rb~ +0 -21
  279. data/spec/support/shared_examples/enrichment.rb~ +0 -5
  280. data/spec/support/shared_examples/harvest_behavior.rb~ +0 -13
  281. data/spec/support/shared_examples/job.rb~ +0 -20
  282. data/spec/support/shared_examples/ldp_resource.rb~ +0 -4
  283. data/spec/support/shared_examples/oai_parser_headers.rb~ +0 -12
  284. data/spec/support/shared_examples/rdf_source.rb~ +0 -1
  285. data/spec/support/shared_examples/software_agent.rb~ +0 -5
  286. data/spec/support/shared_examples/string_enrichment.rb~ +0 -12
  287. data/spec/test_app_templates/lib/generators/test_app_generator.rb~ +0 -14
  288. data/spec/views/krikri/providers/index.html.erb_spec.rb~ +0 -3
  289. data/spec/views/krikri/providers/show.html.erb.spec~ +0 -12
  290. data/spec/views/krikri/providers/show.html.erb_spec.rb~ +0 -10
  291. data/spec/views/krikri/qa_reports/index.html.erb_spec.rb~ +0 -17
  292. data/spec/views/krikri/qa_reports/show.html.erb_spec.rb~ +0 -22
  293. data/spec/views/krikri/records/index.html.erb_spec.rb~ +0 -15
  294. data/spec/views/krikri/records/show.html.erb_spec.rb~ +0 -8
  295. data/spec/views/krikri/reports/index.html.erb_spec.rb~ +0 -5
  296. data/spec/webmocks/oai.rb~ +0 -13
@@ -1,102 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Krikri::Util::ExtendedDateParser do
4
- subject { described_class }
5
-
6
- date_forms = [ '1992',
7
- '1992-01-01',
8
- '1992-01',
9
- '01-1992',
10
- '01-01-1992',
11
- '01/01/1992',
12
- # '01/01/199u', # this isn't valid EDTF and returns a bad date
13
- # '1992-11-uu?', # ETDF.rb doesn't support uu~
14
- '1992-11-12?',
15
- # '1992-11-uu~', # ETDF.rb doesn't support uu?
16
- '1992-11-12~',
17
- '1992.11.12',
18
- '1992?',
19
- '199x',
20
- '1990s',
21
- '199-',
22
- 'Jun 1992', # currently returns only June 1
23
- 'Jun 10 1992',
24
- 'Jun 10, 1992'
25
- ]
26
-
27
- ranges = [ '-', 'to' 'until', '.', '......', 'from', '/']
28
-
29
- describe '#parse' do
30
- end
31
-
32
- describe '#range_match' do
33
- end
34
-
35
- describe '#partial_edtf' do
36
- context 'with YYYY-MM-DD/DD' do
37
- let(:start_date) { Date.new(2014,1,27) }
38
- let(:end_date) { Date.new(2014,1,28) }
39
-
40
- it 'parses date' do
41
- expect(subject.partial_edtf('2014-01-27/28'))
42
- .to have_attributes(:from => start_date,:to => end_date)
43
- end
44
-
45
- it 'gives nil for invalid date' do
46
- expect(subject.partial_edtf('2014-01-98/28')).to eq nil
47
- end
48
- end
49
-
50
- context 'with YYYY-MM/MM' do
51
- let(:start_date) { Date.new(2014,1,1) }
52
- let(:end_date) { Date.new(2014,3,1) }
53
-
54
- it 'parses date' do
55
- expect(subject.partial_edtf('2014-01/03'))
56
- .to have_attributes(:from => start_date,:to => end_date)
57
- end
58
-
59
- it 'gives nil for invalid date' do
60
- expect(subject.partial_edtf('2014-33/03')).to eq nil
61
- end
62
- end
63
- end
64
-
65
- describe '#month_year' do
66
- let(:date) { Date.new(2014,2,1) }
67
-
68
- it 'parses date' do
69
- expect(subject.month_year('02-2014'))
70
- .to eql date
71
- end
72
-
73
- it 'parses date' do
74
- expect(subject.month_year('02-2014').precision)
75
- .to eq :month
76
- end
77
- end
78
-
79
- describe '#hyphenated_partial_range' do
80
- let(:start_date) { Date.new(2013,1,1) }
81
- let(:end_date) { Date.new(2014,1,1) }
82
-
83
- it 'parses date' do
84
- expect(subject.hyphenated_partial_range('2013-14'))
85
- .to have_attributes(:from => start_date,:to => end_date)
86
- end
87
- end
88
-
89
- describe '#decade_s' do
90
- it 'parses date' do
91
- expect(subject.decade_s('1990s'))
92
- .to eq Date.edtf('199x')
93
- end
94
- end
95
-
96
- describe '#decade_hyphen' do
97
- it 'parses date' do
98
- expect(subject.decade_hyphen('199-'))
99
- .to eq Date.edtf('199x')
100
- end
101
- end
102
- end
@@ -1,41 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Krikri::Activity do
4
-
5
- subject { described_class.new(agent_class.new) }
6
- let(:agent_class) { Class.new { extend Krikri::SoftwareAgent } }
7
-
8
- describe '#agent' do
9
- it 'has an agent' do
10
- expect(subject.agent).to be_a agent_class
11
- end
12
- end
13
-
14
- describe '#start_time' do
15
- before do
16
- subject.set_start_time
17
- end
18
-
19
- it 'marks start time' do
20
- expect(subject.start_time).to be_a DateTime
21
- end
22
- end
23
-
24
- describe 'end_time' do
25
- it 'raises an error if not started' do
26
- expect { subject.set_end_time }.to raise_error
27
- end
28
-
29
- context 'with start time' do
30
- before do
31
- subject.set_start_time
32
- subject.set_end_time
33
- end
34
-
35
- it 'marks end time' do
36
- subject.set_start_time
37
- expect(subject.end_time).to be_a DateTime
38
- end
39
- end
40
- end
41
- end
@@ -1,67 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe DPLA::MAP::Aggregation do
4
- it_behaves_like 'an LDP RDFSource'
5
-
6
- include_context 'clear repository'
7
-
8
- describe '#mint_uri!' do
9
- shared_examples 'sets to seed' do
10
- it 'sets URI' do
11
- subject.mint_id!('uri_seed')
12
- expect(subject.rdf_subject)
13
- .to eq RDF::URI(subject.class.base_uri) / 'uri_seed'
14
- end
15
- end
16
-
17
- shared_examples 'random hash' do
18
- it 'mints random hash' do
19
- expect(SecureRandom).to receive(:hex).and_return('abcd1234')
20
- subject.mint_id!
21
- expect(subject.rdf_subject).to end_with 'abcd1234'
22
- end
23
- end
24
-
25
- context 'without originalRecord' do
26
- include_examples 'sets to seed'
27
- include_examples 'random hash'
28
- end
29
-
30
- context 'with originalRecord' do
31
- include_examples 'sets to seed'
32
-
33
- before do
34
- subject.originalRecord = or_uri
35
- end
36
-
37
- let(:local_name) { '123' }
38
- let(:or_uri) do
39
- RDF::URI('http://example.org/ldp/resource/') / local_name + '.xml'
40
- end
41
-
42
- it 'mints a URI' do
43
- subject.mint_id!
44
- expect(subject.rdf_subject)
45
- .to eq RDF::URI(subject.class.base_uri) / local_name
46
- end
47
-
48
- context 'as a bnode' do
49
- before do
50
- subject.originalRecord = RDF::Node.new
51
- end
52
-
53
- include_examples 'random hash'
54
- end
55
-
56
- context 'with more than one originalRecord' do
57
- before do
58
- subject.originalRecord << RDF::Node.new
59
- end
60
-
61
- it 'raises an error' do
62
- expect { subject.mint_id! }.to raise_error
63
- end
64
- end
65
- end
66
- end
67
- end
@@ -1,15 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Krikri::Harvesters::OAIHarvester do
4
-
5
- let(:args) { { endpoint: 'http://example.org/endpoint' } }
6
- subject { described_class.new(args) }
7
-
8
- it 'has a client' do
9
- expect(subject.client).to be_a OAI::Client
10
- end
11
-
12
- it 'can get its record ids' do
13
- end
14
-
15
- end
@@ -1,5 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Krikri::Harvester do
4
-
5
- end
@@ -1,5 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Krikri::OriginalRecordMetadata do
4
- it_behaves_like 'an LDF RDFSource'
5
- end
@@ -1,5 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe OriginalRecord
4
-
5
- end
@@ -1,33 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Krikri::Provider do
4
- let(:provider) do
5
- provider = Krikri::Provider.new('123')
6
- provider.providedLabel = "moomin"
7
- end
8
-
9
- let(:agg) do
10
- a = build(:aggregation, :provider => provider)
11
- a.set_subject! 'moomin'
12
- a
13
- end
14
-
15
- describe '.all' do
16
- it 'with no items is empty' do
17
- expect(Krikri::Provider.all).to be_empty
18
- end
19
-
20
- it 'returns all items' do
21
- agg.save
22
- Krikri::IndexService.new.add(agg)
23
- expect(Krikri::Provider.all).to contain_exactly provider
24
- end
25
- end
26
-
27
- describe '.find' do
28
- it do
29
- require 'pry'
30
- binding.pry
31
- end
32
- end
33
- end
@@ -1,64 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Krikri::QAReport do
4
-
5
- subject { described_class.new(provider) }
6
-
7
- let(:provider) do
8
- agent = build(:agent)
9
- agent.set_subject! 'http://example.org/moomin'
10
- agent
11
- end
12
-
13
- let(:solutions) do
14
- RDF::Query::Solutions.new(
15
- [RDF::Query::Solution.new(value: RDF::Literal('abc'),
16
- aggregation: DPLA::MAP::Aggregation
17
- .new('too-ticki'),
18
- isShownAt: DPLA::MAP::WebResource
19
- .new('http://example.org/too-ticki')),
20
- RDF::Query::Solution.new(value: RDF::Literal('abc'),
21
- aggregation: DPLA::MAP::Aggregation
22
- .new('little-my'),
23
- isShownAt: DPLA::MAP::WebResource
24
- .new('http://example.org/little-my')),
25
- RDF::Query::Solution.new(value: RDF::Literal('123'),
26
- aggregation: DPLA::MAP::Aggregation
27
- .new('moomin-mama'),
28
- isShownAt: DPLA::MAP::WebResource
29
- .new('http://example.org/moomin-mama'))])
30
- end
31
-
32
- describe '#provider' do
33
- it 'is set on initalization' do
34
- expect(subject.provider).to eq provider
35
- end
36
- end
37
-
38
- describe '#generate' do
39
- before do
40
- agg = build(:aggregation)
41
- agg.set_subject!('mummi123')
42
- agg.provider = provider
43
- agg.save
44
- agg2 = build(:aggregation)
45
- agg2.set_subject!('mummi223')
46
- agg2.provider = provider
47
- agg2.save
48
- end
49
-
50
- it do
51
- require 'pry'
52
- binding.pry
53
- end
54
-
55
- it 'populates report with hash'
56
- it 'generates data for all fields'
57
- end
58
-
59
- describe '#solutions_to_hash' do
60
- it '' do
61
- subject.send(:solutions_to_hash, solutions)
62
- end
63
- end
64
- end
@@ -1,15 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Krikri::ValidationReport do
4
-
5
- describe '#initialize' do
6
-
7
- end
8
-
9
- describe '.all' do
10
- it do
11
- require 'pry'
12
- binding.pry
13
- end
14
- end
15
- end
@@ -1,15 +0,0 @@
1
- shared_context 'with indexed item' do
2
- before do
3
- indexer = Krikri::QASearchIndex.new
4
- indexer.add agg.to_jsonld['@graph'].first
5
- indexer.commit
6
- end
7
-
8
- let(:agg) do
9
- a = build(:aggregation, provider: provider)
10
- a.set_subject! 'moomin'
11
- a
12
- end
13
-
14
-
15
- end
@@ -1,12 +0,0 @@
1
- shared_context '' do
2
- before do
3
- # dummy class
4
- class DummyMappingImplementation
5
- include Krikri::MappingDSL
6
- end
7
- end
8
-
9
- after do
10
- Object.send(:remove_const, 'DummyMappingImplementation')
11
- end
12
- end
@@ -1,6 +0,0 @@
1
- shared_context 'provenance queries' do
2
- before do
3
- allow(Krikri::ProvenanceQueryClient).to receive(:find_by_activity)
4
- .with(generator_uri).and_return(query)
5
- end
6
- end
@@ -1,21 +0,0 @@
1
- require "rake"
2
-
3
- shared_context "rake" do
4
- let(:rake) { Rake::Application.new }
5
- let(:task_name) { self.class.top_level_description }
6
- let(:task_path) { "lib/tasks/#{task_name.split(":").first}" }
7
- subject { rake[task_name] }
8
-
9
- def loaded_files_excluding_current_rake_file
10
- $".reject {|file| file == Rails.root.join("#{task_path}.rake").to_s }
11
- end
12
-
13
- before do
14
- Rake.application = rake
15
- require 'pry'
16
- binding.pry
17
- Rake.application.rake_require(task_path, [Rails.root.to_s], loaded_files_excluding_current_rake_file)
18
-
19
- Rake::Task.define_task(:environment)
20
- end
21
- end
@@ -1,5 +0,0 @@
1
-
2
- shared_examples 'an enrichment' do
3
- it 'is an enrichment' do
4
- end
5
- end
@@ -1,13 +0,0 @@
1
-
2
- shared_examples 'a harvest behavior' do
3
- subject { described_class.new() }
4
-
5
- describe '.process_record' do
6
- it 'passes args and call to instance' do
7
- instance = double('behavior instance')
8
- expect(described_class).to receive(:new).with(record, activity_uri)
9
- .and_return(instance)
10
- described_class.process_record
11
- end
12
- end
13
- end
@@ -1,20 +0,0 @@
1
-
2
- shared_examples 'a job' do |agent_class|
3
- let(:activity) { create(:krikri_activity) }
4
-
5
- before do
6
- expect_any_instance_of(agent_class)
7
- .to receive(:run)
8
- .and_return(true)
9
- end
10
-
11
- it 'runs a harvest' do
12
- expect { described_class.perform(activity.id) }.not_to raise_error
13
- end
14
-
15
- it 'causes activity timestamps to be correctly modified' do
16
- described_class.perform(activity.id)
17
- activity.reload
18
- expect(activity.end_time).to be_within(1.second).of(DateTime.now)
19
- end
20
- end
@@ -1,4 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Krikri::LDP::Resource do
4
- end
@@ -1,12 +0,0 @@
1
- shared_examples 'a parser with oai headers' do
2
- describe '#header' do
3
- it 'has a header' do
4
- expect(subject.header).to be_a Krikri::Parser::Value
5
- end
6
-
7
- it 'has children' do
8
- expect(subject.header.children)
9
- .to include ["xmlns:identifier", "xmlns:datestamp", "xmlns:setSpec"]
10
- end
11
- end
12
- end
@@ -1 +0,0 @@
1
- shared_examples 'an RDFSource' do
@@ -1,5 +0,0 @@
1
-
2
- shared_examples 'a software agent' do
3
- let(:agent) { subject || described_class.new }
4
-
5
- end
@@ -1,12 +0,0 @@
1
- shared_examples 'a string enrichment' do |values|
2
- it 'skips non-string values' do
3
- date = Date.today
4
- expect(subject.enrich_value(date)).to eq date
5
- end
6
-
7
- it 'matches values' do
8
- values.each do |value|
9
- expect(subject.enrich_value(value[:start])).to eq value[:end]
10
- end
11
- end
12
- end
@@ -1,14 +0,0 @@
1
- require 'rails/generators'
2
-
3
- class TestAppGenerator < Rails::Generators::Base
4
- source_root "./spec/test_app_templates"
5
-
6
- # if you need to generate any additional configuration
7
- # into the test app, this generator will be run immediately
8
- # after setting up the application
9
-
10
- def install_engine
11
- generate 'krikri:install'
12
- end
13
- end
14
-
@@ -1,3 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'krikri/providers/index.html.erb', type: :view do
@@ -1,12 +0,0 @@
1
- describe 'providers/show.html.erb' do
2
- context 'when the product has a url' do
3
- it 'displays the url' do
4
- require 'pry'
5
- binding.pry
6
-
7
- render
8
-
9
- expect(rendered).to expect(rendered).to have_content 'None'
10
- end
11
- end
12
- end
@@ -1,10 +0,0 @@
1
- describe 'providers/show.html.erb' do
2
- it 'displays the url' do
3
- require 'pry'
4
- binding.pry
5
-
6
- render
7
-
8
- expect(rendered).to expect(rendered).to have_content 'None'
9
- end
10
- end
@@ -1,17 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'krikri/qa_reports/index.html.erb', type: :view do
4
- let(:reports) { [double, double] }
5
-
6
- before do
7
- reports.each_with_index do |report, i|
8
- allow(report).to receive(:id).and_return(i.to_s)
9
- allow(report).to receive(:provider).and_return("provider_#{i}")
10
- end
11
- end
12
-
13
- it do
14
- assign(:reports, reports)
15
-
16
- end
17
- end
@@ -1,22 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'krikri/report/index.html.erb', type: :view do
4
- let(:reports) { [double, double] }
5
-
6
- before do
7
- reports.each_with_index do |report, i|
8
- allow(report).to receive(:id).and_return(i.to_s)
9
- allow(report).to receive(:provider).and_return("provider_#{i}")
10
- allow(view).to receive(:qa_report_path).with(report, format: 'csv')
11
- .and_return("report#{i}_csv_link")
12
- end
13
- end
14
-
15
- it 'links to csv' do
16
- assign(:reports, reports)
17
- render
18
- reports.each do |report|
19
- expect(rendered).to include "#{report.id}_csv_link"
20
- end
21
- end
22
- end
@@ -1,15 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'krikri/records/index.html.erb', type: :view do
4
-
5
- before do
6
- assign(:provider_id, provider.id)
7
- assign(:document, document)
8
- end
9
-
10
- it '' do
11
- render
12
-
13
- end
14
-
15
- end
@@ -1,8 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'krikri/records/show.html.erb', type: :view do
4
- before { assign(:current_provider, provider) }
5
-
6
- it 'renders ' do
7
- end
8
- end
@@ -1,5 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'krikri/reports/index.html.erb', type: :view do
4
-
5
- end
@@ -1,13 +0,0 @@
1
-
2
- stub_request(:get, "http://example.org/endpoint?identifier=1&metadataPrefix=oai_dc&verb=GetRecord").
3
- with(:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Faraday v0.9.0'}).
4
- to_return(:status => 200, :body => '<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="static/oai2.xsl"?><OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"><responseDate>2014-10-27T22:19:17Z</responseDate><request verb="GetRecord" identifier="oai:oaipmh.huygens.knaw.nl:arthurianfiction:MAN0000000010" metadataPrefix="oai_dc">http://oaipmh.huygens.knaw.nl/</request><GetRecord><record><header><identifier>oai:oaipmh.huygens.knaw.nl:arthurianfiction:MAN0000000010</identifier><datestamp>2012-07-13T14:27:31Z</datestamp><setSpec>arthurianfiction:manuscript</setSpec><setSpec>arthurianfiction</setSpec></header><metadata><oai_dc:dc xmlns:cmdi="http://www.clarin.eu/cmd/" xmlns:database="http://www.oclc.org/pears/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai="http://www.openarchives.org/OAI/2.0/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd http://www.clarin.eu/cmd/ http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1345561703673/xsd">
5
- <dc:title>Aberystwyth, National Library of Wales, 446-E</dc:title>
6
- <dc:creator>Bart Besamusca</dc:creator>
7
- <dc:identifier>https://service.arthurianfiction.org/manuscript/MAN0000000010</dc:identifier>
8
- <dc:date>2012-07-13T14:27:31Z</dc:date>
9
- <dc:contributor>Bart Besamusca</dc:contributor>
10
- <dc:type>model</dc:type>
11
- <dc:language>eng</dc:language>
12
- </oai_dc:dc></metadata></record></GetRecord></OAI-PMH>', :headers => {})
13
-