typus 1.0.0.pre8 → 1.0.0.pre9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (247) hide show
  1. data/CHANGELOG +4 -6
  2. data/Gemfile +16 -13
  3. data/Gemfile.lock +26 -2
  4. data/Rakefile +2 -3
  5. data/app/controllers/admin/base_controller.rb +3 -5
  6. data/app/controllers/admin/resources_controller.rb +24 -26
  7. data/app/helpers/admin/base_helper.rb +14 -22
  8. data/app/helpers/admin/dashboard_helper.rb +2 -5
  9. data/app/helpers/admin/filters_helper.rb +6 -8
  10. data/app/helpers/admin/form_helper.rb +3 -9
  11. data/app/helpers/admin/preview_helper.rb +4 -6
  12. data/app/helpers/admin/relationships_helper.rb +9 -11
  13. data/app/helpers/admin/resources_helper.rb +6 -24
  14. data/app/helpers/admin/search_helper.rb +1 -1
  15. data/app/helpers/admin/sidebar_helper.rb +12 -15
  16. data/app/helpers/admin/table_helper.rb +13 -13
  17. data/app/views/admin/dashboard/show.html.erb +1 -1
  18. data/app/views/admin/helpers/_apps.html.erb +4 -3
  19. data/app/views/admin/helpers/_header.html.erb +2 -2
  20. data/app/views/admin/helpers/dashboard/_applications.html.erb +3 -3
  21. data/app/views/admin/helpers/dashboard/_resources.html.erb +17 -13
  22. data/app/views/admin/helpers/filters/_filters.html.erb +9 -27
  23. data/app/views/admin/helpers/resources/_pagination.html.erb +8 -9
  24. data/app/views/admin/helpers/search/_search.html.erb +1 -1
  25. data/app/views/admin/mailer/reset_password_link.text.erb +3 -0
  26. data/app/views/admin/resources/_form.html.erb +4 -4
  27. data/app/views/admin/resources/edit.html.erb +2 -3
  28. data/app/views/admin/resources/index.html.erb +15 -13
  29. data/app/views/admin/resources/new.html.erb +2 -2
  30. data/app/views/admin/resources/show.html.erb +1 -2
  31. data/app/views/admin/templates/_boolean.html.erb +1 -1
  32. data/app/views/admin/templates/_has_many.html.erb +2 -4
  33. data/app/views/admin/templates/_has_n.html.erb +1 -1
  34. data/app/views/admin/templates/_selector.html.erb +0 -1
  35. data/app/views/admin/templates/_string.html.erb +1 -1
  36. data/app/views/layouts/admin/session.html.erb +1 -1
  37. data/config/available_locales/ca.yml +3 -5
  38. data/config/available_locales/de.yml +2 -4
  39. data/config/available_locales/es.yml +2 -4
  40. data/config/available_locales/fr.yml +40 -39
  41. data/config/available_locales/fr_models.yml +2 -2
  42. data/config/available_locales/hu.yml +3 -5
  43. data/config/available_locales/it.yml +0 -4
  44. data/config/available_locales/language.yml.template +2 -4
  45. data/config/available_locales/pt-BR.yml +2 -4
  46. data/config/available_locales/ru.yml +2 -4
  47. data/config/routes.rb +1 -0
  48. data/lib/generators/templates/config/initializers/typus.rb +5 -5
  49. data/lib/generators/templates/config/initializers/typus_authentication.rb +5 -5
  50. data/lib/generators/templates/config/initializers/typus_resources.rb +7 -7
  51. data/lib/generators/templates/config/typus/README +11 -13
  52. data/lib/generators/templates/controller.rb +0 -2
  53. data/lib/generators/templates/functional_test.rb +4 -15
  54. data/lib/generators/typus/migration_generator.rb +0 -1
  55. data/lib/support/active_record.rb +18 -9
  56. data/lib/support/fake_user.rb +42 -0
  57. data/lib/support/object.rb +1 -0
  58. data/lib/support/string.rb +0 -32
  59. data/lib/tasks/typus.rake +0 -8
  60. data/lib/typus.rb +34 -18
  61. data/lib/typus/authentication/base.rb +26 -0
  62. data/lib/typus/authentication/http_basic.rb +22 -0
  63. data/lib/typus/authentication/none.rb +19 -0
  64. data/lib/typus/authentication/session.rb +190 -0
  65. data/lib/typus/format.rb +12 -19
  66. data/lib/typus/orm/active_record.rb +13 -51
  67. data/lib/typus/resources.rb +0 -9
  68. data/lib/typus/version.rb +1 -1
  69. data/test/factories.rb +43 -0
  70. data/test/fixtures/rails_app/app/controllers/application_controller.rb +0 -1
  71. data/test/fixtures/rails_app/app/models/page.rb +0 -4
  72. data/test/fixtures/rails_app/config/application.rb +6 -3
  73. data/test/fixtures/rails_app/config/database.yml +12 -20
  74. data/test/fixtures/rails_app/config/typus/application.yml +4 -8
  75. data/test/fixtures/rails_app/db/test.sqlite3 +0 -0
  76. data/test/fixtures/rails_app/log/test.log +227115 -0
  77. data/test/fixtures/rails_app/tmp/export-posts-20101012213057.csv +2 -0
  78. data/test/fixtures/rails_app/tmp/export-posts-20101012213132.csv +2 -0
  79. data/test/fixtures/rails_app/tmp/export-posts-20101012213234.csv +2 -0
  80. data/test/fixtures/rails_app/tmp/export-posts-20101012213506.csv +2 -0
  81. data/test/fixtures/rails_app/tmp/export-posts-20101012215057.csv +2 -0
  82. data/test/fixtures/rails_app/tmp/export-posts-20101012215217.csv +2 -0
  83. data/test/fixtures/rails_app/tmp/export-posts-20101012215415.csv +2 -0
  84. data/test/fixtures/rails_app/tmp/export-posts-20101012215443.csv +2 -0
  85. data/test/fixtures/rails_app/tmp/export-posts-20101012215509.csv +2 -0
  86. data/test/fixtures/rails_app/tmp/export-posts-20101012215528.csv +2 -0
  87. data/test/fixtures/rails_app/tmp/export-posts-20101012215551.csv +2 -0
  88. data/test/fixtures/rails_app/tmp/export-posts-20101012215615.csv +2 -0
  89. data/test/fixtures/rails_app/tmp/export-posts-20101012215640.csv +2 -0
  90. data/test/fixtures/rails_app/tmp/export-posts-20101012215714.csv +2 -0
  91. data/test/fixtures/rails_app/tmp/export-posts-20101012215744.csv +2 -0
  92. data/test/fixtures/rails_app/tmp/export-posts-20101012215814.csv +2 -0
  93. data/test/fixtures/rails_app/tmp/export-posts-20101012215836.csv +2 -0
  94. data/test/fixtures/rails_app/tmp/export-posts-20101012215906.csv +2 -0
  95. data/test/fixtures/rails_app/tmp/export-posts-20101012220659.csv +2 -0
  96. data/test/fixtures/rails_app/tmp/export-posts-20101012221043.csv +2 -0
  97. data/test/fixtures/rails_app/tmp/export-posts-20101012221258.csv +2 -0
  98. data/test/fixtures/rails_app/tmp/export-posts-20101012222558.csv +2 -0
  99. data/test/fixtures/rails_app/tmp/export-posts-20101012222752.csv +2 -0
  100. data/test/fixtures/rails_app/tmp/export-posts-20101012222848.csv +2 -0
  101. data/test/fixtures/rails_app/tmp/export-posts-20101012223433.csv +2 -0
  102. data/test/fixtures/rails_app/tmp/export-posts-20101012223535.csv +2 -0
  103. data/test/fixtures/rails_app/tmp/export-posts-20101012224003.csv +2 -0
  104. data/test/fixtures/rails_app/tmp/export-posts-20101012224052.csv +2 -0
  105. data/test/fixtures/rails_app/tmp/export-posts-20101012224109.csv +2 -0
  106. data/test/fixtures/rails_app/tmp/export-posts-20101012224139.csv +2 -0
  107. data/test/fixtures/rails_app/tmp/export-posts-20101012224205.csv +2 -0
  108. data/test/fixtures/rails_app/tmp/export-posts-20101012224243.csv +2 -0
  109. data/test/fixtures/rails_app/tmp/export-posts-20101012225119.csv +2 -0
  110. data/test/fixtures/rails_app/tmp/export-posts-20101013063215.csv +2 -0
  111. data/test/fixtures/rails_app/tmp/export-posts-20101013063300.csv +2 -0
  112. data/test/fixtures/rails_app/tmp/export-posts-20101013063352.csv +2 -0
  113. data/test/fixtures/rails_app/tmp/export-posts-20101013063427.csv +2 -0
  114. data/test/fixtures/rails_app/tmp/export-posts-20101013063448.csv +2 -0
  115. data/test/fixtures/rails_app/tmp/export-posts-20101013063530.csv +2 -0
  116. data/test/fixtures/rails_app/tmp/export-posts-20101013063559.csv +2 -0
  117. data/test/fixtures/rails_app/tmp/export-posts-20101013063646.csv +2 -0
  118. data/test/fixtures/rails_app/tmp/export-posts-20101013063737.csv +2 -0
  119. data/test/fixtures/rails_app/tmp/export-posts-20101013063822.csv +2 -0
  120. data/test/fixtures/rails_app/tmp/export-posts-20101013063837.csv +2 -0
  121. data/test/fixtures/rails_app/tmp/export-posts-20101013063919.csv +2 -0
  122. data/test/fixtures/rails_app/tmp/export-posts-20101013063939.csv +2 -0
  123. data/test/fixtures/rails_app/tmp/export-posts-20101013063952.csv +2 -0
  124. data/test/fixtures/rails_app/tmp/export-posts-20101013064220.csv +2 -0
  125. data/test/fixtures/rails_app/tmp/export-posts-20101013064253.csv +2 -0
  126. data/test/fixtures/rails_app/tmp/export-posts-20101013064318.csv +2 -0
  127. data/test/fixtures/rails_app/tmp/export-posts-20101013064404.csv +2 -0
  128. data/test/fixtures/rails_app/tmp/export-posts-20101013064452.csv +2 -0
  129. data/test/fixtures/rails_app/tmp/export-posts-20101013064536.csv +2 -0
  130. data/test/fixtures/rails_app/tmp/export-posts-20101013064652.csv +2 -0
  131. data/test/fixtures/rails_app/tmp/export-posts-20101013064845.csv +2 -0
  132. data/test/fixtures/rails_app/tmp/export-posts-20101013065023.csv +2 -0
  133. data/test/fixtures/rails_app/tmp/export-posts-20101013065137.csv +2 -0
  134. data/test/fixtures/rails_app/tmp/export-posts-20101013065713.csv +2 -0
  135. data/test/fixtures/rails_app/tmp/export-posts-20101013065954.csv +2 -0
  136. data/test/fixtures/rails_app/tmp/export-posts-20101013070057.csv +2 -0
  137. data/test/fixtures/rails_app/tmp/export-posts-20101013070116.csv +2 -0
  138. data/test/fixtures/rails_app/tmp/export-posts-20101013070156.csv +2 -0
  139. data/test/fixtures/rails_app/tmp/export-posts-20101013070349.csv +2 -0
  140. data/test/fixtures/rails_app/tmp/export-posts-20101013070429.csv +2 -0
  141. data/test/fixtures/rails_app/tmp/export-posts-20101013070448.csv +2 -0
  142. data/test/fixtures/rails_app/tmp/export-posts-20101013070514.csv +2 -0
  143. data/test/fixtures/rails_app/tmp/export-posts-20101013070709.csv +2 -0
  144. data/test/fixtures/rails_app/tmp/export-posts-20101013070745.csv +2 -0
  145. data/test/fixtures/rails_app/tmp/export-posts-20101013070809.csv +2 -0
  146. data/test/fixtures/rails_app/tmp/export-posts-20101013070905.csv +2 -0
  147. data/test/fixtures/rails_app/tmp/export-posts-20101013070955.csv +2 -0
  148. data/test/fixtures/rails_app/tmp/export-posts-20101013071116.csv +2 -0
  149. data/test/fixtures/rails_app/tmp/export-posts-20101013071209.csv +2 -0
  150. data/test/fixtures/rails_app/tmp/export-posts-20101013071335.csv +2 -0
  151. data/test/fixtures/rails_app/tmp/export-posts-20101013071632.csv +2 -0
  152. data/test/fixtures/rails_app/tmp/export-posts-20101013071643.csv +2 -0
  153. data/test/fixtures/rails_app/tmp/export-posts-20101013071735.csv +2 -0
  154. data/test/fixtures/rails_app/tmp/export-posts-20101013071749.csv +2 -0
  155. data/test/fixtures/rails_app/tmp/export-posts-20101013072030.csv +2 -0
  156. data/test/fixtures/rails_app/tmp/export-posts-20101013072050.csv +2 -0
  157. data/test/fixtures/rails_app/tmp/export-posts-20101013072108.csv +2 -0
  158. data/test/fixtures/rails_app/tmp/export-posts-20101013072713.csv +2 -0
  159. data/test/fixtures/rails_app/tmp/export-posts-20101013072751.csv +2 -0
  160. data/test/fixtures/rails_app/tmp/export-posts-20101013072912.csv +2 -0
  161. data/test/fixtures/rails_app/tmp/export-posts-20101013074546.csv +2 -0
  162. data/test/fixtures/rails_app/tmp/export-posts-20101018180512.csv +2 -0
  163. data/test/fixtures/rails_app/tmp/export-posts-20101018183359.csv +2 -0
  164. data/test/fixtures/rails_app/tmp/export-posts-20101018183608.csv +2 -0
  165. data/test/fixtures/rails_app/tmp/export-posts-20101018183759.csv +2 -0
  166. data/test/functional/admin/account_controller_test.rb +1 -1
  167. data/test/functional/admin/{resources_controller_assets_relationships.rb → assets_controller_test.rb} +12 -16
  168. data/test/functional/admin/categories_controller_test.rb +62 -0
  169. data/test/functional/admin/{resources_controller_comments_toggle_test.rb → comments_controller_test.rb} +0 -0
  170. data/test/functional/admin/dashboard_controller_test.rb +34 -2
  171. data/test/functional/admin/posts_controller_test.rb +548 -0
  172. data/test/functional/admin/session_controller_test.rb +2 -2
  173. data/test/functional/admin/{resources_controller_tableless_resource_test.rb → status_controller_test.rb} +0 -0
  174. data/test/functional/admin/{resources_controller_typus_users_test.rb → typus_users_controller_test.rb} +2 -2
  175. data/test/helpers/admin/base_helper_test.rb +35 -37
  176. data/test/helpers/admin/dashboard_helper_test.rb +4 -8
  177. data/test/helpers/admin/form_helper_test.rb +9 -34
  178. data/test/helpers/admin/resources_helper_test.rb +28 -16
  179. data/test/helpers/admin/sidebar_helper_test.rb +14 -27
  180. data/test/helpers/admin/table_helper_test.rb +24 -68
  181. data/test/integration/login_test.rb +13 -0
  182. data/test/integration_test_helper.rb +21 -0
  183. data/test/lib/support/active_record_test.rb +72 -21
  184. data/test/lib/support/array_test.rb +2 -6
  185. data/test/lib/support/string_test.rb +21 -30
  186. data/test/lib/typus/active_record_test.rb +162 -100
  187. data/test/lib/typus/resource_test.rb +2 -3
  188. data/test/lib/typus_test.rb +25 -22
  189. data/test/test_helper.rb +4 -17
  190. data/test/unit/admin/mailer_test.rb +2 -2
  191. data/test/unit/typus_user_roles_test.rb +23 -23
  192. data/test/unit/typus_user_test.rb +30 -24
  193. data/typus.gemspec +0 -1
  194. metadata +111 -60
  195. data/app/models/admin/fake_user.rb +0 -46
  196. data/lib/generators/templates/model.yml +0 -10
  197. data/lib/typus/authentication.rb +0 -241
  198. data/lib/vendor/paginator.rb +0 -143
  199. data/test/factories/assets.rb +0 -5
  200. data/test/factories/categories.rb +0 -3
  201. data/test/factories/comments.rb +0 -6
  202. data/test/factories/pages.rb +0 -5
  203. data/test/factories/pictures.rb +0 -7
  204. data/test/factories/posts.rb +0 -6
  205. data/test/factories/typus_users.rb +0 -8
  206. data/test/fixtures/rails_app/README +0 -244
  207. data/test/fixtures/rails_app/app/helpers/application_helper.rb +0 -2
  208. data/test/fixtures/rails_app/app/views/layouts/application.html.erb +0 -14
  209. data/test/fixtures/rails_app/config/environments/development.rb +0 -19
  210. data/test/fixtures/rails_app/config/environments/production.rb +0 -42
  211. data/test/fixtures/rails_app/config/initializers/acts_as_list.rb +0 -258
  212. data/test/fixtures/rails_app/config/initializers/acts_as_tree.rb +0 -98
  213. data/test/fixtures/rails_app/config/initializers/backtrace_silencers.rb +0 -7
  214. data/test/fixtures/rails_app/config/initializers/inflections.rb +0 -10
  215. data/test/fixtures/rails_app/config/initializers/mime_types.rb +0 -5
  216. data/test/fixtures/rails_app/config/locales/en.yml +0 -5
  217. data/test/fixtures/rails_app/db/seeds.rb +0 -7
  218. data/test/fixtures/rails_app/public/404.html +0 -26
  219. data/test/fixtures/rails_app/public/422.html +0 -26
  220. data/test/fixtures/rails_app/public/500.html +0 -26
  221. data/test/fixtures/rails_app/public/favicon.ico +0 -0
  222. data/test/fixtures/rails_app/public/images/rails.png +0 -0
  223. data/test/fixtures/rails_app/public/index.html +0 -279
  224. data/test/fixtures/rails_app/public/javascripts/application.js +0 -2
  225. data/test/fixtures/rails_app/public/javascripts/controls.js +0 -965
  226. data/test/fixtures/rails_app/public/javascripts/dragdrop.js +0 -974
  227. data/test/fixtures/rails_app/public/javascripts/effects.js +0 -1123
  228. data/test/fixtures/rails_app/public/javascripts/prototype.js +0 -4874
  229. data/test/fixtures/rails_app/public/javascripts/rails.js +0 -118
  230. data/test/fixtures/rails_app/public/robots.txt +0 -5
  231. data/test/fixtures/rails_app/script/rails +0 -9
  232. data/test/functional/admin/dashboard_controller_http_basic_test.rb +0 -24
  233. data/test/functional/admin/dashboard_controller_none_test.rb +0 -18
  234. data/test/functional/admin/resources_controller_categories_before_test.rb +0 -10
  235. data/test/functional/admin/resources_controller_categories_lists_test.rb +0 -44
  236. data/test/functional/admin/resources_controller_categories_views_test.rb +0 -10
  237. data/test/functional/admin/resources_controller_posts_before_test.rb +0 -10
  238. data/test/functional/admin/resources_controller_posts_crud_custom_test.rb +0 -27
  239. data/test/functional/admin/resources_controller_posts_crud_test.rb +0 -44
  240. data/test/functional/admin/resources_controller_posts_formats_test.rb +0 -39
  241. data/test/functional/admin/resources_controller_posts_forms_test.rb +0 -58
  242. data/test/functional/admin/resources_controller_posts_permissions_test.rb +0 -100
  243. data/test/functional/admin/resources_controller_posts_relationships_test.rb +0 -91
  244. data/test/functional/admin/resources_controller_posts_roles.rb +0 -52
  245. data/test/functional/admin/resources_controller_posts_views_test.rb +0 -143
  246. data/test/lib/vendor/paginator_test.rb +0 -141
  247. data/typus-1.0.0.pre7.gem +0 -0
@@ -4,15 +4,14 @@ class ResourceTest < ActiveSupport::TestCase
4
4
 
5
5
  should "verify default resource configuration options" do
6
6
  assert_equal "edit", Typus::Resources.default_action_on_item
7
- assert Typus::Resources.end_year.nil?
7
+ assert_nil Typus::Resources.end_year
8
8
  assert_equal 15, Typus::Resources.form_rows
9
9
  assert_equal "edit", Typus::Resources.action_after_save
10
10
  assert_equal 5, Typus::Resources.minute_step
11
11
  assert_equal "nil", Typus::Resources.human_nil
12
12
  assert !Typus::Resources.only_user_items
13
13
  assert_equal 15, Typus::Resources.per_page
14
- assert Typus::Resources.start_year.nil?
15
- assert_equal 500, Typus::Resources.habtm_limit
14
+ assert_nil Typus::Resources.start_year
16
15
  end
17
16
 
18
17
  end
@@ -2,92 +2,95 @@ require "test_helper"
2
2
 
3
3
  class TypusTest < ActiveSupport::TestCase
4
4
 
5
- should "verify_default_config" do
5
+ should "verify default_config for admin_title" do
6
6
  assert_equal "Typus", Typus.admin_title
7
+ end
8
+
9
+ should "verify default_config for admin_sub_title" do
7
10
  assert Typus.admin_sub_title.kind_of?(String)
8
11
  end
9
12
 
10
- should "verify_default_config for authentication" do
13
+ should "verify default_config for authentication" do
11
14
  assert_equal :session, Typus.authentication
12
15
  end
13
16
 
14
- should "verify_default_config for mailer_sender" do
15
- assert Typus.mailer_sender.nil?
17
+ should "verify default_config for mailer_sender" do
18
+ assert_nil Typus.mailer_sender
16
19
  end
17
20
 
18
- should "verify_default_config for username" do
21
+ should "verify default_config for username" do
19
22
  assert_equal "admin", Typus.username
20
23
  end
21
24
 
22
- should "verify_default_config for password" do
25
+ should "verify default_config for password" do
23
26
  assert_equal "columbia", Typus.password
24
27
  end
25
28
 
26
- should "verify_default_config for file_preview" do
29
+ should "verify default_config for file_preview" do
27
30
  assert_equal :medium, Typus.file_preview
28
31
  end
29
32
 
30
- should "verify_default_config for file_thumbnail" do
33
+ should "verify default_config for file_thumbnail" do
31
34
  assert_equal :thumb, Typus.file_thumbnail
32
35
  end
33
36
 
34
- should "verify_default_config for relationship" do
37
+ should "verify default_config for relationship" do
35
38
  assert_equal "typus_users", Typus.relationship
36
39
  end
37
40
 
38
- should "verify_default_config for master_role" do
41
+ should "verify default_config for master_role" do
39
42
  assert_equal "admin", Typus.master_role
40
43
  end
41
44
 
42
- should "verify_default_config for user_class_name" do
45
+ should "verify default_config for user_class_name" do
43
46
  assert_equal "TypusUser", Typus.user_class_name
44
47
  end
45
48
 
46
- should "verify_default_config for typus_user_id" do
49
+ should "verify default_config for typus_user_id" do
47
50
  assert_equal "typus_user_id", Typus.user_fk
48
51
  end
49
52
 
50
- should "verify_default_config for available_locales" do
53
+ should "verify default_config for available_locales" do
51
54
  assert_equal [:en], Typus.available_locales
52
55
  end
53
56
 
54
- should "verify_config_folder_class" do
57
+ should "verify config_folder is a Pathname" do
55
58
  assert Typus.config_folder.kind_of?(Pathname)
56
59
  end
57
60
 
58
- should "return_root" do
61
+ should "return root" do
59
62
  expected = "."
60
63
  assert Typus.root.kind_of?(String)
61
64
  assert_equal expected, Typus.root
62
65
  end
63
66
 
64
- should "return_applications_and_should_be_sorted" do
67
+ should "return applications sorted" do
65
68
  assert Typus.respond_to?(:applications)
66
69
  assert Typus.applications.kind_of?(Array)
67
70
  assert_equal %w(Blog Site Typus), Typus.applications
68
71
  end
69
72
 
70
- should "return_modules_of_an_application" do
73
+ should "return modules of an application" do
71
74
  assert Typus.respond_to?(:application)
72
75
  assert_equal %w(Comment Picture Post), Typus.application("Blog")
73
76
  end
74
77
 
75
- should "return_models_and_should_be_sorted" do
78
+ should "return models and should be sorted" do
76
79
  assert Typus.respond_to?(:models)
77
80
  assert Typus.models.kind_of?(Array)
78
81
  assert_equal %w(Asset Category Comment CustomUser Page Picture Post TypusUser View), Typus.models
79
82
  end
80
83
 
81
- should "verify_resources_class_method" do
84
+ should "verify resources class_method" do
82
85
  assert Typus.respond_to?(:resources)
83
86
  assert_equal %w(Git Order Status WatchDog), Typus.resources
84
87
  end
85
88
 
86
- should "return_user_class" do
89
+ should "return user_class" do
87
90
  assert_equal TypusUser, Typus.user_class
88
91
  end
89
92
 
90
- should "return_overwritted_user_class" do
93
+ should "return overrided user_class" do
91
94
  Typus.expects(:user_class_name).returns("CustomUser")
92
95
  assert_equal CustomUser, Typus.user_class
93
96
  end
@@ -96,7 +99,7 @@ class TypusTest < ActiveSupport::TestCase
96
99
  assert_equal "typus_user_id", Typus.user_fk
97
100
  end
98
101
 
99
- should "return_overwritted_user_fk" do
102
+ should "return overrided user_fk" do
100
103
  Typus.expects(:user_fk).returns("my_user_fk")
101
104
  assert_equal "my_user_fk", Typus.user_fk
102
105
  end
data/test/test_helper.rb CHANGED
@@ -1,29 +1,16 @@
1
-
2
1
  ENV["RAILS_ENV"] = "test"
3
2
 
4
3
  # Boot rails application and testing parts ...
5
4
  require "fixtures/rails_app/config/environment"
6
5
  require "rails/test_help"
7
6
 
8
- # As we are simulating the application we need to reload the
9
- # configurations to get the custom paths.
10
- Typus.reload!
11
-
12
- # Different DB settings and load our schema.
13
- connection = case ENV["DB"]
14
- when "mysql"
15
- { :adapter => "mysql", :database => "typus_test" }
16
- when "postgresql"
17
- { :adapter => "postgresql", :database => "typus_test", :encoding => "unicode" }
18
- else
19
- { :adapter => "sqlite3", :database => ":memory:" }
20
- end
21
-
22
- ActiveRecord::Base.establish_connection(connection)
23
7
  load File.join(File.dirname(__FILE__), "schema.rb")
24
- Dir[File.join(File.dirname(__FILE__), "factories", "**","*.rb")].each { |factory| require factory }
8
+ require 'factories'
25
9
 
26
10
  class ActiveSupport::TestCase
27
11
  self.use_transactional_fixtures = true
28
12
  self.use_instantiated_fixtures = false
29
13
  end
14
+
15
+ # As we are mocking a Rails Application, we need to load configurations.
16
+ Typus.reload!
@@ -9,7 +9,7 @@ class Admin::MailerTest < ActiveSupport::TestCase
9
9
  end
10
10
 
11
11
  should "verify email from is nil by default" do
12
- assert Admin::Mailer.default[:from].nil?
12
+ assert_nil Admin::Mailer.default[:from]
13
13
  end
14
14
 
15
15
  should "verify email to is typus user email" do
@@ -21,7 +21,7 @@ class Admin::MailerTest < ActiveSupport::TestCase
21
21
  assert_equal expected, @email.subject
22
22
  end
23
23
 
24
- should "verify default email mime type" do
24
+ should "verify default email mime_type" do
25
25
  assert_equal "text/plain", @email.mime_type
26
26
  end
27
27
 
@@ -3,7 +3,7 @@ require "test_helper"
3
3
  class TypusUserRolesTest < ActiveSupport::TestCase
4
4
 
5
5
  should "get a list of roles" do
6
- roles = %w( admin designer editor )
6
+ roles = %w(admin designer editor)
7
7
  assert_equal roles, Typus::Configuration.roles.map(&:first).sort
8
8
  end
9
9
 
@@ -11,11 +11,11 @@ class TypusUserRolesTest < ActiveSupport::TestCase
11
11
 
12
12
  setup do
13
13
  @typus_user = Factory(:typus_user)
14
- @models = %w( Asset Category Comment Git Page Post Status TypusUser View WatchDog )
15
14
  end
16
15
 
17
16
  should "verify models access" do
18
- assert_equal @models, @typus_user.resources.map(&:first).sort
17
+ expected = %w(Asset Category Comment Git Page Post Status TypusUser View WatchDog)
18
+ assert_equal expected, @typus_user.resources.map(&:first).sort
19
19
  end
20
20
 
21
21
  should "verify resources without actions related are removed" do
@@ -23,8 +23,8 @@ class TypusUserRolesTest < ActiveSupport::TestCase
23
23
  end
24
24
 
25
25
  should "have access to all actions on models" do
26
- models = %w( Asset Category Comment Page Post TypusUser View )
27
- %w( create read update destroy ).each { |a| models.each { |m| assert @typus_user.can?(a, m) } }
26
+ models = %w(Asset Category Comment Page Post TypusUser View)
27
+ %w(create read update destroy).each { |a| models.each { |m| assert @typus_user.can?(a, m) } }
28
28
  end
29
29
 
30
30
  should "verify we can perform action on resource" do
@@ -48,28 +48,28 @@ class TypusUserRolesTest < ActiveSupport::TestCase
48
48
  end
49
49
 
50
50
  should "verify models access" do
51
- models = %w( Category Comment Git Post TypusUser View )
52
- assert_equal models, @typus_user.resources.map(&:first).sort
51
+ expected = %w(Category Comment Git Post TypusUser View)
52
+ assert_equal expected, @typus_user.resources.map(&:first).sort
53
53
  end
54
54
 
55
55
  should "only create, read and update categories" do
56
- %w( create read update ).each { |a| assert @typus_user.can?(a, 'Category') }
57
- %w( delete ).each { |a| assert @typus_user.cannot?(a, 'Category') }
56
+ %w(create read update).each { |a| assert @typus_user.can?(a, 'Category') }
57
+ %w(delete).each { |a| assert @typus_user.cannot?(a, 'Category') }
58
58
  end
59
59
 
60
60
  should "only create, read and update posts" do
61
- %w( create read update ).each { |a| assert @typus_user.can?(a, 'Post') }
62
- %w( delete ).each { |a| assert @typus_user.cannot?(a, 'Post') }
61
+ %w(create read update).each { |a| assert @typus_user.can?(a, 'Post') }
62
+ %w(delete).each { |a| assert @typus_user.cannot?(a, 'Post') }
63
63
  end
64
64
 
65
65
  should "only read, update and delete comments" do
66
- %w( read update delete ).each { |a| assert @typus_user.can?(a, 'Comment') }
67
- %w( create ).each { |a| assert @typus_user.cannot?(a, 'Comment') }
66
+ %w(read update delete).each { |a| assert @typus_user.can?(a, 'Comment') }
67
+ %w(create).each { |a| assert @typus_user.cannot?(a, 'Comment') }
68
68
  end
69
69
 
70
70
  should "only read and update typus_users" do
71
- %w( read update ).each { |a| assert @typus_user.can?(a, 'TypusUser') }
72
- %w( create delete ).each { |a| assert @typus_user.cannot?(a, 'TypusUser') }
71
+ %w(read update).each { |a| assert @typus_user.can?(a, 'TypusUser') }
72
+ %w(create delete).each { |a| assert @typus_user.cannot?(a, 'TypusUser') }
73
73
  end
74
74
 
75
75
  end
@@ -81,23 +81,23 @@ class TypusUserRolesTest < ActiveSupport::TestCase
81
81
  end
82
82
 
83
83
  should "verify models access" do
84
- models = %w( Category Comment Post )
85
- assert_equal models, @typus_user.resources.map(&:first).sort
84
+ expected = %w(Category Comment Post)
85
+ assert_equal expected, @typus_user.resources.map(&:first).sort
86
86
  end
87
87
 
88
88
  should "only read and update categories" do
89
- %w( read update ).each { |a| assert @typus_user.can?(a, 'Category') }
90
- %w( create delete ).each { |a| assert @typus_user.cannot?(a, 'Category') }
89
+ %w(read update).each { |a| assert @typus_user.can?(a, 'Category') }
90
+ %w(create delete).each { |a| assert @typus_user.cannot?(a, 'Category') }
91
91
  end
92
92
 
93
93
  should "only read comments" do
94
- %w( read ).each { |a| assert @typus_user.can?(a, 'Comment') }
95
- %w( create update delete ).each { |a| assert @typus_user.cannot?(a, 'Comment') }
94
+ %w(read).each { |a| assert @typus_user.can?(a, 'Comment') }
95
+ %w(create update delete).each { |a| assert @typus_user.cannot?(a, 'Comment') }
96
96
  end
97
97
 
98
98
  should "only read and update posts" do
99
- %w( read update ).each { |a| assert @typus_user.can?(a, 'Post') }
100
- %w( create delete ).each { |a| assert @typus_user.cannot?(a, 'Post') }
99
+ %w(read update).each { |a| assert @typus_user.can?(a, 'Post') }
100
+ %w(create delete).each { |a| assert @typus_user.cannot?(a, 'Post') }
101
101
  end
102
102
 
103
103
  end
@@ -3,11 +3,18 @@ require "test_helper"
3
3
  class TypusUserTest < ActiveSupport::TestCase
4
4
 
5
5
  [ %Q(this_is_chelm@example.com\n<script>location.href="http://spammersite.com"</script>),
6
- 'admin', 'TEST@EXAMPLE.COM', 'test@example', 'test@example.c', 'testexample.com' ].each do |value|
6
+ 'admin',
7
+ 'TEST@EXAMPLE.COM',
8
+ 'test@example',
9
+ 'test@example.c',
10
+ 'testexample.com' ].each do |value|
7
11
  should_not allow_value(value).for(:email)
8
12
  end
9
13
 
10
- [ 'test+filter@example.com', 'test.filter@example.com', 'test@example.co.uk', 'test@example.es' ].each do |value|
14
+ [ 'test+filter@example.com',
15
+ 'test.filter@example.com',
16
+ 'test@example.co.uk',
17
+ 'test@example.es' ].each do |value|
11
18
  should allow_value(value).for(:email)
12
19
  end
13
20
 
@@ -20,7 +27,7 @@ class TypusUserTest < ActiveSupport::TestCase
20
27
  # should validate_uniqueness_of :email
21
28
 
22
29
  should "verify columns" do
23
- attributes = %w( id first_name last_name email role status salt crypted_password token preferences created_at updated_at )
30
+ attributes = %w(id first_name last_name email role status salt crypted_password token preferences created_at updated_at)
24
31
  TypusUser.columns.collect { |u| u.name }.each { |c| assert attributes.include?(c) }
25
32
  end
26
33
 
@@ -29,6 +36,10 @@ class TypusUserTest < ActiveSupport::TestCase
29
36
  assert TypusUser.generate(:email => 'demo@example.com', :password => 'XXXXXXXX', :role => 'admin').valid?
30
37
  end
31
38
 
39
+ ##############################################################################
40
+ #
41
+ ##############################################################################
42
+
32
43
  context "TypusUser" do
33
44
 
34
45
  setup do
@@ -40,8 +51,8 @@ class TypusUserTest < ActiveSupport::TestCase
40
51
  end
41
52
 
42
53
  should "return first_name" do
43
- @typus_user.last_name = "Lock"
44
- assert_equal "Lock", @typus_user.name
54
+ @typus_user.first_name = "John"
55
+ assert_equal "John", @typus_user.name
45
56
  end
46
57
 
47
58
  should "return last_name" do
@@ -60,39 +71,33 @@ class TypusUserTest < ActiveSupport::TestCase
60
71
  assert_equal expected, @typus_user.salt
61
72
  end
62
73
 
63
- should "verify authenticated? returns true when password is right" do
74
+ should "verify authenticated? returns true or false" do
64
75
  assert @typus_user.authenticated?('12345678')
65
- end
66
-
67
- should "verify authenticated? returns false when password is wrong" do
68
76
  assert !@typus_user.authenticated?('87654321')
69
77
  end
70
78
 
71
- should "verify can? (with a model as a param)" do
79
+ should "verify can? and cannot?" do
72
80
  assert @typus_user.can?('delete', TypusUser)
73
- end
74
-
75
- should "verify can? (with a string as a param)" do
76
81
  assert @typus_user.can?('delete', 'TypusUser')
77
- end
78
82
 
79
- should "verify cannot?" do
83
+ assert !@typus_user.cannot?('delete', TypusUser)
80
84
  assert !@typus_user.cannot?('delete', 'TypusUser')
81
85
  end
82
86
 
83
87
  end
84
88
 
89
+ ##############################################################################
90
+ #
91
+ ##############################################################################
92
+
85
93
  context "Admin Role" do
86
94
 
87
95
  setup do
88
- @typus_user = Factory(:typus_user, :role => "admin")
96
+ @typus_user = Factory(:typus_user)
89
97
  end
90
98
 
91
- should "respond true to is_root?" do
99
+ should "respond true and false to is_root? and is_not_root?" do
92
100
  assert @typus_user.is_root?
93
- end
94
-
95
- should "respond false to is_not_root?" do
96
101
  assert !@typus_user.is_not_root?
97
102
  end
98
103
 
@@ -108,17 +113,18 @@ class TypusUserTest < ActiveSupport::TestCase
108
113
 
109
114
  end
110
115
 
116
+ ##############################################################################
117
+ #
118
+ ##############################################################################
119
+
111
120
  context "Editor Role" do
112
121
 
113
122
  setup do
114
123
  @typus_user = Factory(:typus_user, :role => "editor")
115
124
  end
116
125
 
117
- should "respond true to is_no_root?" do
126
+ should "respond true and false to is_no_root? and is_root?" do
118
127
  assert @typus_user.is_not_root?
119
- end
120
-
121
- should "respond false to is_root?" do
122
128
  assert !@typus_user.is_root?
123
129
  end
124
130
 
data/typus.gemspec CHANGED
@@ -22,5 +22,4 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.files = Dir.glob("**/*")
24
24
  s.require_path = "lib"
25
-
26
25
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typus
3
3
  version: !ruby/object:Gem::Version
4
+ hash: -1876988184
4
5
  prerelease: true
5
6
  segments:
6
7
  - 1
7
8
  - 0
8
9
  - 0
9
- - pre8
10
- version: 1.0.0.pre8
10
+ - pre9
11
+ version: 1.0.0.pre9
11
12
  platform: ruby
12
13
  authors:
13
14
  - Francesc Esplugas
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-09-29 00:00:00 +02:00
19
+ date: 2010-10-18 00:00:00 +02:00
19
20
  default_executable:
20
21
  dependencies: []
21
22
 
@@ -46,7 +47,6 @@ files:
46
47
  - app/helpers/admin/sidebar_helper.rb
47
48
  - app/helpers/admin/table_helper.rb
48
49
  - app/mailers/admin/mailer.rb
49
- - app/models/admin/fake_user.rb
50
50
  - app/views/admin/account/forgot_password.html.erb
51
51
  - app/views/admin/account/new.html.erb
52
52
  - app/views/admin/dashboard/_sidebar.html.erb
@@ -127,7 +127,6 @@ files:
127
127
  - lib/generators/templates/functional_test.rb
128
128
  - lib/generators/templates/migration.rb
129
129
  - lib/generators/templates/model.rb
130
- - lib/generators/templates/model.yml
131
130
  - lib/generators/templates/public/admin/images/ui-icons.png
132
131
  - lib/generators/templates/public/admin/javascripts/application.js
133
132
  - lib/generators/templates/public/admin/javascripts/jquery-1.4.2.min.js
@@ -166,11 +165,15 @@ files:
166
165
  - lib/generators/typus/views_generator.rb
167
166
  - lib/support/active_record.rb
168
167
  - lib/support/array.rb
168
+ - lib/support/fake_user.rb
169
169
  - lib/support/hash.rb
170
170
  - lib/support/object.rb
171
171
  - lib/support/string.rb
172
172
  - lib/tasks/typus.rake
173
- - lib/typus/authentication.rb
173
+ - lib/typus/authentication/base.rb
174
+ - lib/typus/authentication/http_basic.rb
175
+ - lib/typus/authentication/none.rb
176
+ - lib/typus/authentication/session.rb
174
177
  - lib/typus/configuration.rb
175
178
  - lib/typus/engine.rb
176
179
  - lib/typus/format.rb
@@ -179,17 +182,10 @@ files:
179
182
  - lib/typus/user.rb
180
183
  - lib/typus/version.rb
181
184
  - lib/typus.rb
182
- - lib/vendor/paginator.rb
183
185
  - MIT-LICENSE
184
186
  - Rakefile
185
187
  - README.rdoc
186
- - test/factories/assets.rb
187
- - test/factories/categories.rb
188
- - test/factories/comments.rb
189
- - test/factories/pages.rb
190
- - test/factories/pictures.rb
191
- - test/factories/posts.rb
192
- - test/factories/typus_users.rb
188
+ - test/factories.rb
193
189
  - test/fixtures/config/broken/application.yml
194
190
  - test/fixtures/config/broken/application_roles.yml
195
191
  - test/fixtures/config/broken/empty.yml
@@ -223,7 +219,6 @@ files:
223
219
  - test/fixtures/rails_app/app/controllers/admin/typus_users_controller.rb
224
220
  - test/fixtures/rails_app/app/controllers/admin/watch_dog_controller.rb
225
221
  - test/fixtures/rails_app/app/controllers/application_controller.rb
226
- - test/fixtures/rails_app/app/helpers/application_helper.rb
227
222
  - test/fixtures/rails_app/app/models/asset.rb
228
223
  - test/fixtures/rails_app/app/models/category.rb
229
224
  - test/fixtures/rails_app/app/models/comment.rb
@@ -245,73 +240,129 @@ files:
245
240
  - test/fixtures/rails_app/app/views/admin/resources/_sidebar.html.erb
246
241
  - test/fixtures/rails_app/app/views/admin/status/index.html.erb
247
242
  - test/fixtures/rails_app/app/views/admin/templates/_datepicker.html.erb
248
- - test/fixtures/rails_app/app/views/layouts/application.html.erb
249
243
  - test/fixtures/rails_app/config/application.rb
250
244
  - test/fixtures/rails_app/config/boot.rb
251
245
  - test/fixtures/rails_app/config/database.yml
252
246
  - test/fixtures/rails_app/config/environment.rb
253
- - test/fixtures/rails_app/config/environments/development.rb
254
- - test/fixtures/rails_app/config/environments/production.rb
255
247
  - test/fixtures/rails_app/config/environments/test.rb
256
- - test/fixtures/rails_app/config/initializers/acts_as_list.rb
257
- - test/fixtures/rails_app/config/initializers/acts_as_tree.rb
258
- - test/fixtures/rails_app/config/initializers/backtrace_silencers.rb
259
- - test/fixtures/rails_app/config/initializers/inflections.rb
260
- - test/fixtures/rails_app/config/initializers/mime_types.rb
261
248
  - test/fixtures/rails_app/config/initializers/secret_token.rb
262
249
  - test/fixtures/rails_app/config/initializers/session_store.rb
263
250
  - test/fixtures/rails_app/config/initializers/typus.rb
264
- - test/fixtures/rails_app/config/locales/en.yml
265
251
  - test/fixtures/rails_app/config/routes.rb
266
252
  - test/fixtures/rails_app/config/typus/application.yml
267
253
  - test/fixtures/rails_app/config/typus/application_roles.yml
268
254
  - test/fixtures/rails_app/config/typus/typus.yml
269
255
  - test/fixtures/rails_app/config/typus/typus_roles.yml
270
256
  - test/fixtures/rails_app/config.ru
271
- - test/fixtures/rails_app/db/seeds.rb
272
- - test/fixtures/rails_app/public/404.html
273
- - test/fixtures/rails_app/public/422.html
274
- - test/fixtures/rails_app/public/500.html
275
- - test/fixtures/rails_app/public/favicon.ico
276
- - test/fixtures/rails_app/public/images/rails.png
277
- - test/fixtures/rails_app/public/index.html
278
- - test/fixtures/rails_app/public/javascripts/application.js
279
- - test/fixtures/rails_app/public/javascripts/controls.js
280
- - test/fixtures/rails_app/public/javascripts/dragdrop.js
281
- - test/fixtures/rails_app/public/javascripts/effects.js
282
- - test/fixtures/rails_app/public/javascripts/prototype.js
283
- - test/fixtures/rails_app/public/javascripts/rails.js
284
- - test/fixtures/rails_app/public/robots.txt
257
+ - test/fixtures/rails_app/db/test.sqlite3
258
+ - test/fixtures/rails_app/log/test.log
285
259
  - test/fixtures/rails_app/Rakefile
286
- - test/fixtures/rails_app/README
287
- - test/fixtures/rails_app/script/rails
260
+ - test/fixtures/rails_app/tmp/export-posts-20101012213057.csv
261
+ - test/fixtures/rails_app/tmp/export-posts-20101012213132.csv
262
+ - test/fixtures/rails_app/tmp/export-posts-20101012213234.csv
263
+ - test/fixtures/rails_app/tmp/export-posts-20101012213506.csv
264
+ - test/fixtures/rails_app/tmp/export-posts-20101012215057.csv
265
+ - test/fixtures/rails_app/tmp/export-posts-20101012215217.csv
266
+ - test/fixtures/rails_app/tmp/export-posts-20101012215415.csv
267
+ - test/fixtures/rails_app/tmp/export-posts-20101012215443.csv
268
+ - test/fixtures/rails_app/tmp/export-posts-20101012215509.csv
269
+ - test/fixtures/rails_app/tmp/export-posts-20101012215528.csv
270
+ - test/fixtures/rails_app/tmp/export-posts-20101012215551.csv
271
+ - test/fixtures/rails_app/tmp/export-posts-20101012215615.csv
272
+ - test/fixtures/rails_app/tmp/export-posts-20101012215640.csv
273
+ - test/fixtures/rails_app/tmp/export-posts-20101012215714.csv
274
+ - test/fixtures/rails_app/tmp/export-posts-20101012215744.csv
275
+ - test/fixtures/rails_app/tmp/export-posts-20101012215814.csv
276
+ - test/fixtures/rails_app/tmp/export-posts-20101012215836.csv
277
+ - test/fixtures/rails_app/tmp/export-posts-20101012215906.csv
278
+ - test/fixtures/rails_app/tmp/export-posts-20101012220659.csv
279
+ - test/fixtures/rails_app/tmp/export-posts-20101012221043.csv
280
+ - test/fixtures/rails_app/tmp/export-posts-20101012221258.csv
281
+ - test/fixtures/rails_app/tmp/export-posts-20101012222558.csv
282
+ - test/fixtures/rails_app/tmp/export-posts-20101012222752.csv
283
+ - test/fixtures/rails_app/tmp/export-posts-20101012222848.csv
284
+ - test/fixtures/rails_app/tmp/export-posts-20101012223433.csv
285
+ - test/fixtures/rails_app/tmp/export-posts-20101012223535.csv
286
+ - test/fixtures/rails_app/tmp/export-posts-20101012224003.csv
287
+ - test/fixtures/rails_app/tmp/export-posts-20101012224052.csv
288
+ - test/fixtures/rails_app/tmp/export-posts-20101012224109.csv
289
+ - test/fixtures/rails_app/tmp/export-posts-20101012224139.csv
290
+ - test/fixtures/rails_app/tmp/export-posts-20101012224205.csv
291
+ - test/fixtures/rails_app/tmp/export-posts-20101012224243.csv
292
+ - test/fixtures/rails_app/tmp/export-posts-20101012225119.csv
293
+ - test/fixtures/rails_app/tmp/export-posts-20101013063215.csv
294
+ - test/fixtures/rails_app/tmp/export-posts-20101013063300.csv
295
+ - test/fixtures/rails_app/tmp/export-posts-20101013063352.csv
296
+ - test/fixtures/rails_app/tmp/export-posts-20101013063427.csv
297
+ - test/fixtures/rails_app/tmp/export-posts-20101013063448.csv
298
+ - test/fixtures/rails_app/tmp/export-posts-20101013063530.csv
299
+ - test/fixtures/rails_app/tmp/export-posts-20101013063559.csv
300
+ - test/fixtures/rails_app/tmp/export-posts-20101013063646.csv
301
+ - test/fixtures/rails_app/tmp/export-posts-20101013063737.csv
302
+ - test/fixtures/rails_app/tmp/export-posts-20101013063822.csv
303
+ - test/fixtures/rails_app/tmp/export-posts-20101013063837.csv
304
+ - test/fixtures/rails_app/tmp/export-posts-20101013063919.csv
305
+ - test/fixtures/rails_app/tmp/export-posts-20101013063939.csv
306
+ - test/fixtures/rails_app/tmp/export-posts-20101013063952.csv
307
+ - test/fixtures/rails_app/tmp/export-posts-20101013064220.csv
308
+ - test/fixtures/rails_app/tmp/export-posts-20101013064253.csv
309
+ - test/fixtures/rails_app/tmp/export-posts-20101013064318.csv
310
+ - test/fixtures/rails_app/tmp/export-posts-20101013064404.csv
311
+ - test/fixtures/rails_app/tmp/export-posts-20101013064452.csv
312
+ - test/fixtures/rails_app/tmp/export-posts-20101013064536.csv
313
+ - test/fixtures/rails_app/tmp/export-posts-20101013064652.csv
314
+ - test/fixtures/rails_app/tmp/export-posts-20101013064845.csv
315
+ - test/fixtures/rails_app/tmp/export-posts-20101013065023.csv
316
+ - test/fixtures/rails_app/tmp/export-posts-20101013065137.csv
317
+ - test/fixtures/rails_app/tmp/export-posts-20101013065713.csv
318
+ - test/fixtures/rails_app/tmp/export-posts-20101013065954.csv
319
+ - test/fixtures/rails_app/tmp/export-posts-20101013070057.csv
320
+ - test/fixtures/rails_app/tmp/export-posts-20101013070116.csv
321
+ - test/fixtures/rails_app/tmp/export-posts-20101013070156.csv
322
+ - test/fixtures/rails_app/tmp/export-posts-20101013070349.csv
323
+ - test/fixtures/rails_app/tmp/export-posts-20101013070429.csv
324
+ - test/fixtures/rails_app/tmp/export-posts-20101013070448.csv
325
+ - test/fixtures/rails_app/tmp/export-posts-20101013070514.csv
326
+ - test/fixtures/rails_app/tmp/export-posts-20101013070709.csv
327
+ - test/fixtures/rails_app/tmp/export-posts-20101013070745.csv
328
+ - test/fixtures/rails_app/tmp/export-posts-20101013070809.csv
329
+ - test/fixtures/rails_app/tmp/export-posts-20101013070905.csv
330
+ - test/fixtures/rails_app/tmp/export-posts-20101013070955.csv
331
+ - test/fixtures/rails_app/tmp/export-posts-20101013071116.csv
332
+ - test/fixtures/rails_app/tmp/export-posts-20101013071209.csv
333
+ - test/fixtures/rails_app/tmp/export-posts-20101013071335.csv
334
+ - test/fixtures/rails_app/tmp/export-posts-20101013071632.csv
335
+ - test/fixtures/rails_app/tmp/export-posts-20101013071643.csv
336
+ - test/fixtures/rails_app/tmp/export-posts-20101013071735.csv
337
+ - test/fixtures/rails_app/tmp/export-posts-20101013071749.csv
338
+ - test/fixtures/rails_app/tmp/export-posts-20101013072030.csv
339
+ - test/fixtures/rails_app/tmp/export-posts-20101013072050.csv
340
+ - test/fixtures/rails_app/tmp/export-posts-20101013072108.csv
341
+ - test/fixtures/rails_app/tmp/export-posts-20101013072713.csv
342
+ - test/fixtures/rails_app/tmp/export-posts-20101013072751.csv
343
+ - test/fixtures/rails_app/tmp/export-posts-20101013072912.csv
344
+ - test/fixtures/rails_app/tmp/export-posts-20101013074546.csv
345
+ - test/fixtures/rails_app/tmp/export-posts-20101018180512.csv
346
+ - test/fixtures/rails_app/tmp/export-posts-20101018183359.csv
347
+ - test/fixtures/rails_app/tmp/export-posts-20101018183608.csv
348
+ - test/fixtures/rails_app/tmp/export-posts-20101018183759.csv
288
349
  - test/functional/admin/account_controller_test.rb
289
- - test/functional/admin/dashboard_controller_http_basic_test.rb
290
- - test/functional/admin/dashboard_controller_none_test.rb
350
+ - test/functional/admin/assets_controller_test.rb
351
+ - test/functional/admin/categories_controller_test.rb
352
+ - test/functional/admin/comments_controller_test.rb
291
353
  - test/functional/admin/dashboard_controller_test.rb
292
- - test/functional/admin/resources_controller_assets_relationships.rb
293
- - test/functional/admin/resources_controller_categories_before_test.rb
294
- - test/functional/admin/resources_controller_categories_lists_test.rb
295
- - test/functional/admin/resources_controller_categories_views_test.rb
296
- - test/functional/admin/resources_controller_comments_toggle_test.rb
297
- - test/functional/admin/resources_controller_posts_before_test.rb
298
- - test/functional/admin/resources_controller_posts_crud_custom_test.rb
299
- - test/functional/admin/resources_controller_posts_crud_test.rb
300
- - test/functional/admin/resources_controller_posts_formats_test.rb
301
- - test/functional/admin/resources_controller_posts_forms_test.rb
302
- - test/functional/admin/resources_controller_posts_permissions_test.rb
303
- - test/functional/admin/resources_controller_posts_relationships_test.rb
304
- - test/functional/admin/resources_controller_posts_roles.rb
305
- - test/functional/admin/resources_controller_posts_views_test.rb
306
- - test/functional/admin/resources_controller_tableless_resource_test.rb
307
- - test/functional/admin/resources_controller_typus_users_test.rb
354
+ - test/functional/admin/posts_controller_test.rb
308
355
  - test/functional/admin/session_controller_test.rb
356
+ - test/functional/admin/status_controller_test.rb
357
+ - test/functional/admin/typus_users_controller_test.rb
309
358
  - test/helpers/admin/base_helper_test.rb
310
359
  - test/helpers/admin/dashboard_helper_test.rb
311
360
  - test/helpers/admin/form_helper_test.rb
312
361
  - test/helpers/admin/resources_helper_test.rb
313
362
  - test/helpers/admin/sidebar_helper_test.rb
314
363
  - test/helpers/admin/table_helper_test.rb
364
+ - test/integration/login_test.rb
365
+ - test/integration_test_helper.rb
315
366
  - test/lib/support/active_record_test.rb
316
367
  - test/lib/support/array_test.rb
317
368
  - test/lib/support/hash_test.rb
@@ -321,13 +372,11 @@ files:
321
372
  - test/lib/typus/resource_test.rb
322
373
  - test/lib/typus/routes_test.rb
323
374
  - test/lib/typus_test.rb
324
- - test/lib/vendor/paginator_test.rb
325
375
  - test/schema.rb
326
376
  - test/test_helper.rb
327
377
  - test/unit/admin/mailer_test.rb
328
378
  - test/unit/typus_user_roles_test.rb
329
379
  - test/unit/typus_user_test.rb
330
- - typus-1.0.0.pre7.gem
331
380
  - typus.gemspec
332
381
  has_rdoc: true
333
382
  homepage: http://core.typuscms.com/
@@ -343,6 +392,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
343
392
  requirements:
344
393
  - - ">="
345
394
  - !ruby/object:Gem::Version
395
+ hash: 3
346
396
  segments:
347
397
  - 0
348
398
  version: "0"
@@ -351,6 +401,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
351
401
  requirements:
352
402
  - - ">="
353
403
  - !ruby/object:Gem::Version
404
+ hash: 23
354
405
  segments:
355
406
  - 1
356
407
  - 3