bigmouth 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (411) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/bigmouth/admin/dashboard.js +17 -0
  3. data/app/assets/javascripts/bigmouth/admin/data-confirm-modal.js +269 -0
  4. data/app/assets/javascripts/bigmouth/application.js +1 -0
  5. data/app/assets/stylesheets/bigmouth/admin/dashboard.css.scss +108 -0
  6. data/app/assets/stylesheets/bigmouth/custom.scss +32 -1
  7. data/app/controllers/bigmouth/admin/application_controller.rb +8 -0
  8. data/app/controllers/bigmouth/admin/articles_controller.rb +60 -0
  9. data/app/controllers/bigmouth/admin/images_controller.rb +60 -0
  10. data/app/controllers/bigmouth/articles_controller.rb +5 -53
  11. data/app/helpers/bigmouth/admin/application_helper.rb +35 -0
  12. data/app/helpers/bigmouth/application_helper.rb +24 -0
  13. data/app/models/bigmouth/article.rb +4 -1
  14. data/app/models/bigmouth/image.rb +9 -0
  15. data/app/views/bigmouth/{articles → admin/articles}/_form.html.slim +1 -1
  16. data/app/views/bigmouth/admin/articles/edit.html.slim +6 -0
  17. data/app/views/bigmouth/admin/articles/index.html.slim +29 -0
  18. data/app/views/bigmouth/admin/articles/new.html.slim +4 -0
  19. data/app/views/bigmouth/admin/articles/show.html.slim +17 -0
  20. data/app/views/bigmouth/admin/images/_form.html.slim +18 -0
  21. data/app/views/bigmouth/admin/images/edit.html.slim +6 -0
  22. data/app/views/bigmouth/admin/images/index.html.slim +28 -0
  23. data/app/views/bigmouth/admin/images/new.html.slim +4 -0
  24. data/app/views/bigmouth/admin/images/show.html.slim +17 -0
  25. data/app/views/bigmouth/articles/index.html.slim +17 -16
  26. data/app/views/bigmouth/articles/show.html.slim +10 -11
  27. data/app/views/layouts/bigmouth/admin/dashboard.html.slim +56 -0
  28. data/app/views/layouts/bigmouth/default.html.slim +8 -4
  29. data/config/routes.rb +7 -2
  30. data/db/migrate/20150126024751_add_user_id_to_bigmouth_articles.rb +5 -0
  31. data/db/migrate/20150201131400_create_bigmouth_images.rb +9 -0
  32. data/db/migrate/20150201134338_add_user_id_to_bigmouth_images.rb +5 -0
  33. data/db/migrate/20150204082807_add_image_file_to_images.rb +8 -0
  34. data/lib/bigmouth.rb +12 -14
  35. data/lib/bigmouth/config.rb +23 -0
  36. data/lib/bigmouth/version.rb +1 -1
  37. data/test/controllers/bigmouth/admin/articles_controller_test.rb +9 -0
  38. data/test/controllers/bigmouth/admin/files_controller_test.rb +9 -0
  39. data/test/controllers/bigmouth/articles_controller_test.rb +4 -42
  40. data/test/dummy/app/models/user.rb +2 -1
  41. data/test/dummy/app/views/layouts/application.html.erb +12 -11
  42. data/test/dummy/config/initializers/bigmouth.rb +16 -13
  43. data/test/dummy/db/schema.rb +13 -2
  44. data/test/features/bigmouth/admin/admin_area_test.rb +113 -0
  45. data/test/features/bigmouth/admin/admin_area_with_js_test.rb +60 -0
  46. data/test/features/bigmouth/admin/meat_is_murder.jpg +0 -0
  47. data/test/features/bigmouth/admin/strangeways_here_we_come.jpg +0 -0
  48. data/test/fixtures/bigmouth/articles.yml +26 -6
  49. data/test/fixtures/bigmouth/images.yml +10 -0
  50. data/test/fixtures/users.yml +4 -3
  51. data/test/helpers/bigmouth/application_helper_test.rb +54 -0
  52. data/test/helpers/bigmouth/articles_helper_test.rb +0 -0
  53. data/test/models/bigmouth/article_test.rb +14 -3
  54. data/test/models/bigmouth/file_test.rb +9 -0
  55. data/test/test_helper.rb +20 -0
  56. metadata +144 -708
  57. data/app/helpers/bigmouth/articles_helper.rb +0 -12
  58. data/app/views/bigmouth/articles/edit.html.slim +0 -6
  59. data/app/views/bigmouth/articles/new.html.slim +0 -4
  60. data/db/migrate/20150126024751_add_author_id_to_bigmouth_articles.rb +0 -5
  61. data/lib/#bigmouth.rb# +0 -31
  62. data/test/controllers/bigmouth/#articles_controller_test.rb# +0 -61
  63. data/test/dummy/app/views/layouts/#application.html.erb# +0 -22
  64. data/test/dummy/db/development.sqlite3 +0 -0
  65. data/test/dummy/db/test.sqlite3 +0 -0
  66. data/test/dummy/log/development.log +0 -36941
  67. data/test/dummy/log/test.log +0 -1063
  68. data/test/dummy/tmp/cache/assets/development/sass/365dfe376d173aa71edc333cb62d683802ac4ebb/application.css.scssc +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sass/365dfe376d173aa71edc333cb62d683802ac4ebb/custom.css.scssc +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sass/365dfe376d173aa71edc333cb62d683802ac4ebb/custom.scssc +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_alerts.scssc +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_badges.scssc +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_breadcrumbs.scssc +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_button-groups.scssc +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_buttons.scssc +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_carousel.scssc +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_close.scssc +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_code.scssc +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_component-animations.scssc +0 -0
  80. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_dropdowns.scssc +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_forms.scssc +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_glyphicons.scssc +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_grid.scssc +0 -0
  84. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_input-groups.scssc +0 -0
  85. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_jumbotron.scssc +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_labels.scssc +0 -0
  87. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_list-group.scssc +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_media.scssc +0 -0
  89. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_mixins.scssc +0 -0
  90. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_modals.scssc +0 -0
  91. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_navbar.scssc +0 -0
  92. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_navs.scssc +0 -0
  93. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_normalize.scssc +0 -0
  94. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_pager.scssc +0 -0
  95. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_pagination.scssc +0 -0
  96. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_panels.scssc +0 -0
  97. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_popovers.scssc +0 -0
  98. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_print.scssc +0 -0
  99. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_progress-bars.scssc +0 -0
  100. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_responsive-embed.scssc +0 -0
  101. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_responsive-utilities.scssc +0 -0
  102. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_scaffolding.scssc +0 -0
  103. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_tables.scssc +0 -0
  104. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_thumbnails.scssc +0 -0
  105. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_tooltip.scssc +0 -0
  106. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_type.scssc +0 -0
  107. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_utilities.scssc +0 -0
  108. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_variables.scssc +0 -0
  109. data/test/dummy/tmp/cache/assets/development/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_wells.scssc +0 -0
  110. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_alerts.scssc +0 -0
  111. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_background-variant.scssc +0 -0
  112. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_border-radius.scssc +0 -0
  113. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_buttons.scssc +0 -0
  114. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_center-block.scssc +0 -0
  115. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_clearfix.scssc +0 -0
  116. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_forms.scssc +0 -0
  117. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_gradients.scssc +0 -0
  118. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_grid-framework.scssc +0 -0
  119. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_grid.scssc +0 -0
  120. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_hide-text.scssc +0 -0
  121. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_image.scssc +0 -0
  122. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_labels.scssc +0 -0
  123. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_list-group.scssc +0 -0
  124. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_nav-divider.scssc +0 -0
  125. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_nav-vertical-align.scssc +0 -0
  126. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_opacity.scssc +0 -0
  127. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_pagination.scssc +0 -0
  128. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_panels.scssc +0 -0
  129. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_progress-bar.scssc +0 -0
  130. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_reset-filter.scssc +0 -0
  131. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_resize.scssc +0 -0
  132. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_responsive-visibility.scssc +0 -0
  133. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_size.scssc +0 -0
  134. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_tab-focus.scssc +0 -0
  135. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_table-row.scssc +0 -0
  136. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_text-emphasis.scssc +0 -0
  137. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_text-overflow.scssc +0 -0
  138. data/test/dummy/tmp/cache/assets/development/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_vendor-prefixes.scssc +0 -0
  139. data/test/dummy/tmp/cache/assets/development/sass/f4632670e0618904d6cdfaa05215347dcf2fcba2/_bootstrap-sprockets.scssc +0 -0
  140. data/test/dummy/tmp/cache/assets/development/sass/f4632670e0618904d6cdfaa05215347dcf2fcba2/_bootstrap.scssc +0 -0
  141. data/test/dummy/tmp/cache/assets/development/sprockets/0800f54ee19cf3cee10b956fa9786799 +0 -0
  142. data/test/dummy/tmp/cache/assets/development/sprockets/0b3bc7828f4a9fe07afe8f989474a5ec +0 -0
  143. data/test/dummy/tmp/cache/assets/development/sprockets/0d950fff852c8cc3816ea54eeb5a1b2a +0 -0
  144. data/test/dummy/tmp/cache/assets/development/sprockets/0ec737c7804927b87a778f1b8fd956a4 +0 -0
  145. data/test/dummy/tmp/cache/assets/development/sprockets/13cd01d1efdd0e91fd52fafc1bf9565f +0 -0
  146. data/test/dummy/tmp/cache/assets/development/sprockets/13d2a7feb53fc9b264c8f81d399ea58e +0 -0
  147. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  148. data/test/dummy/tmp/cache/assets/development/sprockets/146dac6de2f351f56eeb983e57282736 +0 -0
  149. data/test/dummy/tmp/cache/assets/development/sprockets/1bda73f85ee45cdc3618869a34b453c4 +0 -0
  150. data/test/dummy/tmp/cache/assets/development/sprockets/2006bd1910570bb544d0dc32d715b996 +0 -0
  151. data/test/dummy/tmp/cache/assets/development/sprockets/23cf365c3ba440f92a8f991efbcfa6a8 +0 -0
  152. data/test/dummy/tmp/cache/assets/development/sprockets/2580ae76161b34d0884be8806320ca61 +0 -0
  153. data/test/dummy/tmp/cache/assets/development/sprockets/26131461f8b9e7a897ba3f7269ddb6b4 +0 -0
  154. data/test/dummy/tmp/cache/assets/development/sprockets/2770d71695c9a6f0c2bc160ad37db730 +0 -0
  155. data/test/dummy/tmp/cache/assets/development/sprockets/29ca5e3268edb180578eaa08ddd9915c +0 -0
  156. data/test/dummy/tmp/cache/assets/development/sprockets/2d665f9a2281c838d3d69f2b737902d3 +0 -0
  157. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  158. data/test/dummy/tmp/cache/assets/development/sprockets/325360df43b85fca59b40b8762508af4 +0 -0
  159. data/test/dummy/tmp/cache/assets/development/sprockets/32f6bca48ffb4460dfd8f12fc1ef85a1 +0 -0
  160. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  161. data/test/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
  162. data/test/dummy/tmp/cache/assets/development/sprockets/383ef9be6bc79cc5951399b3c3b46535 +0 -0
  163. data/test/dummy/tmp/cache/assets/development/sprockets/388376eb1d0b8a9ed9e4318ac247d7d4 +0 -0
  164. data/test/dummy/tmp/cache/assets/development/sprockets/3b6ff5c4b970461fc3a4be5ac12d0b3d +0 -0
  165. data/test/dummy/tmp/cache/assets/development/sprockets/3b7a25bfd614ce14333ba7ed03937a55 +0 -0
  166. data/test/dummy/tmp/cache/assets/development/sprockets/3bc494fe8e4dc2c2b9781f7a811ee00f +0 -0
  167. data/test/dummy/tmp/cache/assets/development/sprockets/3c72c3313cf35da0f213400d6fec1541 +0 -0
  168. data/test/dummy/tmp/cache/assets/development/sprockets/4050a4e5062ab95c9f32e9b6940821ea +0 -0
  169. data/test/dummy/tmp/cache/assets/development/sprockets/42fb7cef7cfa43cdd2b5b64b5c20b889 +0 -0
  170. data/test/dummy/tmp/cache/assets/development/sprockets/43e5750d09bdf0e36a57cbf32acb099e +0 -0
  171. data/test/dummy/tmp/cache/assets/development/sprockets/451a8fbb54a23dd3a5547a57f94df7e4 +0 -0
  172. data/test/dummy/tmp/cache/assets/development/sprockets/46b842cdfa1e5070d20314cbb332d59c +0 -0
  173. data/test/dummy/tmp/cache/assets/development/sprockets/4b7ddd43b4359749c832f5b4b1bc7cf8 +0 -0
  174. data/test/dummy/tmp/cache/assets/development/sprockets/4bb54293ea4b6f08466a2557de5a2a11 +0 -0
  175. data/test/dummy/tmp/cache/assets/development/sprockets/4be5d609ea74e7b38e483d579dedd8d7 +0 -0
  176. data/test/dummy/tmp/cache/assets/development/sprockets/4e025241a8d1e12557a4e2b5d3063d7e +0 -0
  177. data/test/dummy/tmp/cache/assets/development/sprockets/4f41a3468d8fd87e462d54dfca140680 +0 -0
  178. data/test/dummy/tmp/cache/assets/development/sprockets/501519c399e259df3bc49ca644322893 +0 -0
  179. data/test/dummy/tmp/cache/assets/development/sprockets/508872d04f76d8be3efaf0f82d8fb0b7 +0 -0
  180. data/test/dummy/tmp/cache/assets/development/sprockets/50a7922f106c3194f16edef90cb660c9 +0 -0
  181. data/test/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5 +0 -0
  182. data/test/dummy/tmp/cache/assets/development/sprockets/5379d1871319f899b50fdcbe28e5d018 +0 -0
  183. data/test/dummy/tmp/cache/assets/development/sprockets/53b12122a17e514d3adca5cdb3048285 +0 -0
  184. data/test/dummy/tmp/cache/assets/development/sprockets/54cdc3dee8cad9f90c8539aa32d1e4f2 +0 -0
  185. data/test/dummy/tmp/cache/assets/development/sprockets/57551ea75456b809d737e62170040caf +0 -0
  186. data/test/dummy/tmp/cache/assets/development/sprockets/59de21355aa0fd0d461308733da4cd3b +0 -0
  187. data/test/dummy/tmp/cache/assets/development/sprockets/5c0bcb86ff5cdf72a4a29841434f88dc +0 -0
  188. data/test/dummy/tmp/cache/assets/development/sprockets/5dae5894de8c275b1254aaf067195921 +0 -0
  189. data/test/dummy/tmp/cache/assets/development/sprockets/5dbfb71999c0a18ab8d2cc39b1f71284 +0 -0
  190. data/test/dummy/tmp/cache/assets/development/sprockets/5f1a0d05e77ca8b9a1fc2a47e17a8174 +0 -0
  191. data/test/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
  192. data/test/dummy/tmp/cache/assets/development/sprockets/707ab35c5250018368f3a9a4df4da449 +0 -0
  193. data/test/dummy/tmp/cache/assets/development/sprockets/73cfbca7c1b756843290765631f4a785 +0 -0
  194. data/test/dummy/tmp/cache/assets/development/sprockets/75cd2272140031326dca921e73a933f9 +0 -0
  195. data/test/dummy/tmp/cache/assets/development/sprockets/76163a3e3c27325fb0ff4ed780b94fe8 +0 -0
  196. data/test/dummy/tmp/cache/assets/development/sprockets/79b7d24c49b1d2ea59077302f8b3a18b +0 -0
  197. data/test/dummy/tmp/cache/assets/development/sprockets/7a59f22f8067363e3395bc15aac4dbed +0 -0
  198. data/test/dummy/tmp/cache/assets/development/sprockets/7ab1c3857e4e7ea9e7174d62ca10a6e1 +0 -0
  199. data/test/dummy/tmp/cache/assets/development/sprockets/7cab2c7321621193037a91e348cf67e5 +0 -0
  200. data/test/dummy/tmp/cache/assets/development/sprockets/7d5608952c1d5efe059cc860bce1cb35 +0 -0
  201. data/test/dummy/tmp/cache/assets/development/sprockets/7f9592572b36c306feb917ee3a49639b +0 -0
  202. data/test/dummy/tmp/cache/assets/development/sprockets/80b31d46ab66182422df94cd9712b458 +0 -0
  203. data/test/dummy/tmp/cache/assets/development/sprockets/85d1b2c4394d4404cc670da0e251388e +0 -0
  204. data/test/dummy/tmp/cache/assets/development/sprockets/867ee69677cde04a7642174f04a7e034 +0 -0
  205. data/test/dummy/tmp/cache/assets/development/sprockets/87b209c0c9da28094a8d5581a21262c6 +0 -0
  206. data/test/dummy/tmp/cache/assets/development/sprockets/87d3d8a0e65a412e3adc455bc4bf0419 +0 -0
  207. data/test/dummy/tmp/cache/assets/development/sprockets/89b4e37ba66874fc6765f790cdc1aae3 +0 -0
  208. data/test/dummy/tmp/cache/assets/development/sprockets/8a389a2323475a7053fc419c4103814f +0 -0
  209. data/test/dummy/tmp/cache/assets/development/sprockets/8b806a0ae20adb61aba4b0e7c24c86d1 +0 -0
  210. data/test/dummy/tmp/cache/assets/development/sprockets/8db1cfb543feba7dbf3b1ad076395681 +0 -0
  211. data/test/dummy/tmp/cache/assets/development/sprockets/981923089e4607a8bd7da1384b2712c3 +0 -0
  212. data/test/dummy/tmp/cache/assets/development/sprockets/9caabbfb306d294b869c0e5ef25ed6ad +0 -0
  213. data/test/dummy/tmp/cache/assets/development/sprockets/9d39f38ba45b0ec46cbbcf748d899172 +0 -0
  214. data/test/dummy/tmp/cache/assets/development/sprockets/9ea84759be7ee597c81ea6b306983dd1 +0 -0
  215. data/test/dummy/tmp/cache/assets/development/sprockets/9ff88e23342f6d1e65e3617390550c98 +0 -0
  216. data/test/dummy/tmp/cache/assets/development/sprockets/a17257ce0ba57baae100bbc3ceac5dfb +0 -0
  217. data/test/dummy/tmp/cache/assets/development/sprockets/a1dea2a2c7707388ed8ec70150c99735 +0 -0
  218. data/test/dummy/tmp/cache/assets/development/sprockets/a6ca6a84d389f9b81abc9b055b5cab79 +0 -0
  219. data/test/dummy/tmp/cache/assets/development/sprockets/a79f32a7b19efba7b69efebbd1ac6425 +0 -0
  220. data/test/dummy/tmp/cache/assets/development/sprockets/ab7a93c91e93451ef33741a925d02d08 +0 -0
  221. data/test/dummy/tmp/cache/assets/development/sprockets/ac893c1e97c4fca776b0fa76929a71ae +0 -0
  222. data/test/dummy/tmp/cache/assets/development/sprockets/ace517e7e927c1ece160bd3024b1dc5c +0 -0
  223. data/test/dummy/tmp/cache/assets/development/sprockets/b3a5c599251f7cf1f3e73174b9646986 +0 -0
  224. data/test/dummy/tmp/cache/assets/development/sprockets/b3e1ccf83e92a0235ec89cbc837925a6 +0 -0
  225. data/test/dummy/tmp/cache/assets/development/sprockets/b5f53e94b387e8f6c7cb791a9866d867 +0 -0
  226. data/test/dummy/tmp/cache/assets/development/sprockets/b644258792ab07998445a3a13c5346b0 +0 -0
  227. data/test/dummy/tmp/cache/assets/development/sprockets/b710fe7f6a4f661200aa48112996586a +0 -0
  228. data/test/dummy/tmp/cache/assets/development/sprockets/b7ee934a0cfd8a77057075829e86b862 +0 -0
  229. data/test/dummy/tmp/cache/assets/development/sprockets/b9d280b317ea809834bd8cff91690afa +0 -0
  230. data/test/dummy/tmp/cache/assets/development/sprockets/bc384ffca623dd84dcc27426de8f538e +0 -0
  231. data/test/dummy/tmp/cache/assets/development/sprockets/bd25bf8269cb7fbc481ea93290e14619 +0 -0
  232. data/test/dummy/tmp/cache/assets/development/sprockets/bf4c6581e02e0626699a85cbf74479bd +0 -0
  233. data/test/dummy/tmp/cache/assets/development/sprockets/c164999110702fe49d2672bf6c3f48c0 +0 -0
  234. data/test/dummy/tmp/cache/assets/development/sprockets/c27a3e2bd1de5e03ad3501c17fd7ecf1 +0 -0
  235. data/test/dummy/tmp/cache/assets/development/sprockets/c2d8c0856a19fd683b5f4d7704382aa2 +0 -0
  236. data/test/dummy/tmp/cache/assets/development/sprockets/c31256c47d596d7ab5bec954b96e6e19 +0 -0
  237. data/test/dummy/tmp/cache/assets/development/sprockets/c3a2774d3288ca20b74f9baf56656109 +0 -0
  238. data/test/dummy/tmp/cache/assets/development/sprockets/c3ec335a67fd016e5f01916073c165b4 +0 -0
  239. data/test/dummy/tmp/cache/assets/development/sprockets/c57031591f8741c53c5c7431633997c4 +0 -0
  240. data/test/dummy/tmp/cache/assets/development/sprockets/c816c88aed3e2bbd9d5d2ff726b1c7c2 +0 -0
  241. data/test/dummy/tmp/cache/assets/development/sprockets/cebc6db0bbb8120f430da3970b173d2f +0 -0
  242. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  243. data/test/dummy/tmp/cache/assets/development/sprockets/d039180b508a0299d4ac3f7fbf9662cd +0 -0
  244. data/test/dummy/tmp/cache/assets/development/sprockets/d0771a5d56c6dd57590ad00cd2a287f1 +0 -0
  245. data/test/dummy/tmp/cache/assets/development/sprockets/d15b1d9a1b02f711ec089d10fea24315 +0 -0
  246. data/test/dummy/tmp/cache/assets/development/sprockets/d2038f3ae034aa5d2baa6f1b7359ee02 +0 -0
  247. data/test/dummy/tmp/cache/assets/development/sprockets/d5862a08d88b337e70c13f403c3a0912 +0 -0
  248. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  249. data/test/dummy/tmp/cache/assets/development/sprockets/d9328ea75ef727a9049f27c87ff53e67 +0 -0
  250. data/test/dummy/tmp/cache/assets/development/sprockets/dc04ff4958b01098f5923487afba1f60 +0 -0
  251. data/test/dummy/tmp/cache/assets/development/sprockets/de549dcf945ab5f71371242966074439 +0 -0
  252. data/test/dummy/tmp/cache/assets/development/sprockets/dfa904f001d086cda03ebfac7fde7550 +0 -0
  253. data/test/dummy/tmp/cache/assets/development/sprockets/e08495f04cd097009667a60ec0bde5cb +0 -0
  254. data/test/dummy/tmp/cache/assets/development/sprockets/e7d4caf1fd93f94e35c0d70b4a16b308 +0 -0
  255. data/test/dummy/tmp/cache/assets/development/sprockets/ec44bf41dda440ffa0a442b36f3f682f +0 -0
  256. data/test/dummy/tmp/cache/assets/development/sprockets/ed95a40034d5142585894fe388b45552 +0 -0
  257. data/test/dummy/tmp/cache/assets/development/sprockets/edf7ee075b440ec3827ac0cdfde324b3 +0 -0
  258. data/test/dummy/tmp/cache/assets/development/sprockets/eee1420e123cd3e2ff3d3bd790d51cdf +0 -0
  259. data/test/dummy/tmp/cache/assets/development/sprockets/f0908aaef2c0165df00f19c66fa8ab50 +0 -0
  260. data/test/dummy/tmp/cache/assets/development/sprockets/f4ea112f7250e02269448d556e4379d8 +0 -0
  261. data/test/dummy/tmp/cache/assets/development/sprockets/f56253b5f374fff1a33fbbc9881c9124 +0 -0
  262. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  263. data/test/dummy/tmp/cache/assets/development/sprockets/f87083f064a636b4fda659b15d9adede +0 -0
  264. data/test/dummy/tmp/cache/assets/development/sprockets/fbfb440251f374b2d535d7aadda4019f +0 -0
  265. data/test/dummy/tmp/cache/assets/development/sprockets/fcac08ebaff1499d385ec5712e1a218c +0 -0
  266. data/test/dummy/tmp/cache/assets/test/sass/365dfe376d173aa71edc333cb62d683802ac4ebb/application.css.scssc +0 -0
  267. data/test/dummy/tmp/cache/assets/test/sass/365dfe376d173aa71edc333cb62d683802ac4ebb/custom.scssc +0 -0
  268. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_alerts.scssc +0 -0
  269. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_badges.scssc +0 -0
  270. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_breadcrumbs.scssc +0 -0
  271. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_button-groups.scssc +0 -0
  272. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_buttons.scssc +0 -0
  273. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_carousel.scssc +0 -0
  274. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_close.scssc +0 -0
  275. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_code.scssc +0 -0
  276. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_component-animations.scssc +0 -0
  277. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_dropdowns.scssc +0 -0
  278. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_forms.scssc +0 -0
  279. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_glyphicons.scssc +0 -0
  280. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_grid.scssc +0 -0
  281. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_input-groups.scssc +0 -0
  282. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_jumbotron.scssc +0 -0
  283. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_labels.scssc +0 -0
  284. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_list-group.scssc +0 -0
  285. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_media.scssc +0 -0
  286. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_mixins.scssc +0 -0
  287. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_modals.scssc +0 -0
  288. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_navbar.scssc +0 -0
  289. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_navs.scssc +0 -0
  290. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_normalize.scssc +0 -0
  291. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_pager.scssc +0 -0
  292. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_pagination.scssc +0 -0
  293. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_panels.scssc +0 -0
  294. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_popovers.scssc +0 -0
  295. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_print.scssc +0 -0
  296. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_progress-bars.scssc +0 -0
  297. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_responsive-embed.scssc +0 -0
  298. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_responsive-utilities.scssc +0 -0
  299. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_scaffolding.scssc +0 -0
  300. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_tables.scssc +0 -0
  301. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_thumbnails.scssc +0 -0
  302. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_tooltip.scssc +0 -0
  303. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_type.scssc +0 -0
  304. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_utilities.scssc +0 -0
  305. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_variables.scssc +0 -0
  306. data/test/dummy/tmp/cache/assets/test/sass/4163f32cc458b0d128f15c1584bef7a5c65343ed/_wells.scssc +0 -0
  307. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_alerts.scssc +0 -0
  308. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_background-variant.scssc +0 -0
  309. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_border-radius.scssc +0 -0
  310. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_buttons.scssc +0 -0
  311. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_center-block.scssc +0 -0
  312. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_clearfix.scssc +0 -0
  313. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_forms.scssc +0 -0
  314. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_gradients.scssc +0 -0
  315. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_grid-framework.scssc +0 -0
  316. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_grid.scssc +0 -0
  317. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_hide-text.scssc +0 -0
  318. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_image.scssc +0 -0
  319. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_labels.scssc +0 -0
  320. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_list-group.scssc +0 -0
  321. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_nav-divider.scssc +0 -0
  322. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_nav-vertical-align.scssc +0 -0
  323. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_opacity.scssc +0 -0
  324. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_pagination.scssc +0 -0
  325. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_panels.scssc +0 -0
  326. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_progress-bar.scssc +0 -0
  327. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_reset-filter.scssc +0 -0
  328. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_resize.scssc +0 -0
  329. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_responsive-visibility.scssc +0 -0
  330. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_size.scssc +0 -0
  331. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_tab-focus.scssc +0 -0
  332. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_table-row.scssc +0 -0
  333. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_text-emphasis.scssc +0 -0
  334. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_text-overflow.scssc +0 -0
  335. data/test/dummy/tmp/cache/assets/test/sass/561bf4f81fa042d65c4c1b5ded662f7efde3cb49/_vendor-prefixes.scssc +0 -0
  336. data/test/dummy/tmp/cache/assets/test/sass/f4632670e0618904d6cdfaa05215347dcf2fcba2/_bootstrap-sprockets.scssc +0 -0
  337. data/test/dummy/tmp/cache/assets/test/sass/f4632670e0618904d6cdfaa05215347dcf2fcba2/_bootstrap.scssc +0 -0
  338. data/test/dummy/tmp/cache/assets/test/sprockets/0b3bc7828f4a9fe07afe8f989474a5ec +0 -0
  339. data/test/dummy/tmp/cache/assets/test/sprockets/0d950fff852c8cc3816ea54eeb5a1b2a +0 -0
  340. data/test/dummy/tmp/cache/assets/test/sprockets/0ec737c7804927b87a778f1b8fd956a4 +0 -0
  341. data/test/dummy/tmp/cache/assets/test/sprockets/13d2a7feb53fc9b264c8f81d399ea58e +0 -0
  342. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  343. data/test/dummy/tmp/cache/assets/test/sprockets/146dac6de2f351f56eeb983e57282736 +0 -0
  344. data/test/dummy/tmp/cache/assets/test/sprockets/1bda73f85ee45cdc3618869a34b453c4 +0 -0
  345. data/test/dummy/tmp/cache/assets/test/sprockets/23cf365c3ba440f92a8f991efbcfa6a8 +0 -0
  346. data/test/dummy/tmp/cache/assets/test/sprockets/2580ae76161b34d0884be8806320ca61 +0 -0
  347. data/test/dummy/tmp/cache/assets/test/sprockets/26131461f8b9e7a897ba3f7269ddb6b4 +0 -0
  348. data/test/dummy/tmp/cache/assets/test/sprockets/2770d71695c9a6f0c2bc160ad37db730 +0 -0
  349. data/test/dummy/tmp/cache/assets/test/sprockets/29ca5e3268edb180578eaa08ddd9915c +0 -0
  350. data/test/dummy/tmp/cache/assets/test/sprockets/2d665f9a2281c838d3d69f2b737902d3 +0 -0
  351. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  352. data/test/dummy/tmp/cache/assets/test/sprockets/325360df43b85fca59b40b8762508af4 +0 -0
  353. data/test/dummy/tmp/cache/assets/test/sprockets/32f6bca48ffb4460dfd8f12fc1ef85a1 +0 -0
  354. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  355. data/test/dummy/tmp/cache/assets/test/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
  356. data/test/dummy/tmp/cache/assets/test/sprockets/3b6ff5c4b970461fc3a4be5ac12d0b3d +0 -0
  357. data/test/dummy/tmp/cache/assets/test/sprockets/3b7a25bfd614ce14333ba7ed03937a55 +0 -0
  358. data/test/dummy/tmp/cache/assets/test/sprockets/3bc494fe8e4dc2c2b9781f7a811ee00f +0 -0
  359. data/test/dummy/tmp/cache/assets/test/sprockets/4050a4e5062ab95c9f32e9b6940821ea +0 -0
  360. data/test/dummy/tmp/cache/assets/test/sprockets/42fb7cef7cfa43cdd2b5b64b5c20b889 +0 -0
  361. data/test/dummy/tmp/cache/assets/test/sprockets/451a8fbb54a23dd3a5547a57f94df7e4 +0 -0
  362. data/test/dummy/tmp/cache/assets/test/sprockets/46b842cdfa1e5070d20314cbb332d59c +0 -0
  363. data/test/dummy/tmp/cache/assets/test/sprockets/4be5d609ea74e7b38e483d579dedd8d7 +0 -0
  364. data/test/dummy/tmp/cache/assets/test/sprockets/57551ea75456b809d737e62170040caf +0 -0
  365. data/test/dummy/tmp/cache/assets/test/sprockets/5c0bcb86ff5cdf72a4a29841434f88dc +0 -0
  366. data/test/dummy/tmp/cache/assets/test/sprockets/5dae5894de8c275b1254aaf067195921 +0 -0
  367. data/test/dummy/tmp/cache/assets/test/sprockets/5f1a0d05e77ca8b9a1fc2a47e17a8174 +0 -0
  368. data/test/dummy/tmp/cache/assets/test/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
  369. data/test/dummy/tmp/cache/assets/test/sprockets/707ab35c5250018368f3a9a4df4da449 +0 -0
  370. data/test/dummy/tmp/cache/assets/test/sprockets/73cfbca7c1b756843290765631f4a785 +0 -0
  371. data/test/dummy/tmp/cache/assets/test/sprockets/76163a3e3c27325fb0ff4ed780b94fe8 +0 -0
  372. data/test/dummy/tmp/cache/assets/test/sprockets/867ee69677cde04a7642174f04a7e034 +0 -0
  373. data/test/dummy/tmp/cache/assets/test/sprockets/87b209c0c9da28094a8d5581a21262c6 +0 -0
  374. data/test/dummy/tmp/cache/assets/test/sprockets/87d3d8a0e65a412e3adc455bc4bf0419 +0 -0
  375. data/test/dummy/tmp/cache/assets/test/sprockets/89b4e37ba66874fc6765f790cdc1aae3 +0 -0
  376. data/test/dummy/tmp/cache/assets/test/sprockets/8a389a2323475a7053fc419c4103814f +0 -0
  377. data/test/dummy/tmp/cache/assets/test/sprockets/8db1cfb543feba7dbf3b1ad076395681 +0 -0
  378. data/test/dummy/tmp/cache/assets/test/sprockets/9caabbfb306d294b869c0e5ef25ed6ad +0 -0
  379. data/test/dummy/tmp/cache/assets/test/sprockets/9d39f38ba45b0ec46cbbcf748d899172 +0 -0
  380. data/test/dummy/tmp/cache/assets/test/sprockets/9ff88e23342f6d1e65e3617390550c98 +0 -0
  381. data/test/dummy/tmp/cache/assets/test/sprockets/a17257ce0ba57baae100bbc3ceac5dfb +0 -0
  382. data/test/dummy/tmp/cache/assets/test/sprockets/a1dea2a2c7707388ed8ec70150c99735 +0 -0
  383. data/test/dummy/tmp/cache/assets/test/sprockets/a6ca6a84d389f9b81abc9b055b5cab79 +0 -0
  384. data/test/dummy/tmp/cache/assets/test/sprockets/ac893c1e97c4fca776b0fa76929a71ae +0 -0
  385. data/test/dummy/tmp/cache/assets/test/sprockets/b3a5c599251f7cf1f3e73174b9646986 +0 -0
  386. data/test/dummy/tmp/cache/assets/test/sprockets/b3e1ccf83e92a0235ec89cbc837925a6 +0 -0
  387. data/test/dummy/tmp/cache/assets/test/sprockets/b5f53e94b387e8f6c7cb791a9866d867 +0 -0
  388. data/test/dummy/tmp/cache/assets/test/sprockets/b644258792ab07998445a3a13c5346b0 +0 -0
  389. data/test/dummy/tmp/cache/assets/test/sprockets/b7ee934a0cfd8a77057075829e86b862 +0 -0
  390. data/test/dummy/tmp/cache/assets/test/sprockets/b9d280b317ea809834bd8cff91690afa +0 -0
  391. data/test/dummy/tmp/cache/assets/test/sprockets/bc384ffca623dd84dcc27426de8f538e +0 -0
  392. data/test/dummy/tmp/cache/assets/test/sprockets/bd25bf8269cb7fbc481ea93290e14619 +0 -0
  393. data/test/dummy/tmp/cache/assets/test/sprockets/c164999110702fe49d2672bf6c3f48c0 +0 -0
  394. data/test/dummy/tmp/cache/assets/test/sprockets/c27a3e2bd1de5e03ad3501c17fd7ecf1 +0 -0
  395. data/test/dummy/tmp/cache/assets/test/sprockets/c2d8c0856a19fd683b5f4d7704382aa2 +0 -0
  396. data/test/dummy/tmp/cache/assets/test/sprockets/c3ec335a67fd016e5f01916073c165b4 +0 -0
  397. data/test/dummy/tmp/cache/assets/test/sprockets/c57031591f8741c53c5c7431633997c4 +0 -0
  398. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  399. data/test/dummy/tmp/cache/assets/test/sprockets/d039180b508a0299d4ac3f7fbf9662cd +0 -0
  400. data/test/dummy/tmp/cache/assets/test/sprockets/d2038f3ae034aa5d2baa6f1b7359ee02 +0 -0
  401. data/test/dummy/tmp/cache/assets/test/sprockets/d5862a08d88b337e70c13f403c3a0912 +0 -0
  402. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  403. data/test/dummy/tmp/cache/assets/test/sprockets/dfa904f001d086cda03ebfac7fde7550 +0 -0
  404. data/test/dummy/tmp/cache/assets/test/sprockets/e7d4caf1fd93f94e35c0d70b4a16b308 +0 -0
  405. data/test/dummy/tmp/cache/assets/test/sprockets/edf7ee075b440ec3827ac0cdfde324b3 +0 -0
  406. data/test/dummy/tmp/cache/assets/test/sprockets/eee1420e123cd3e2ff3d3bd790d51cdf +0 -0
  407. data/test/dummy/tmp/cache/assets/test/sprockets/f0908aaef2c0165df00f19c66fa8ab50 +0 -0
  408. data/test/dummy/tmp/cache/assets/test/sprockets/f56253b5f374fff1a33fbbc9881c9124 +0 -0
  409. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  410. data/test/dummy/tmp/cache/assets/test/sprockets/fcac08ebaff1499d385ec5712e1a218c +0 -0
  411. data/test/dummy/tmp/pids/server.pid +0 -1
@@ -1,18 +1,19 @@
1
- p#notice
2
- = notice
3
- h1
4
- | Listing Articles
1
+ .articles
5
2
  - @articles.each do |article|
6
- h1.article-title
7
- = link_to article.title, article
8
- .posted-date
9
- = article.created_at.strftime("%B %d, %Y")
10
3
  .article
11
- = truncate_html sanitize(article.text), length: 200, omission: " ..."
12
- ul
13
- li
14
- = link_to 'Edit', edit_article_path(article)
15
- li
16
- = link_to 'Destroy', article, method: :delete, data: { confirm: 'Are you sure?' }
17
- hr
18
- = link_to 'New Article', new_article_path
4
+ h1.article-title
5
+ = link_to article.title, article
6
+ p.lead.article-author
7
+ | by
8
+ = author article
9
+ hr
10
+ p.posted-date
11
+ span.glyphicon.glyphicon-time
12
+ | Posted on
13
+ = article.created_at.strftime(Bigmouth.config.datetime_format)
14
+ hr
15
+ .article-body
16
+ = summary(article)
17
+ .read-more
18
+ = link_to "Read More >>", article
19
+ hr
@@ -1,15 +1,14 @@
1
- p#notice
2
- = notice
3
1
  h1.article-title
4
2
  = @article.title
5
- .posted-date
6
- = @article.created_at.strftime("%B %d, %Y")
7
- .article
3
+ p.lead.article-author
4
+ | by
5
+ = author @article
6
+ hr
7
+ p.posted-date
8
+ span.glyphicon.glyphicon-time
9
+ | Posted on
10
+ = @article.created_at.strftime(Bigmouth.config.datetime_format)
11
+ hr
12
+ .article-body
8
13
  = sanitize @article.text
9
- p
10
- strong
11
- | Author:
12
- = article_author @article
13
- = link_to 'Edit', edit_article_path(@article)
14
- | |
15
14
  = link_to 'Back', articles_path
@@ -0,0 +1,56 @@
1
+ doctype html
2
+ html
3
+ head
4
+ meta charset="utf-8"
5
+ meta http-equiv="X-UA-Compatible" content="IE=edge"
6
+ meta name="viewport" content="width=device-width, initial-scale=1"
7
+ meta name="description" content=""
8
+ meta name="author" content=""
9
+ title
10
+ = "#{yield(:title)} | Bigmouth Admin"
11
+ = stylesheet_link_tag "bigmouth/admin/dashboard", media: "all", "data-turbolinks-track" => true
12
+ = javascript_include_tag "bigmouth/admin/dashboard", "data-turbolinks-track" => true
13
+ = csrf_meta_tags
14
+ body
15
+ nav.navbar.navbar-default.navbar-fixed-top role="navigation"
16
+ .container-fluid
17
+ .navbar-header
18
+ button.navbar-toggle.collapsed type="button" aria-controls="navbar" data-target="#navbar-fuck" data-toggle="collapse"
19
+ span.sr-only Toggle navigation
20
+ span.icon-bar
21
+ span.icon-bar
22
+ span.icon-bar
23
+ = link_to "Bigmouth Admin", admin_root_path, class: "navbar-brand"
24
+ #navbar-fuck.navbar-collapse.collapse
25
+ ul#navbar-list-menu.nav.navbar-nav
26
+ = sidebar_list_items()
27
+ ul.nav.navbar-nav.navbar-right
28
+ li.dropdown
29
+ a.dropdown-toggle href="#" data-toggle="dropdown" role="button" aria-expanded="false"
30
+ = current_user ? current_user[Bigmouth.config.username_key.to_sym] : "Guest"
31
+ span.caret
32
+ ul.dropdown-menu role="menu"
33
+ li
34
+ a href="#"
35
+ | Action
36
+ li
37
+ a href="#"
38
+ | Another Action
39
+ li
40
+ a href="#"
41
+ | Something else here
42
+ li.divider
43
+ li
44
+ a href="#"
45
+ = link_to "Sign out", Bigmouth.config.sign_out_uri[:uri], method: Bigmouth.config.sign_out_uri[:method]
46
+ .container-fluid
47
+ .row
48
+ .col-sm-3.col-md-2.sidebar
49
+ ul.nav.nav-sidebar
50
+ = sidebar_list_items()
51
+ .col-sm-9.col-sm-offset-3.col-md-10.col-md-offset-2.main
52
+ .flash
53
+ - flash.each do |message_type, message|
54
+ .alert class="#{alert_class_for(message_type)}"
55
+ = message
56
+ = yield
@@ -19,9 +19,13 @@ html
19
19
  = link_to "Bigmouth Editor", "#", class: "navbar-brand"
20
20
  - else
21
21
  = link_to "Bigmouth", "#", class: "navbar-brand"
22
- #navbar.collapse.navbar-collapse
23
- ul.nav.navbar-nav
24
- li
25
- = link_to "Back to Articles", root_path
22
+ p.navbar-text.navbar-left
23
+ = link_to "Back to Articles", root_path, class: "navbar-link"
24
+ p.navbar-text.navbar-right
25
+ = "Logged in as: #{current_user ? current_user[Bigmouth.config.username_key.to_sym] : 'Guest'}"
26
26
  .container
27
+ .flash
28
+ - flash.each do |message_type, message|
29
+ .alert class="#{alert_class_for(message_type)}"
30
+ = message
27
31
  = yield
@@ -1,6 +1,11 @@
1
1
  Bigmouth::Engine.routes.draw do
2
+ get "admin" => redirect("admin/articles")
3
+ resources :articles, only: %i(index show), path: ""
2
4
  root "articles#index"
3
5
 
4
- resources :articles
5
-
6
+ namespace :admin do
7
+ resources :articles
8
+ resources :images
9
+ root "articles#index"
10
+ end
6
11
  end
@@ -0,0 +1,5 @@
1
+ class AddUserIdToBigmouthArticles < ActiveRecord::Migration
2
+ def change
3
+ add_column :bigmouth_articles, :user_id, :integer
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ class CreateBigmouthImages < ActiveRecord::Migration
2
+ def change
3
+ create_table :bigmouth_images do |t|
4
+ t.string :label
5
+
6
+ t.timestamps null: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ class AddUserIdToBigmouthImages < ActiveRecord::Migration
2
+ def change
3
+ add_column :bigmouth_images, :user_id, :integer
4
+ end
5
+ end
@@ -0,0 +1,8 @@
1
+ class AddImageFileToImages < ActiveRecord::Migration
2
+ def change
3
+ add_column :bigmouth_images, :image_file_id, :string
4
+ add_column :bigmouth_images, :image_file_size, :string
5
+ add_column :bigmouth_images, :image_file_filename, :string
6
+ add_column :bigmouth_images, :image_file_content_type, :string
7
+ end
8
+ end
@@ -5,29 +5,27 @@ require "bootstrap-sass"
5
5
  require "tinymce-rails"
6
6
  require "truncate_html"
7
7
  require "jquery-rails"
8
+ require "refile/rails"
9
+ require "refile/image_processing"
8
10
 
9
- module Bigmouth
10
- mattr_accessor :author_class
11
- mattr_accessor :layout
12
- mattr_accessor :username_key
11
+ require "bigmouth/config"
13
12
 
13
+ module Bigmouth
14
14
  class << self
15
- def author_class
16
- @@author_class ? @@author_class.constantize : "User"
15
+ def config
16
+ @config ||= Config.new
17
17
  end
18
18
 
19
- def layout
20
- @@layout || "bigmouth/default"
21
- end
22
-
23
- def username_key
24
- @@username_key || "email"
19
+ def configure
20
+ yield config if block_given?
25
21
  end
26
22
  end
27
23
 
28
24
  class Application < Rails::Application
29
25
  # SanitizeHelper configuration
30
- config.action_view.sanitized_allowed_tags = %w(h1 h2 h3 h4 h5 h6 p ul ol li a img table tr td em br strong)
31
- config.action_view.sanitized_allowed_attributes = %w(id class href)
26
+ # config.action_view.sanitized_allowed_tags = %w(h1 h2 h3 h4 h5 h6 p ul ol li a img table tr td em br strong)
27
+ # config.action_view.sanitized_allowed_attributes = %w(id class href)
28
+
29
+ config.assets.precompile += %w( bigmouth/admin/*.css bigmouth/admin/*.js )
32
30
  end
33
31
  end
@@ -0,0 +1,23 @@
1
+ module Bigmouth
2
+ class Config
3
+ include ActiveSupport::Configurable
4
+
5
+ config_accessor :user_class
6
+ config_accessor :layout
7
+ config_accessor :username_key
8
+ config_accessor :summary_length
9
+ config_accessor :datetime_format
10
+ config_accessor :sign_in_uri
11
+ config_accessor :sign_out_uri
12
+
13
+ configure do |config|
14
+ config.user_class = "User"
15
+ config.layout = "bigmouth/default"
16
+ config.username_key = "email"
17
+ config.summary_length = 20
18
+ config.datetime_format = "%B %d, %Y at %l:%M %p"
19
+ config.sign_in_uri = { uri: "/sign_in", method: :get }
20
+ config.sign_out_uri = { uri: "/sign_out", method: :post }
21
+ end
22
+ end
23
+ end
@@ -1,3 +1,3 @@
1
1
  module Bigmouth
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module Bigmouth
4
+ class Admin::ArticlesControllerTest < ActionController::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module Bigmouth
4
+ class Admin::FilesControllerTest < ActionController::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -4,8 +4,8 @@ module Bigmouth
4
4
  class ArticlesControllerTest < ActionController::TestCase
5
5
  setup do
6
6
  @routes = Bigmouth::Engine.routes
7
- @article = bigmouth_articles(:one)
8
- @user = users(:one)
7
+ @article = bigmouth_articles(:bigmouth_Strikes_again)
8
+ @user = users(:morrissey)
9
9
  end
10
10
 
11
11
  test "should get index" do
@@ -15,47 +15,9 @@ module Bigmouth
15
15
  assert_template "bigmouth/articles/index"
16
16
  end
17
17
 
18
- test "should get new when logging in" do
19
- login_user
20
- get :new
18
+ test "should show article" do
19
+ get :show, id: @article
21
20
  assert_response :success
22
- assert_template "bigmouth/articles/new"
23
21
  end
24
-
25
- test "should not get new without logging in" do
26
- get :new
27
- assert_redirected_to root_path
28
- end
29
-
30
- # test "should create article" do
31
- # assert_difference('Article.count') do
32
- # post :create, article: { text: @article.text, title: @article.title }
33
- # end
34
-
35
- # assert_redirected_to article_path(assigns(:article))
36
- # end
37
-
38
- # test "should show article" do
39
- # get :show, id: @article
40
- # assert_response :success
41
- # end
42
-
43
- # test "should get edit" do
44
- # get :edit, id: @article
45
- # assert_response :success
46
- # end
47
-
48
- # test "should update article" do
49
- # patch :update, id: @article, article: { text: @article.text, title: @article.title }
50
- # assert_redirected_to article_path(assigns(:article))
51
- # end
52
-
53
- # test "should destroy article" do
54
- # assert_difference('Article.count', -1) do
55
- # delete :destroy, id: @article
56
- # end
57
-
58
- # assert_redirected_to articles_path
59
- # end
60
22
  end
61
23
  end
@@ -1,7 +1,8 @@
1
1
  class User < ActiveRecord::Base
2
2
  authenticates_with_sorcery!
3
3
 
4
- has_many :articles, class_name: "Bigmouth::Article", foreign_key: "author_id"
4
+ has_many :articles, class_name: "Bigmouth::Article", foreign_key: "user_id"
5
+ has_many :files, class_name: "Bigmouth::File", foreign_key: "user_id"
5
6
 
6
7
  validates :password, length: { minimum: 3 }
7
8
  validates :password, confirmation: true
@@ -7,16 +7,17 @@
7
7
  <%= csrf_meta_tags %>
8
8
  </head>
9
9
  <body>
10
-
11
- <div>
12
- <p id="notice"><%= flash[:notice] %></p>
13
- <p id="alert"><%= flash[:alert] %></p>
14
- </div>
15
- <div>
16
- Current User is: <%= current_user ? current_user[Bigmouth.username_key.to_sym] : "Guest" %>
17
- </div>
18
-
19
- <%= yield %>
20
-
10
+ <div>
11
+ <% if flash[:notice] %>
12
+ <p id="notice"><%= flash[:notice] %></p>
13
+ <% end %>
14
+ <% if flash[:alert] %>
15
+ <p id="alert"><%= flash[:alert] %></p>
16
+ <% end %>
17
+ </div>
18
+ <div>
19
+ Current User is: <%= current_user ? current_user[Bigmouth.config.username_key.to_sym] : "Guest" %>
20
+ </div>
21
+ <%= yield %>
21
22
  </body>
22
23
  </html>
@@ -1,13 +1,16 @@
1
- # Set a class for user model (default: User)
2
- # Bigmouth.author_class = "User"
3
- # Set a field for username (default: email)
4
- # Bigmouth.username_key = "email"
5
- # Set a layout (default: bigmouth/default)
6
- # Bigmouth.layout = "application"
7
- ## Set summary length to truncate (default: 20 words)
8
- #Bigmouth.summary_length = 10
9
-
10
- # TODO
11
- #Rails.application.config.bigmouth.configure do |config|
12
- # config.username = :username
13
- #end
1
+ Bigmouth.configure do |config|
2
+ # Set a class for user model (default: User)
3
+ config.user_class = "User"
4
+ # Set a field for username (default: email)
5
+ config.username_key = "email"
6
+ # Set a layout (default: bigmouth/default)
7
+ #config.layout = "application"
8
+ # Set summary length to truncate (default: 200)
9
+ config.summary_length = 100
10
+ # Set date and time format
11
+ config.datetime_format = "%B %d, %Y at %l:%M %p"
12
+ # Set uri and method to sign in
13
+ config.sign_in_uri = { uri: "/login", method: :get }
14
+ # Set uri and method to sign out
15
+ config.sign_out_uri = { uri: "/logout", method: :post }
16
+ end if defined?(Bigmouth)
@@ -11,14 +11,25 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20150129053810) do
14
+ ActiveRecord::Schema.define(version: 20150204082807) do
15
15
 
16
16
  create_table "bigmouth_articles", force: :cascade do |t|
17
17
  t.string "title"
18
18
  t.text "text"
19
19
  t.datetime "created_at", null: false
20
20
  t.datetime "updated_at", null: false
21
- t.integer "author_id"
21
+ t.integer "user_id"
22
+ end
23
+
24
+ create_table "bigmouth_images", force: :cascade do |t|
25
+ t.string "label"
26
+ t.datetime "created_at", null: false
27
+ t.datetime "updated_at", null: false
28
+ t.integer "user_id"
29
+ t.string "image_file_id"
30
+ t.string "image_file_size"
31
+ t.string "image_file_filename"
32
+ t.string "image_file_content_type"
22
33
  end
23
34
 
24
35
  create_table "users", force: :cascade do |t|
@@ -0,0 +1,113 @@
1
+ require "test_helper"
2
+
3
+ def sign_in
4
+ visit "/login"
5
+ fill_in "email", with: @user[Bigmouth.config.username_key.to_sym]
6
+ fill_in "password", with: "miserable-lie"
7
+ click_button "Login"
8
+ end
9
+
10
+ feature "Admin::AdminArea" do
11
+ before do
12
+ @article = bigmouth_articles(:bigmouth_Strikes_again)
13
+ @user = users(:morrissey)
14
+ @image = bigmouth_images(:the_queen_is_dead)
15
+ end
16
+
17
+ scenario "redirect to sign in page without logging in" do
18
+ visit "/blog/admin"
19
+ page.must_have_content "Login"
20
+ visit "/blog/admin/articles"
21
+ page.must_have_content "Login"
22
+ visit "/blog/admin/images"
23
+ page.must_have_content "Login"
24
+ end
25
+
26
+ scenario "display admin page when logging in" do
27
+ sign_in
28
+ visit "/blog/admin"
29
+ # save_and_open_page
30
+ page.must_have_content "Bigmouth Admin"
31
+ # Capybara.reset_sessions!
32
+ end
33
+
34
+ scenario "display articles page when logging in" do
35
+ sign_in
36
+ visit "/blog/admin/articles"
37
+ page.must_have_content "Articles"
38
+ end
39
+
40
+ scenario "correctly display article page" do
41
+ sign_in
42
+ visit "/blog/admin/articles/#{@article.id}"
43
+ page.must_have_content "Bigmouth Strikes Again"
44
+ end
45
+
46
+ scenario "correctly create new article" do
47
+ sign_in
48
+ visit "/blog/admin/articles/new"
49
+ page.must_have_content "New Article"
50
+ fill_in "article_title", with: "There Is A Light That Never Goes Out"
51
+ fill_in "article_text", with: <<EOS
52
+ Take me out tonight
53
+ Where there's music and there's people
54
+ And they're young and alive
55
+ Driving in your car
56
+ I never never want to go home
57
+ Because I haven't got one
58
+ Anymore
59
+ EOS
60
+ click_button "Submit"
61
+ page.must_have_content("by #{@user[Bigmouth.config.username_key.to_sym]}")
62
+ end
63
+
64
+ scenario "correctly edit article" do
65
+ sign_in
66
+ visit "/blog/admin/articles/#{@article.id}/edit"
67
+ page.must_have_content "Editing Article"
68
+ fill_in "article_title", with: "There Is A Light That Never Goes Out"
69
+ fill_in "article_text", with: <<EOS
70
+ Take me out tonight
71
+ Where there's music and there's people
72
+ And they're young and alive
73
+ Driving in your car
74
+ I never never want to go home
75
+ Because I haven't got one
76
+ Anymore
77
+ EOS
78
+ click_button "Submit"
79
+ page.must_have_content("There Is A Light That Never Goes Out")
80
+ end
81
+
82
+ scenario "display images page when logging in" do
83
+ sign_in
84
+ visit "/blog/admin/images"
85
+ page.must_have_content "Images"
86
+ end
87
+
88
+ scenario "correctly display image page" do
89
+ sign_in
90
+ visit "/blog/admin/images/#{@image.id}"
91
+ page.must_have_content "Image URL"
92
+ end
93
+
94
+ scenario "correctly create new image" do
95
+ sign_in
96
+ visit "/blog/admin/images/new"
97
+ page.must_have_content "New Image"
98
+ fill_in "image_label", with: "Strangeways, Here We Come"
99
+ attach_file "image_image_file", "#{Bigmouth::Engine.root}/test/features/bigmouth/admin/strangeways_here_we_come.jpg"
100
+ click_button "Submit"
101
+ page.must_have_content "Image URL"
102
+ end
103
+
104
+ scenario "correctly edit image" do
105
+ sign_in
106
+ visit "/blog/admin/images/#{@image.id}/edit"
107
+ page.must_have_content "Editing Image"
108
+ fill_in "image_label", with: "Meat Is Murder"
109
+ attach_file "image_image_file", "#{Bigmouth::Engine.root}/test/features/bigmouth/admin/meat_is_murder.jpg"
110
+ click_button "Submit"
111
+ page.must_have_content "Image URL"
112
+ end
113
+ end