mongoid-forums 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +35 -0
  4. data/app/assets/javascripts/mongoid_forums/admin/base.js +2 -0
  5. data/app/assets/javascripts/mongoid_forums/admin/categories.js +2 -0
  6. data/app/assets/javascripts/mongoid_forums/admin/forums.js +2 -0
  7. data/app/assets/javascripts/mongoid_forums/application.js +13 -0
  8. data/app/assets/javascripts/mongoid_forums/forums.js +2 -0
  9. data/app/assets/javascripts/mongoid_forums/posts.js +2 -0
  10. data/app/assets/javascripts/mongoid_forums/topics.js +2 -0
  11. data/app/assets/stylesheets/mongoid_forums/admin/base.css +4 -0
  12. data/app/assets/stylesheets/mongoid_forums/admin/categories.css +4 -0
  13. data/app/assets/stylesheets/mongoid_forums/admin/forums.css +4 -0
  14. data/app/assets/stylesheets/mongoid_forums/application.css +15 -0
  15. data/app/assets/stylesheets/mongoid_forums/forums.css +4 -0
  16. data/app/assets/stylesheets/mongoid_forums/posts.css +4 -0
  17. data/app/assets/stylesheets/mongoid_forums/topics.css +4 -0
  18. data/app/assets/stylesheets/scaffold.css +56 -0
  19. data/app/controllers/mongoid_forums/admin/base_controller.rb +11 -0
  20. data/app/controllers/mongoid_forums/admin/categories_controller.rb +36 -0
  21. data/app/controllers/mongoid_forums/admin/forums_controller.rb +36 -0
  22. data/app/controllers/mongoid_forums/application_controller.rb +45 -0
  23. data/app/controllers/mongoid_forums/forums_controller.rb +57 -0
  24. data/app/controllers/mongoid_forums/posts_controller.rb +75 -0
  25. data/app/controllers/mongoid_forums/redirect_controller.rb +33 -0
  26. data/app/controllers/mongoid_forums/topics_controller.rb +84 -0
  27. data/app/helpers/mongoid_forums/admin/base_helper.rb +4 -0
  28. data/app/helpers/mongoid_forums/admin/categories_helper.rb +4 -0
  29. data/app/helpers/mongoid_forums/admin/forums_helper.rb +4 -0
  30. data/app/helpers/mongoid_forums/application_helper.rb +20 -0
  31. data/app/helpers/mongoid_forums/formatting_helper.rb +28 -0
  32. data/app/helpers/mongoid_forums/forums_helper.rb +15 -0
  33. data/app/helpers/mongoid_forums/posts_helper.rb +4 -0
  34. data/app/helpers/mongoid_forums/topics_helper.rb +4 -0
  35. data/app/models/mongoid_forums/alert.rb +80 -0
  36. data/app/models/mongoid_forums/category.rb +13 -0
  37. data/app/models/mongoid_forums/concerns/subscribable.rb +76 -0
  38. data/app/models/mongoid_forums/concerns/viewable.rb +60 -0
  39. data/app/models/mongoid_forums/forum.rb +42 -0
  40. data/app/models/mongoid_forums/permission.rb +95 -0
  41. data/app/models/mongoid_forums/post.rb +37 -0
  42. data/app/models/mongoid_forums/rank.rb +9 -0
  43. data/app/models/mongoid_forums/subscription.rb +66 -0
  44. data/app/models/mongoid_forums/topic.rb +45 -0
  45. data/app/models/mongoid_forums/view.rb +30 -0
  46. data/app/views/layouts/mongoid_forums/application.haml +21 -0
  47. data/app/views/mongoid_forums/admin/base/index.haml +4 -0
  48. data/app/views/mongoid_forums/admin/categories/edit.html.erb +2 -0
  49. data/app/views/mongoid_forums/admin/categories/new.haml +3 -0
  50. data/app/views/mongoid_forums/admin/forums/edit.html.erb +2 -0
  51. data/app/views/mongoid_forums/admin/forums/new.haml +4 -0
  52. data/app/views/mongoid_forums/forums/index.haml +43 -0
  53. data/app/views/mongoid_forums/forums/new.haml +15 -0
  54. data/app/views/mongoid_forums/forums/show.haml +43 -0
  55. data/app/views/mongoid_forums/posts/_form.haml +4 -0
  56. data/app/views/mongoid_forums/posts/_post.haml +20 -0
  57. data/app/views/mongoid_forums/posts/_quoted.haml +9 -0
  58. data/app/views/mongoid_forums/posts/edit.haml +17 -0
  59. data/app/views/mongoid_forums/posts/new.haml +17 -0
  60. data/app/views/mongoid_forums/topics/_topic.haml +2 -0
  61. data/app/views/mongoid_forums/topics/my_posts.haml +6 -0
  62. data/app/views/mongoid_forums/topics/my_subscriptions.haml +5 -0
  63. data/app/views/mongoid_forums/topics/my_topics.haml +6 -0
  64. data/app/views/mongoid_forums/topics/show.haml +12 -0
  65. data/config/routes.rb +40 -0
  66. data/lib/generators/mongoid_forums/install/templates/initializer.rb +5 -0
  67. data/lib/generators/mongoid_forums/install_generator.rb +101 -0
  68. data/lib/generators/mongoid_forums/views_generator.rb +27 -0
  69. data/lib/mongoid_forums/engine.rb +15 -0
  70. data/lib/mongoid_forums/sanitizer.rb +10 -0
  71. data/lib/mongoid_forums/version.rb +3 -0
  72. data/lib/mongoid_forums.rb +40 -0
  73. data/lib/tasks/mongoid_forums_tasks.rake +4 -0
  74. data/test/controllers/mongoid_forums/admin/base_controller_test.rb +11 -0
  75. data/test/controllers/mongoid_forums/admin/categories_controller_test.rb +31 -0
  76. data/test/controllers/mongoid_forums/admin/forums_controller_test.rb +31 -0
  77. data/test/controllers/mongoid_forums/forums_controller_test.rb +16 -0
  78. data/test/controllers/mongoid_forums/posts_controller_test.rb +36 -0
  79. data/test/controllers/mongoid_forums/topics_controller_test.rb +36 -0
  80. data/test/dummy/README.rdoc +28 -0
  81. data/test/dummy/Rakefile +6 -0
  82. data/test/dummy/app/assets/javascripts/application.js +13 -0
  83. data/test/dummy/app/assets/javascripts/welcome.js +2 -0
  84. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  85. data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
  86. data/test/dummy/app/assets/stylesheets/welcome.css +4 -0
  87. data/test/dummy/app/controllers/application_controller.rb +11 -0
  88. data/test/dummy/app/controllers/welcome_controller.rb +4 -0
  89. data/test/dummy/app/helpers/application_helper.rb +2 -0
  90. data/test/dummy/app/helpers/welcome_helper.rb +2 -0
  91. data/test/dummy/app/models/concerns/zero_oid_fix.rb +10 -0
  92. data/test/dummy/app/models/user.rb +43 -0
  93. data/test/dummy/app/views/layouts/application.haml +13 -0
  94. data/test/dummy/app/views/partials/_nav.haml +6 -0
  95. data/test/dummy/app/views/welcome/index.html.erb +2 -0
  96. data/test/dummy/bin/bundle +3 -0
  97. data/test/dummy/bin/rails +4 -0
  98. data/test/dummy/bin/rake +4 -0
  99. data/test/dummy/bin/setup +29 -0
  100. data/test/dummy/config/application.rb +29 -0
  101. data/test/dummy/config/boot.rb +5 -0
  102. data/test/dummy/config/environment.rb +5 -0
  103. data/test/dummy/config/environments/development.rb +41 -0
  104. data/test/dummy/config/environments/production.rb +76 -0
  105. data/test/dummy/config/environments/test.rb +42 -0
  106. data/test/dummy/config/initializers/assets.rb +11 -0
  107. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  108. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  109. data/test/dummy/config/initializers/devise.rb +259 -0
  110. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  111. data/test/dummy/config/initializers/inflections.rb +16 -0
  112. data/test/dummy/config/initializers/kaminari_config.rb +10 -0
  113. data/test/dummy/config/initializers/mime_types.rb +4 -0
  114. data/test/dummy/config/initializers/mongoid_forums.rb +5 -0
  115. data/test/dummy/config/initializers/session_store.rb +3 -0
  116. data/test/dummy/config/initializers/simple_form.rb +166 -0
  117. data/test/dummy/config/initializers/wrap_parameters.rb +9 -0
  118. data/test/dummy/config/locales/devise.en.yml +60 -0
  119. data/test/dummy/config/locales/en.yml +23 -0
  120. data/test/dummy/config/locales/simple_form.en.yml +31 -0
  121. data/test/dummy/config/mongoid.yml +69 -0
  122. data/test/dummy/config/routes.rb +8 -0
  123. data/test/dummy/config/secrets.yml +22 -0
  124. data/test/dummy/config.ru +4 -0
  125. data/test/dummy/lib/templates/erb/scaffold/_form.html.erb +13 -0
  126. data/test/dummy/log/development.log +152624 -0
  127. data/test/dummy/log/test.log +51 -0
  128. data/test/dummy/public/404.html +67 -0
  129. data/test/dummy/public/422.html +67 -0
  130. data/test/dummy/public/500.html +66 -0
  131. data/test/dummy/public/favicon.ico +0 -0
  132. data/test/dummy/test/controllers/welcome_controller_test.rb +9 -0
  133. data/test/dummy/test/fixtures/users.yml +11 -0
  134. data/test/dummy/test/models/user_test.rb +7 -0
  135. data/test/dummy/tmp/cache/assets/development/sprockets/0405ebcb982faa24d5a9bbe01ba43bf8 +0 -0
  136. data/test/dummy/tmp/cache/assets/development/sprockets/04b994ecf135576af395f1d87108f0e1 +0 -0
  137. data/test/dummy/tmp/cache/assets/development/sprockets/0532538bff94834533de08d16379c66f +0 -0
  138. data/test/dummy/tmp/cache/assets/development/sprockets/063d0c765cb2fe0a6fa3995059d65fcc +0 -0
  139. data/test/dummy/tmp/cache/assets/development/sprockets/0a395daf2ed2bad0174008f223997c21 +0 -0
  140. data/test/dummy/tmp/cache/assets/development/sprockets/0a4181c6e19406e1c40781394b0f7496 +0 -0
  141. data/test/dummy/tmp/cache/assets/development/sprockets/0f520169da88dbfbdd5b5f40cb5acc80 +0 -0
  142. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  143. data/test/dummy/tmp/cache/assets/development/sprockets/1b516e1e4f37dd27b32d035c2c825de7 +0 -0
  144. data/test/dummy/tmp/cache/assets/development/sprockets/1d1293f6abfd57a3035ab25a567fe43e +0 -0
  145. data/test/dummy/tmp/cache/assets/development/sprockets/25a167c7563d6fe8ec6b13ec1ac09274 +0 -0
  146. data/test/dummy/tmp/cache/assets/development/sprockets/268f4f56598234185d91373d61899b3f +0 -0
  147. data/test/dummy/tmp/cache/assets/development/sprockets/26ce0653a8cb3da5990ace16181dbd63 +0 -0
  148. data/test/dummy/tmp/cache/assets/development/sprockets/2dedb8177c20286c4259c1d58c5646cc +0 -0
  149. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  150. data/test/dummy/tmp/cache/assets/development/sprockets/2fda08fb2ff79ca1dd653c3b688c1651 +0 -0
  151. data/test/dummy/tmp/cache/assets/development/sprockets/30d0258c36708f3d7911d6ba2303aaad +0 -0
  152. data/test/dummy/tmp/cache/assets/development/sprockets/311da47a66243f663a4557a7e9997796 +0 -0
  153. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  154. data/test/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
  155. data/test/dummy/tmp/cache/assets/development/sprockets/37b103f4623089af1456b90830fe941c +0 -0
  156. data/test/dummy/tmp/cache/assets/development/sprockets/37f7e269b2ddbd05160232e59bf0288f +0 -0
  157. data/test/dummy/tmp/cache/assets/development/sprockets/408e554cb00cbb09ae89a1e7ac45ea4f +0 -0
  158. data/test/dummy/tmp/cache/assets/development/sprockets/41f10e590485de7db44ca61e32c135ea +0 -0
  159. data/test/dummy/tmp/cache/assets/development/sprockets/45e716730a5c02112d5817e1b8faa1a0 +0 -0
  160. data/test/dummy/tmp/cache/assets/development/sprockets/4acd6b11130459cfdf814caad7638e95 +0 -0
  161. data/test/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5 +0 -0
  162. data/test/dummy/tmp/cache/assets/development/sprockets/60f651a96095c10f531bd7bf9a14beb5 +0 -0
  163. data/test/dummy/tmp/cache/assets/development/sprockets/6b12ee5284cadf70954a584a88b6c529 +0 -0
  164. data/test/dummy/tmp/cache/assets/development/sprockets/6be29bb8e609ed29aaa3a6d4a04a9ae0 +0 -0
  165. data/test/dummy/tmp/cache/assets/development/sprockets/6cef1e9aec64b514669e261e511dc792 +0 -0
  166. data/test/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
  167. data/test/dummy/tmp/cache/assets/development/sprockets/76dc342539f7133a15b70b919f77425a +0 -0
  168. data/test/dummy/tmp/cache/assets/development/sprockets/873adae1bf2f532256c8ffe71a557df5 +0 -0
  169. data/test/dummy/tmp/cache/assets/development/sprockets/8d7f8b5066922abfdf12e8cf0a7f2f0e +0 -0
  170. data/test/dummy/tmp/cache/assets/development/sprockets/948b1a4ef7d3401c10fc537c40b56a1e +0 -0
  171. data/test/dummy/tmp/cache/assets/development/sprockets/99d8deee7a422780b297ca618f4062c8 +0 -0
  172. data/test/dummy/tmp/cache/assets/development/sprockets/9d4262e6cd4898fd1df7f51b2d3e5c92 +0 -0
  173. data/test/dummy/tmp/cache/assets/development/sprockets/9e611bdf180a46600cc5019392a1b561 +0 -0
  174. data/test/dummy/tmp/cache/assets/development/sprockets/ab4dfca9c17bc07c2fce0127b5d9669f +0 -0
  175. data/test/dummy/tmp/cache/assets/development/sprockets/af01a98a48fa1ebf1d65f0429ba2bb28 +0 -0
  176. data/test/dummy/tmp/cache/assets/development/sprockets/bc0c996f7ce50479170183c13af2d29d +0 -0
  177. data/test/dummy/tmp/cache/assets/development/sprockets/beeaeba29291235e532fb452d94795b3 +0 -0
  178. data/test/dummy/tmp/cache/assets/development/sprockets/cc040cf4f4539a12745d02867976f5ba +0 -0
  179. data/test/dummy/tmp/cache/assets/development/sprockets/ce30207f8949b0e3a822f6094bd31dcc +0 -0
  180. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  181. data/test/dummy/tmp/cache/assets/development/sprockets/d675d8a6b14078d1fc331870b4992050 +0 -0
  182. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  183. data/test/dummy/tmp/cache/assets/development/sprockets/daba24276ab6f3be739a0385f977df1c +0 -0
  184. data/test/dummy/tmp/cache/assets/development/sprockets/df5f9fbb250c939b0513aa2a35b4855b +0 -0
  185. data/test/dummy/tmp/cache/assets/development/sprockets/e22980ed174c68b2505214836a40e271 +0 -0
  186. data/test/dummy/tmp/cache/assets/development/sprockets/e2c4f946939f2d7d0b42d86383755cae +0 -0
  187. data/test/dummy/tmp/cache/assets/development/sprockets/e6a87270f3b0e8a73bcec17322694b61 +0 -0
  188. data/test/dummy/tmp/cache/assets/development/sprockets/e95bb3887fb84a7d966c0fc7c4e087fd +0 -0
  189. data/test/dummy/tmp/cache/assets/development/sprockets/eaa7a7fe023d19cd34c33a47e6b303f3 +0 -0
  190. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  191. data/test/dummy/tmp/cache/assets/development/sprockets/f91f775cd15edae9264ec0c23937c58b +0 -0
  192. data/test/fixtures/mongoid_forums/categories.yml +11 -0
  193. data/test/fixtures/mongoid_forums/forums.yml +11 -0
  194. data/test/fixtures/mongoid_forums/posts.yml +11 -0
  195. data/test/fixtures/mongoid_forums/ranks.yml +11 -0
  196. data/test/fixtures/mongoid_forums/topics.yml +11 -0
  197. data/test/integration/navigation_test.rb +9 -0
  198. data/test/models/mongoid_forums/category_test.rb +9 -0
  199. data/test/models/mongoid_forums/forum_test.rb +9 -0
  200. data/test/models/mongoid_forums/post_test.rb +9 -0
  201. data/test/models/mongoid_forums/rank_test.rb +9 -0
  202. data/test/models/mongoid_forums/topic_test.rb +9 -0
  203. data/test/mongoid_forums_test.rb +7 -0
  204. data/test/test_helper.rb +17 -0
  205. metadata +491 -0
@@ -0,0 +1,51 @@
1
+ -----------------------------
2
+ MongoidForumsTest: test_truth
3
+ -----------------------------
4
+ --------------------------------------------------------
5
+ MongoidForums::TopicsControllerTest: test_should_get_new
6
+ --------------------------------------------------------
7
+ ---------------------------------------------------------
8
+ MongoidForums::TopicsControllerTest: test_should_get_show
9
+ ---------------------------------------------------------
10
+ ---------------------------------------------------------
11
+ MongoidForums::TopicsControllerTest: test_should_get_edit
12
+ ---------------------------------------------------------
13
+ ------------------------------------------------------------
14
+ MongoidForums::TopicsControllerTest: test_should_get_destroy
15
+ ------------------------------------------------------------
16
+ -----------------------------------------------------------
17
+ MongoidForums::TopicsControllerTest: test_should_get_create
18
+ -----------------------------------------------------------
19
+ -----------------------------------------------------------
20
+ MongoidForums::TopicsControllerTest: test_should_get_update
21
+ -----------------------------------------------------------
22
+ --------------------------------------------
23
+ WelcomeControllerTest: test_should_get_index
24
+ --------------------------------------------
25
+ Processing by WelcomeController#index as HTML
26
+ Rendered welcome/index.html.erb (1.1ms)
27
+ Completed 200 OK in 8ms (Views: 8.1ms)
28
+ ----------------------------------------------------------
29
+ MongoidForums::ForumsControllerTest: test_should_get_index
30
+ ----------------------------------------------------------
31
+ ---------------------------------------------------------
32
+ MongoidForums::ForumsControllerTest: test_should_get_show
33
+ ---------------------------------------------------------
34
+ ----------------------------------------------------------
35
+ MongoidForums::PostsControllerTest: test_should_get_create
36
+ ----------------------------------------------------------
37
+ ----------------------------------------------------------
38
+ MongoidForums::PostsControllerTest: test_should_get_update
39
+ ----------------------------------------------------------
40
+ --------------------------------------------------------
41
+ MongoidForums::PostsControllerTest: test_should_get_edit
42
+ --------------------------------------------------------
43
+ -----------------------------------------------------------
44
+ MongoidForums::PostsControllerTest: test_should_get_destroy
45
+ -----------------------------------------------------------
46
+ --------------------------------------------------------
47
+ MongoidForums::PostsControllerTest: test_should_get_show
48
+ --------------------------------------------------------
49
+ -------------------------------------------------------
50
+ MongoidForums::PostsControllerTest: test_should_get_new
51
+ -------------------------------------------------------
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ class WelcomeControllerTest < ActionController::TestCase
4
+ test "should get index" do
5
+ get :index
6
+ assert_response :success
7
+ end
8
+
9
+ end
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class UserTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module MongoidForums
4
+ class CategoryTest < ActiveSupport::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 MongoidForums
4
+ class ForumTest < ActiveSupport::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 MongoidForums
4
+ class PostTest < ActiveSupport::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 MongoidForums
4
+ class RankTest < ActiveSupport::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 MongoidForums
4
+ class TopicTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class MongoidForumsTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, MongoidForums
6
+ end
7
+ end
@@ -0,0 +1,17 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ # Filter out Minitest backtrace while allowing backtrace from other libraries
8
+ # to be shown.
9
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
10
+
11
+ # Load support files
12
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
13
+
14
+ # Load fixtures from the engine
15
+ if ActiveSupport::TestCase.respond_to?(:fixture_path=)
16
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
17
+ end