wheels 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (298) hide show
  1. data/README +2 -0
  2. data/Rakefile +22 -22
  3. data/lib/{generators/core_extensions.rb → core_extensions.rb} +2 -2
  4. data/lib/generators/{recipes → wheels/recipes}/cancan.rb +0 -0
  5. data/lib/generators/{recipes → wheels/recipes}/cucumber.rb +0 -0
  6. data/lib/generators/{recipes → wheels/recipes}/default.rb +0 -0
  7. data/lib/generators/{recipes → wheels/recipes}/design.rb +0 -0
  8. data/lib/generators/{recipes → wheels/recipes}/devise.rb +0 -0
  9. data/lib/generators/{recipes → wheels/recipes}/factory_girl.rb +0 -0
  10. data/lib/generators/{recipes → wheels/recipes}/haml.rb +0 -0
  11. data/lib/generators/{recipes → wheels/recipes}/jquery.rb +0 -0
  12. data/lib/generators/{recipes → wheels/recipes}/mongoid.rb +0 -0
  13. data/lib/generators/{recipes → wheels/recipes}/postgresql.rb +0 -0
  14. data/lib/generators/wheels/recipes/public.rb +9 -0
  15. data/lib/generators/{recipes → wheels/recipes}/recipes.rb +0 -0
  16. data/lib/generators/{recipes → wheels/recipes}/remarkable.rb +0 -0
  17. data/lib/generators/{recipes → wheels/recipes}/rspec.rb +0 -0
  18. data/lib/generators/{recipes → wheels/recipes}/wheels.rb +0 -0
  19. data/lib/generators/{snippets → wheels/snippets}/cucumber/database_config +0 -0
  20. data/lib/generators/{templates → wheels/templates}/cancan/ability.rb +0 -0
  21. data/lib/generators/{templates → wheels/templates}/database/postgresql.yml +0 -0
  22. data/lib/generators/{templates → wheels/templates}/git/gitignore +0 -0
  23. data/lib/generators/{templates → wheels/templates}/haml/app/views/layouts/application.html.haml +0 -0
  24. data/lib/generators/{templates → wheels/templates}/mongoid/features/step_definitions/mongoid_steps.rb +0 -0
  25. data/lib/generators/{templates → wheels/templates}/mongoid/features/support/hooks.rb +0 -0
  26. data/lib/generators/wheels/wheels_generator.rb +0 -2
  27. data/lib/generators/wheels_update/core_extensions.3.rb +64 -0
  28. data/lib/generators/{recipes/wheels_update.rb → wheels_update/recipes/wheels.rb} +0 -0
  29. data/lib/generators/wheels_update/wheels_update_generator.rb +1 -1
  30. data/lib/wheels/base.rb +7 -0
  31. data/lib/wheels/routes.rb +2 -13
  32. data/test/functional/access_control_entries_controller_test.rb +49 -0
  33. data/test/functional/app_configs_controller_test.rb +49 -0
  34. data/test/functional/discussions_controller_test.rb +49 -0
  35. data/test/functional/external_links_controller_test.rb +49 -0
  36. data/test/functional/feedback_mailer_test.rb +8 -0
  37. data/test/functional/feedbacks_controller_test.rb +49 -0
  38. data/test/functional/forums_controller_test.rb +49 -0
  39. data/test/functional/layouts_controller_test.rb +49 -0
  40. data/test/functional/member_pages_controller_test.rb +49 -0
  41. data/test/functional/members_controller_test.rb +8 -0
  42. data/test/functional/menus_controller_test.rb +49 -0
  43. data/test/functional/pages_controller_test.rb +49 -0
  44. data/test/functional/product_revisions_controller_test.rb +49 -0
  45. data/test/performance/browsing_test.rb +9 -0
  46. data/test/test_helper.rb +13 -0
  47. data/test/unit/access_control_entry_test.rb +8 -0
  48. data/test/unit/app_config_test.rb +8 -0
  49. data/test/unit/attachment_test.rb +8 -0
  50. data/test/unit/discussion_test.rb +8 -0
  51. data/test/unit/external_link_test.rb +8 -0
  52. data/test/unit/feedback_test.rb +8 -0
  53. data/test/unit/forum_message_test.rb +8 -0
  54. data/test/unit/forum_test.rb +8 -0
  55. data/test/unit/helpers/access_control_entries_helper_test.rb +4 -0
  56. data/test/unit/helpers/app_configs_helper_test.rb +4 -0
  57. data/test/unit/helpers/discussions_helper_test.rb +4 -0
  58. data/test/unit/helpers/external_links_helper_test.rb +4 -0
  59. data/test/unit/helpers/feedbacks_helper_test.rb +4 -0
  60. data/test/unit/helpers/forums_helper_test.rb +4 -0
  61. data/test/unit/helpers/layouts_helper_test.rb +4 -0
  62. data/test/unit/helpers/member_pages_helper_test.rb +4 -0
  63. data/test/unit/helpers/members_helper_test.rb +4 -0
  64. data/test/unit/helpers/menus_helper_test.rb +4 -0
  65. data/test/unit/helpers/pages_helper_test.rb +4 -0
  66. data/test/unit/helpers/product_revisions_helper_test.rb +4 -0
  67. data/test/unit/layout_test.rb +8 -0
  68. data/test/unit/member_page_test.rb +8 -0
  69. data/test/unit/menu_test.rb +8 -0
  70. data/test/unit/page_revision_test.rb +8 -0
  71. data/test/unit/page_test.rb +8 -0
  72. data/test/unit/product_revision_test.rb +8 -0
  73. data/test/unit/settings_test.rb +8 -0
  74. data/test/unit/sitemap_test.rb +8 -0
  75. data/test/unit/user_test.rb +8 -0
  76. data/wheels.gemspec +122 -252
  77. metadata +124 -266
  78. data/LICENSE +0 -20
  79. data/README.rdoc +0 -17
  80. data/VERSION +0 -1
  81. data/app/controllers/access_control_entries_controller.rb +0 -20
  82. data/app/controllers/app_configs_controller.rb +0 -17
  83. data/app/controllers/application_controller.rb +0 -39
  84. data/app/controllers/attachments_controller.rb +0 -16
  85. data/app/controllers/blogs_controller.rb +0 -39
  86. data/app/controllers/discussions_controller.rb +0 -10
  87. data/app/controllers/external_links_controller.rb +0 -5
  88. data/app/controllers/feedbacks_controller.rb +0 -10
  89. data/app/controllers/forum_messages_controller.rb +0 -13
  90. data/app/controllers/forums_controller.rb +0 -2
  91. data/app/controllers/galleries_controller.rb +0 -60
  92. data/app/controllers/images_controller.rb +0 -30
  93. data/app/controllers/menus_controller.rb +0 -2
  94. data/app/controllers/pages_controller.rb +0 -71
  95. data/app/controllers/profiles_controller.rb +0 -16
  96. data/app/controllers/sitemaps_controller.rb +0 -135
  97. data/app/controllers/users_controller.rb +0 -28
  98. data/app/helpers/access_control_entries_helper.rb +0 -2
  99. data/app/helpers/app_configs_helper.rb +0 -2
  100. data/app/helpers/application_helper.rb +0 -36
  101. data/app/helpers/blogs_helper.rb +0 -10
  102. data/app/helpers/discussions_helper.rb +0 -2
  103. data/app/helpers/external_links_helper.rb +0 -2
  104. data/app/helpers/feedbacks_helper.rb +0 -2
  105. data/app/helpers/forums_helper.rb +0 -2
  106. data/app/helpers/menus_helper.rb +0 -2
  107. data/app/helpers/pages_helper.rb +0 -192
  108. data/app/helpers/sitemaps_helper.rb +0 -12
  109. data/app/mailers/feedback_mailer.rb +0 -10
  110. data/app/models/ability.rb +0 -43
  111. data/app/models/access_control_entry.rb +0 -100
  112. data/app/models/app_config.rb +0 -26
  113. data/app/models/attachment.rb +0 -10
  114. data/app/models/blog.rb +0 -10
  115. data/app/models/discussion.rb +0 -19
  116. data/app/models/external_link.rb +0 -4
  117. data/app/models/feedback.rb +0 -11
  118. data/app/models/forum.rb +0 -4
  119. data/app/models/forum_message.rb +0 -5
  120. data/app/models/gallery.rb +0 -5
  121. data/app/models/image.rb +0 -10
  122. data/app/models/menu.rb +0 -4
  123. data/app/models/page.rb +0 -7
  124. data/app/models/page_revision.rb +0 -2
  125. data/app/models/profile.rb +0 -12
  126. data/app/models/role.rb +0 -29
  127. data/app/models/s3_provider.rb +0 -84
  128. data/app/models/sitemap.rb +0 -171
  129. data/app/models/tagging.rb +0 -4
  130. data/app/models/user.rb +0 -69
  131. data/app/validators/email_validator.rb +0 -22
  132. data/app/views/access_control_entries/_form.html.haml +0 -33
  133. data/app/views/access_control_entries/_index.html.haml +0 -46
  134. data/app/views/access_control_entries/_show.html.haml +0 -12
  135. data/app/views/access_control_entries/create.js.haml +0 -3
  136. data/app/views/access_control_entries/destroy.js.haml +0 -3
  137. data/app/views/access_control_entries/edit.html.haml +0 -7
  138. data/app/views/access_control_entries/edit.js.haml +0 -3
  139. data/app/views/access_control_entries/index.html.haml +0 -2
  140. data/app/views/access_control_entries/index.js.haml +0 -3
  141. data/app/views/access_control_entries/new.html.haml +0 -5
  142. data/app/views/access_control_entries/new.js.haml +0 -3
  143. data/app/views/access_control_entries/show.html.haml +0 -2
  144. data/app/views/access_control_entries/show.js.haml +0 -4
  145. data/app/views/access_control_entries/update.js.haml +0 -3
  146. data/app/views/app_configs/_form.html.haml +0 -11
  147. data/app/views/app_configs/_index.html.haml +0 -6
  148. data/app/views/app_configs/_show.html.haml +0 -4
  149. data/app/views/app_configs/create.js.haml +0 -3
  150. data/app/views/app_configs/css.css.haml +0 -2
  151. data/app/views/app_configs/destroy.js.haml +0 -3
  152. data/app/views/app_configs/edit.html.haml +0 -2
  153. data/app/views/app_configs/edit.js.haml +0 -3
  154. data/app/views/app_configs/index.html.haml +0 -2
  155. data/app/views/app_configs/index.js.haml +0 -3
  156. data/app/views/app_configs/new.html.haml +0 -2
  157. data/app/views/app_configs/new.js.haml +0 -3
  158. data/app/views/app_configs/show.html.haml +0 -2
  159. data/app/views/app_configs/show.js.haml +0 -3
  160. data/app/views/app_configs/update.js.haml +0 -3
  161. data/app/views/attachments/_form.html.haml +0 -26
  162. data/app/views/attachments/_index.html.haml +0 -9
  163. data/app/views/attachments/_show.html.haml +0 -6
  164. data/app/views/attachments/_uploadify.html.erb +0 -12
  165. data/app/views/attachments/create.js.haml +0 -3
  166. data/app/views/attachments/destroy.js.haml +0 -3
  167. data/app/views/attachments/edit.js.haml +0 -3
  168. data/app/views/attachments/index.html.haml +0 -2
  169. data/app/views/attachments/index.js.haml +0 -3
  170. data/app/views/attachments/new.html.haml +0 -3
  171. data/app/views/attachments/new.js.haml +0 -3
  172. data/app/views/attachments/show.html.haml +0 -2
  173. data/app/views/attachments/show.js.haml +0 -3
  174. data/app/views/attachments/update.js.haml +0 -3
  175. data/app/views/blogs/_form.html.haml +0 -22
  176. data/app/views/blogs/edit.html.haml +0 -8
  177. data/app/views/blogs/index.html.haml +0 -21
  178. data/app/views/blogs/index.xml.builder +0 -27
  179. data/app/views/blogs/new.html.haml +0 -6
  180. data/app/views/blogs/show.html.haml +0 -25
  181. data/app/views/discussions/_form.html.haml +0 -16
  182. data/app/views/discussions/edit.html.haml +0 -7
  183. data/app/views/discussions/index.html.haml +0 -10
  184. data/app/views/discussions/new.html.haml +0 -25
  185. data/app/views/discussions/show.html.haml +0 -16
  186. data/app/views/external_links/_fields_for.html.haml +0 -2
  187. data/app/views/external_links/_form.html.haml +0 -18
  188. data/app/views/external_links/_show.html.haml +0 -7
  189. data/app/views/external_links/create.js.haml +0 -3
  190. data/app/views/external_links/destroy.js.haml +0 -3
  191. data/app/views/external_links/edit.html.haml +0 -7
  192. data/app/views/external_links/edit.js.haml +0 -3
  193. data/app/views/external_links/index.html.haml +0 -23
  194. data/app/views/external_links/index.js.haml +0 -3
  195. data/app/views/external_links/new.html.haml +0 -5
  196. data/app/views/external_links/new.js.haml +0 -3
  197. data/app/views/external_links/show.html.haml +0 -2
  198. data/app/views/external_links/show.js.haml +0 -3
  199. data/app/views/external_links/update.js.haml +0 -3
  200. data/app/views/feedback_mailer/submit_feedback.html.haml +0 -22
  201. data/app/views/feedbacks/_form.html.haml +0 -37
  202. data/app/views/feedbacks/index.html.haml +0 -27
  203. data/app/views/feedbacks/new.html.haml +0 -6
  204. data/app/views/feedbacks/show.html.haml +0 -19
  205. data/app/views/forum_messages/_form.html.haml +0 -6
  206. data/app/views/forum_messages/index.html.haml +0 -11
  207. data/app/views/forum_messages/new.html.haml +0 -5
  208. data/app/views/forums/_form.html.haml +0 -13
  209. data/app/views/forums/edit.html.haml +0 -7
  210. data/app/views/forums/index.html.haml +0 -23
  211. data/app/views/forums/new.html.haml +0 -5
  212. data/app/views/forums/show.html.haml +0 -20
  213. data/app/views/galleries/_form.html.haml +0 -30
  214. data/app/views/galleries/_show.html.haml +0 -21
  215. data/app/views/galleries/edit.html.haml +0 -7
  216. data/app/views/galleries/index.html.haml +0 -15
  217. data/app/views/galleries/new.html.haml +0 -5
  218. data/app/views/galleries/show.html.haml +0 -4
  219. data/app/views/images/_form.html.haml +0 -10
  220. data/app/views/images/create.js.haml +0 -3
  221. data/app/views/images/destroy.js.haml +0 -3
  222. data/app/views/images/edit.html.haml +0 -7
  223. data/app/views/images/edit.js.haml +0 -3
  224. data/app/views/images/index.html.haml +0 -17
  225. data/app/views/images/index.js.haml +0 -3
  226. data/app/views/images/new.html.haml +0 -5
  227. data/app/views/images/new.js.haml +0 -3
  228. data/app/views/images/show.html.haml +0 -5
  229. data/app/views/images/show.js.haml +0 -3
  230. data/app/views/images/update.js.haml +0 -3
  231. data/app/views/layouts/application.html.haml +0 -59
  232. data/app/views/layouts/bare.html.haml +0 -2
  233. data/app/views/layouts/image_dialog.html.haml +0 -18
  234. data/app/views/loadbehind/_destroy.js.haml +0 -3
  235. data/app/views/loadbehind/_edit.js.haml +0 -4
  236. data/app/views/loadbehind/_errors.html.haml +0 -5
  237. data/app/views/loadbehind/_growl_template.html.haml +0 -65
  238. data/app/views/loadbehind/_show_box.html.haml +0 -9
  239. data/app/views/loadbehind/_view.js.haml +0 -4
  240. data/app/views/loadbehind/growl.js.haml +0 -4
  241. data/app/views/loadbehind/index.js.haml +0 -4
  242. data/app/views/menus/_form.html.haml +0 -13
  243. data/app/views/menus/edit.html.haml +0 -7
  244. data/app/views/menus/index.html.haml +0 -19
  245. data/app/views/menus/new.html.haml +0 -5
  246. data/app/views/menus/show.html.haml +0 -7
  247. data/app/views/pages/_child_pages_links.html.haml +0 -5
  248. data/app/views/pages/_control_panel.html.haml +0 -15
  249. data/app/views/pages/_form.html.haml +0 -27
  250. data/app/views/pages/_form_fields.html.haml +0 -23
  251. data/app/views/pages/_show.html.haml +0 -4
  252. data/app/views/pages/_show_attachment.html.haml +0 -6
  253. data/app/views/pages/_show_small.html.haml +0 -2
  254. data/app/views/pages/create.js.haml +0 -3
  255. data/app/views/pages/destroy.js.haml +0 -3
  256. data/app/views/pages/edit.html.haml +0 -16
  257. data/app/views/pages/edit.js.haml +0 -4
  258. data/app/views/pages/index.html.haml +0 -19
  259. data/app/views/pages/index.js.haml +0 -3
  260. data/app/views/pages/new.html.haml +0 -5
  261. data/app/views/pages/new.js.haml +0 -3
  262. data/app/views/pages/show.html.haml +0 -20
  263. data/app/views/pages/show.js.haml +0 -3
  264. data/app/views/pages/update.js.haml +0 -3
  265. data/app/views/profiles/_form.html.haml +0 -26
  266. data/app/views/profiles/edit.html.haml +0 -7
  267. data/app/views/profiles/index.html.haml +0 -25
  268. data/app/views/profiles/new.html.haml +0 -5
  269. data/app/views/profiles/show.html.haml +0 -21
  270. data/app/views/sitemaps/edit.html.haml +0 -12
  271. data/app/views/sitemaps/edit.js.erb +0 -0
  272. data/app/views/sitemaps/index.html.haml +0 -83
  273. data/app/views/sitemaps/index.json.erb +0 -23
  274. data/app/views/sitemaps/new.html.haml +0 -8
  275. data/app/views/sitemaps/new.js.erb +0 -0
  276. data/app/views/users/edit.html.haml +0 -45
  277. data/app/views/users/index.html.haml +0 -19
  278. data/config/amazon_s3.yml +0 -15
  279. data/db/migrate/0000_devise_create_users.rb +0 -26
  280. data/db/migrate/0010_add_fields_to_users.rb +0 -28
  281. data/db/migrate/0020_create_blogs.rb +0 -16
  282. data/db/migrate/0030_create_galleries.rb +0 -15
  283. data/db/migrate/0040_create_images.rb +0 -17
  284. data/db/migrate/0050_create_profiles.rb +0 -24
  285. data/db/migrate/0060_insert_admin_user_and_roles.rb +0 -24
  286. data/db/migrate/0070_create_pages.rb +0 -16
  287. data/db/migrate/0080_create_forums.rb +0 -13
  288. data/db/migrate/0090_create_discussions.rb +0 -14
  289. data/db/migrate/0100_create_forum_messages.rb +0 -15
  290. data/db/migrate/0110_create_access_control_entries.rb +0 -23
  291. data/db/migrate/0120_create_attachments.rb +0 -17
  292. data/db/migrate/0130_create_roles.rb +0 -13
  293. data/db/migrate/0140_create_feedbacks.rb +0 -20
  294. data/db/migrate/0150_create_external_links.rb +0 -14
  295. data/db/migrate/0160_create_sitemaps.rb +0 -17
  296. data/db/migrate/0170_create_menus.rb +0 -14
  297. data/db/migrate/0180_acts_as_taggable_on_migration.rb +0 -28
  298. data/init.rb +0 -2
@@ -0,0 +1,49 @@
1
+ require 'test_helper'
2
+
3
+ class MemberPagesControllerTest < ActionController::TestCase
4
+ setup do
5
+ @member_page = member_pages(:one)
6
+ end
7
+
8
+ test "should get index" do
9
+ get :index
10
+ assert_response :success
11
+ assert_not_nil assigns(:member_pages)
12
+ end
13
+
14
+ test "should get new" do
15
+ get :new
16
+ assert_response :success
17
+ end
18
+
19
+ test "should create member_page" do
20
+ assert_difference('MemberPage.count') do
21
+ post :create, :member_page => @member_page.attributes
22
+ end
23
+
24
+ assert_redirected_to member_page_path(assigns(:member_page))
25
+ end
26
+
27
+ test "should show member_page" do
28
+ get :show, :id => @member_page.to_param
29
+ assert_response :success
30
+ end
31
+
32
+ test "should get edit" do
33
+ get :edit, :id => @member_page.to_param
34
+ assert_response :success
35
+ end
36
+
37
+ test "should update member_page" do
38
+ put :update, :id => @member_page.to_param, :member_page => @member_page.attributes
39
+ assert_redirected_to member_page_path(assigns(:member_page))
40
+ end
41
+
42
+ test "should destroy member_page" do
43
+ assert_difference('MemberPage.count', -1) do
44
+ delete :destroy, :id => @member_page.to_param
45
+ end
46
+
47
+ assert_redirected_to member_pages_path
48
+ end
49
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class MembersControllerTest < ActionController::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,49 @@
1
+ require 'test_helper'
2
+
3
+ class MenusControllerTest < ActionController::TestCase
4
+ setup do
5
+ @menu = menus(:one)
6
+ end
7
+
8
+ test "should get index" do
9
+ get :index
10
+ assert_response :success
11
+ assert_not_nil assigns(:menus)
12
+ end
13
+
14
+ test "should get new" do
15
+ get :new
16
+ assert_response :success
17
+ end
18
+
19
+ test "should create menu" do
20
+ assert_difference('Menu.count') do
21
+ post :create, :menu => @menu.attributes
22
+ end
23
+
24
+ assert_redirected_to menu_path(assigns(:menu))
25
+ end
26
+
27
+ test "should show menu" do
28
+ get :show, :id => @menu.to_param
29
+ assert_response :success
30
+ end
31
+
32
+ test "should get edit" do
33
+ get :edit, :id => @menu.to_param
34
+ assert_response :success
35
+ end
36
+
37
+ test "should update menu" do
38
+ put :update, :id => @menu.to_param, :menu => @menu.attributes
39
+ assert_redirected_to menu_path(assigns(:menu))
40
+ end
41
+
42
+ test "should destroy menu" do
43
+ assert_difference('Menu.count', -1) do
44
+ delete :destroy, :id => @menu.to_param
45
+ end
46
+
47
+ assert_redirected_to menus_path
48
+ end
49
+ end
@@ -0,0 +1,49 @@
1
+ require 'test_helper'
2
+
3
+ class PagesControllerTest < ActionController::TestCase
4
+ setup do
5
+ @page = pages(:one)
6
+ end
7
+
8
+ test "should get index" do
9
+ get :index
10
+ assert_response :success
11
+ assert_not_nil assigns(:pages)
12
+ end
13
+
14
+ test "should get new" do
15
+ get :new
16
+ assert_response :success
17
+ end
18
+
19
+ test "should create page" do
20
+ assert_difference('Page.count') do
21
+ post :create, :page => @page.attributes
22
+ end
23
+
24
+ assert_redirected_to page_path(assigns(:page))
25
+ end
26
+
27
+ test "should show page" do
28
+ get :show, :id => @page.to_param
29
+ assert_response :success
30
+ end
31
+
32
+ test "should get edit" do
33
+ get :edit, :id => @page.to_param
34
+ assert_response :success
35
+ end
36
+
37
+ test "should update page" do
38
+ put :update, :id => @page.to_param, :page => @page.attributes
39
+ assert_redirected_to page_path(assigns(:page))
40
+ end
41
+
42
+ test "should destroy page" do
43
+ assert_difference('Page.count', -1) do
44
+ delete :destroy, :id => @page.to_param
45
+ end
46
+
47
+ assert_redirected_to pages_path
48
+ end
49
+ end
@@ -0,0 +1,49 @@
1
+ require 'test_helper'
2
+
3
+ class ProductRevisionsControllerTest < ActionController::TestCase
4
+ setup do
5
+ @product_revision = product_revisions(:one)
6
+ end
7
+
8
+ test "should get index" do
9
+ get :index
10
+ assert_response :success
11
+ assert_not_nil assigns(:product_revisions)
12
+ end
13
+
14
+ test "should get new" do
15
+ get :new
16
+ assert_response :success
17
+ end
18
+
19
+ test "should create product_revision" do
20
+ assert_difference('ProductRevision.count') do
21
+ post :create, :product_revision => @product_revision.attributes
22
+ end
23
+
24
+ assert_redirected_to product_revision_path(assigns(:product_revision))
25
+ end
26
+
27
+ test "should show product_revision" do
28
+ get :show, :id => @product_revision.to_param
29
+ assert_response :success
30
+ end
31
+
32
+ test "should get edit" do
33
+ get :edit, :id => @product_revision.to_param
34
+ assert_response :success
35
+ end
36
+
37
+ test "should update product_revision" do
38
+ put :update, :id => @product_revision.to_param, :product_revision => @product_revision.attributes
39
+ assert_redirected_to product_revision_path(assigns(:product_revision))
40
+ end
41
+
42
+ test "should destroy product_revision" do
43
+ assert_difference('ProductRevision.count', -1) do
44
+ delete :destroy, :id => @product_revision.to_param
45
+ end
46
+
47
+ assert_redirected_to product_revisions_path
48
+ end
49
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+ require 'rails/performance_test_help'
3
+
4
+ # Profiling results for each test method are written to tmp/performance.
5
+ class BrowsingTest < ActionDispatch::PerformanceTest
6
+ def test_homepage
7
+ get '/'
8
+ end
9
+ end
@@ -0,0 +1,13 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path('../../config/environment', __FILE__)
3
+ require 'rails/test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
7
+ #
8
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
9
+ # -- they do not yet inherit this setting
10
+ fixtures :all
11
+
12
+ # Add more helper methods to be used by all tests here...
13
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class AccessControlEntryTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class AppConfigTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class AttachmentTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class DiscussionTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class ExternalLinkTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class FeedbackTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class ForumMessageTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class ForumTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class AccessControlEntriesHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class AppConfigsHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class DiscussionsHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class ExternalLinksHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class FeedbacksHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class ForumsHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class LayoutsHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class MemberPagesHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class MembersHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class MenusHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class PagesHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class ProductRevisionsHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class LayoutTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class MemberPageTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class MenuTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class PageRevisionTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class PageTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class ProductRevisionTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class SettingsTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class SitemapTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class UserTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end