activeadmin 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activeadmin might be problematic. Click here for more details.

Files changed (255) hide show
  1. data/CHANGELOG.rdoc +15 -1
  2. data/Gemfile +41 -11
  3. data/LICENSE +5 -0
  4. data/README.rdoc +202 -87
  5. data/Rakefile +51 -15
  6. data/activeadmin.gemspec +310 -131
  7. data/cucumber.yml +1 -0
  8. data/features/comments/commenting.feature +81 -0
  9. data/features/comments/viewing_index.feature +19 -0
  10. data/features/edit_page.feature +77 -0
  11. data/features/first_boot.feature +16 -0
  12. data/features/global_navigation.feature +30 -0
  13. data/features/index/formats.feature +10 -0
  14. data/features/index/index_as_block.feature +15 -0
  15. data/features/index/index_as_blog.feature +50 -0
  16. data/features/index/index_as_grid.feature +45 -0
  17. data/features/index/index_as_table.feature +79 -0
  18. data/features/index/index_scopes.feature +52 -0
  19. data/features/index/pagination.feature +23 -0
  20. data/features/new_page.feature +75 -0
  21. data/features/registering_assets.feature +35 -0
  22. data/features/registering_resources.feature +33 -0
  23. data/features/show/default_content.feature +43 -0
  24. data/features/show/page_title.feature +33 -0
  25. data/features/sidebar_sections.feature +128 -0
  26. data/features/specifying_actions.feature +16 -0
  27. data/features/step_definitions/action_item_steps.rb +7 -0
  28. data/features/step_definitions/additional_web_steps.rb +67 -0
  29. data/features/step_definitions/asset_steps.rb +7 -0
  30. data/features/step_definitions/attribute_steps.rb +15 -0
  31. data/features/step_definitions/comment_steps.rb +8 -0
  32. data/features/step_definitions/configuration_steps.rb +31 -0
  33. data/features/step_definitions/factory_steps.rb +28 -0
  34. data/features/step_definitions/flash_steps.rb +3 -0
  35. data/features/step_definitions/format_steps.rb +7 -0
  36. data/features/step_definitions/index_scope_steps.rb +20 -0
  37. data/features/step_definitions/pagination_steps.rb +8 -0
  38. data/features/step_definitions/sidebar_steps.rb +11 -0
  39. data/features/step_definitions/tab_steps.rb +3 -0
  40. data/features/step_definitions/user_steps.rb +20 -0
  41. data/features/step_definitions/web_steps.rb +219 -0
  42. data/features/support/env.rb +88 -0
  43. data/features/support/paths.rb +48 -0
  44. data/features/users/logging_in.feature +34 -0
  45. data/features/users/logging_out.feature +13 -0
  46. data/lib/active_admin.rb +155 -79
  47. data/lib/active_admin/abstract_view_factory.rb +95 -0
  48. data/lib/active_admin/action_items.rb +4 -15
  49. data/lib/active_admin/arbre.rb +23 -0
  50. data/lib/active_admin/arbre/attributes.rb +20 -0
  51. data/lib/active_admin/arbre/class_list.rb +28 -0
  52. data/lib/active_admin/arbre/collection.rb +27 -0
  53. data/lib/active_admin/arbre/context.rb +8 -0
  54. data/lib/active_admin/arbre/core_extensions.rb +5 -0
  55. data/lib/active_admin/arbre/document.rb +42 -0
  56. data/lib/active_admin/arbre/element.rb +151 -0
  57. data/lib/active_admin/arbre/html.rb +84 -0
  58. data/lib/active_admin/arbre/html5_elements.rb +47 -0
  59. data/lib/active_admin/arbre/tag.rb +129 -0
  60. data/lib/active_admin/arbre/text_node.rb +35 -0
  61. data/lib/active_admin/callbacks.rb +87 -0
  62. data/lib/active_admin/comments.rb +73 -0
  63. data/lib/active_admin/comments/comment.rb +15 -0
  64. data/lib/active_admin/comments/configuration.rb +16 -0
  65. data/lib/active_admin/comments/namespace_helper.rb +14 -0
  66. data/lib/active_admin/comments/resource_helper.rb +17 -0
  67. data/lib/active_admin/comments/show_page_helper.rb +23 -0
  68. data/lib/active_admin/comments/views.rb +3 -0
  69. data/lib/active_admin/comments/views/active_admin_comment.rb +0 -0
  70. data/lib/active_admin/comments/views/active_admin_comments.rb +82 -0
  71. data/lib/active_admin/component.rb +22 -0
  72. data/lib/active_admin/controller_action.rb +12 -0
  73. data/lib/active_admin/dashboards.rb +0 -2
  74. data/lib/active_admin/dashboards/dashboard_controller.rb +10 -5
  75. data/lib/active_admin/dashboards/section.rb +5 -14
  76. data/lib/active_admin/devise.rb +43 -0
  77. data/lib/active_admin/dsl.rb +202 -0
  78. data/lib/active_admin/event.rb +31 -0
  79. data/lib/active_admin/form_builder.rb +68 -50
  80. data/lib/active_admin/iconic.rb +51 -0
  81. data/lib/active_admin/iconic/icons.rb +142 -0
  82. data/lib/active_admin/namespace.rb +102 -16
  83. data/lib/active_admin/renderer.rb +18 -3
  84. data/lib/active_admin/resource.rb +110 -9
  85. data/lib/active_admin/resource/belongs_to.rb +31 -0
  86. data/lib/active_admin/resource_controller.rb +45 -260
  87. data/lib/active_admin/resource_controller/action_builder.rb +21 -0
  88. data/lib/active_admin/resource_controller/actions.rb +53 -0
  89. data/lib/active_admin/resource_controller/callbacks.rb +47 -0
  90. data/lib/active_admin/resource_controller/collection.rb +142 -0
  91. data/lib/active_admin/resource_controller/filters.rb +58 -0
  92. data/lib/active_admin/resource_controller/form.rb +42 -0
  93. data/lib/active_admin/resource_controller/menu.rb +29 -0
  94. data/lib/active_admin/resource_controller/page_configurations.rb +53 -0
  95. data/lib/active_admin/resource_controller/scoping.rb +36 -0
  96. data/lib/active_admin/resource_controller/sidebars.rb +38 -0
  97. data/lib/active_admin/scope.rb +17 -0
  98. data/lib/active_admin/sidebar.rb +8 -47
  99. data/lib/active_admin/stylesheets/active_admin.scss +418 -0
  100. data/lib/active_admin/stylesheets/active_admin/_comments.scss +40 -0
  101. data/lib/active_admin/stylesheets/active_admin/_flash_messages.scss +13 -0
  102. data/lib/active_admin/stylesheets/active_admin/_forms.scss +168 -0
  103. data/lib/active_admin/stylesheets/active_admin/_header.scss +108 -0
  104. data/lib/active_admin/stylesheets/active_admin/_typography.scss +100 -0
  105. data/lib/active_admin/stylesheets/active_admin/mixins/_all.scss +8 -0
  106. data/lib/active_admin/stylesheets/active_admin/mixins/_buttons.scss +27 -0
  107. data/lib/active_admin/stylesheets/active_admin/mixins/_gradients.scss +21 -0
  108. data/lib/active_admin/stylesheets/active_admin/mixins/_icons.scss +20 -0
  109. data/lib/active_admin/stylesheets/active_admin/mixins/_reset.scss +165 -0
  110. data/lib/active_admin/stylesheets/active_admin/mixins/_rounded.scss +43 -0
  111. data/lib/active_admin/stylesheets/active_admin/mixins/_sections.scss +27 -0
  112. data/lib/active_admin/stylesheets/active_admin/mixins/_shadows.scss +21 -0
  113. data/lib/active_admin/stylesheets/active_admin/mixins/_variables.scss +12 -0
  114. data/lib/active_admin/version.rb +1 -1
  115. data/lib/active_admin/view_factory.rb +21 -0
  116. data/lib/active_admin/view_helpers.rb +17 -100
  117. data/lib/active_admin/view_helpers/assigns_with_indifferent_access_helper.rb +7 -0
  118. data/lib/active_admin/view_helpers/auto_link_helper.rb +41 -0
  119. data/lib/active_admin/view_helpers/breadcrumb_helper.rb +29 -0
  120. data/lib/active_admin/view_helpers/display_helper.rb +38 -0
  121. data/lib/active_admin/view_helpers/filter_form_helper.rb +174 -0
  122. data/lib/active_admin/view_helpers/form_helper.rb +12 -0
  123. data/lib/active_admin/view_helpers/icon_helper.rb +12 -0
  124. data/lib/active_admin/view_helpers/method_or_proc_helper.rb +26 -0
  125. data/lib/active_admin/view_helpers/renderer_helper.rb +29 -0
  126. data/lib/active_admin/view_helpers/sidebar_helper.rb +15 -0
  127. data/lib/active_admin/view_helpers/status_tag_helper.rb +13 -0
  128. data/lib/active_admin/view_helpers/table_helper.rb +12 -0
  129. data/lib/active_admin/view_helpers/title_helper.rb +11 -0
  130. data/lib/active_admin/view_helpers/view_factory_helper.rb +11 -0
  131. data/lib/active_admin/views.rb +8 -0
  132. data/lib/active_admin/views/action_items.rb +17 -0
  133. data/lib/active_admin/views/components/attributes_table.rb +66 -0
  134. data/lib/active_admin/views/components/columns.rb +49 -0
  135. data/lib/active_admin/views/components/paginated_collection.rb +74 -0
  136. data/lib/active_admin/views/components/panel.rb +26 -0
  137. data/lib/active_admin/views/components/scopes.rb +64 -0
  138. data/lib/active_admin/views/components/sidebar_section.rb +30 -0
  139. data/lib/active_admin/views/components/table_for.rb +174 -0
  140. data/lib/active_admin/views/dashboard_section_renderer.rb +19 -0
  141. data/lib/active_admin/views/header_renderer.rb +37 -0
  142. data/lib/active_admin/views/index_as_block.rb +24 -0
  143. data/lib/active_admin/views/index_as_blog.rb +89 -0
  144. data/lib/active_admin/views/index_as_grid.rb +49 -0
  145. data/lib/active_admin/views/index_as_table.rb +73 -0
  146. data/lib/active_admin/views/pages/base.rb +138 -0
  147. data/lib/active_admin/views/pages/dashboard.rb +61 -0
  148. data/lib/active_admin/views/pages/edit.rb +27 -0
  149. data/lib/active_admin/views/pages/index.rb +64 -0
  150. data/lib/active_admin/views/pages/new.rb +27 -0
  151. data/lib/active_admin/views/pages/show.rb +56 -0
  152. data/lib/active_admin/views/tabs_renderer.rb +52 -0
  153. data/lib/active_admin/views/templates/active_admin/devise/mailer/reset_password_instructions.html.erb +8 -0
  154. data/lib/active_admin/views/templates/active_admin/devise/mailer/unlock_instructions.html.erb +7 -0
  155. data/lib/active_admin/views/templates/active_admin/devise/passwords/edit.html.erb +16 -0
  156. data/lib/active_admin/views/templates/active_admin/devise/passwords/new.html.erb +14 -0
  157. data/lib/active_admin/views/templates/active_admin/devise/sessions/new.html.erb +18 -0
  158. data/lib/active_admin/views/templates/active_admin/devise/shared/_links.erb +20 -0
  159. data/lib/active_admin/views/templates/active_admin/devise/unlocks/new.html.erb +12 -0
  160. data/lib/active_admin/views/templates/active_admin_dashboard/index.html.arb +1 -0
  161. data/lib/active_admin/views/templates/active_admin_default/edit.html.arb +1 -0
  162. data/lib/active_admin/views/{active_admin_default → templates/active_admin_default}/index.csv.erb +0 -0
  163. data/lib/active_admin/views/templates/active_admin_default/index.html.arb +1 -0
  164. data/lib/active_admin/views/templates/active_admin_default/new.html.arb +1 -0
  165. data/lib/active_admin/views/templates/active_admin_default/show.html.arb +1 -0
  166. data/lib/active_admin/views/{layouts → templates/layouts}/active_admin.html.erb +3 -4
  167. data/lib/active_admin/views/templates/layouts/active_admin_logged_out.html.erb +31 -0
  168. data/lib/generators/active_admin/devise/devise_generator.rb +45 -0
  169. data/lib/generators/active_admin/install/install_generator.rb +18 -3
  170. data/lib/generators/active_admin/install/templates/active_admin.js +41 -0
  171. data/lib/generators/active_admin/install/templates/{active_admin.rb → active_admin.rb.erb} +33 -3
  172. data/lib/generators/active_admin/install/templates/active_admin_vendor.js +1 -1
  173. data/lib/generators/active_admin/install/templates/dashboards.rb +3 -4
  174. data/lib/generators/active_admin/install/templates/images/admin_notes_icon.png +0 -0
  175. data/lib/generators/active_admin/install/templates/images/loading.gif +0 -0
  176. data/lib/generators/active_admin/install/templates/images/nested_menu_arrow.gif +0 -0
  177. data/lib/generators/active_admin/install/templates/images/nested_menu_arrow_dark.gif +0 -0
  178. data/lib/generators/active_admin/install/templates/images/orderable.png +0 -0
  179. data/lib/generators/active_admin/install/templates/migrations/1_create_admin_notes.rb +16 -0
  180. data/lib/generators/active_admin/install/templates/migrations/2_move_admin_notes_to_comments.rb +25 -0
  181. data/spec/integration/belongs_to_spec.rb +42 -0
  182. data/spec/integration/index_as_table_spec.rb +0 -119
  183. data/spec/integration/layout_spec.rb +3 -37
  184. data/spec/spec_helper.rb +89 -50
  185. data/spec/support/integration_example_group.rb +37 -0
  186. data/spec/support/rails_template.rb +21 -9
  187. data/spec/support/rails_template_with_data.rb +32 -0
  188. data/spec/support/templates/cucumber.rb +28 -0
  189. data/spec/unit/abstract_view_factory_spec.rb +79 -0
  190. data/spec/unit/action_builder_spec.rb +19 -7
  191. data/spec/unit/action_items_spec.rb +16 -30
  192. data/spec/unit/active_admin_spec.rb +10 -22
  193. data/spec/unit/arbre/html/element_finder_methods_spec.rb +54 -0
  194. data/spec/unit/arbre/html/element_spec.rb +224 -0
  195. data/spec/unit/arbre/html/tag_attributes_spec.rb +61 -0
  196. data/spec/unit/arbre/html/tag_spec.rb +63 -0
  197. data/spec/unit/arbre/html_spec.rb +185 -0
  198. data/spec/unit/auto_link_spec.rb +38 -0
  199. data/spec/unit/belongs_to_spec.rb +44 -0
  200. data/spec/unit/breadcrumbs_spec.rb +110 -0
  201. data/spec/unit/comments_spec.rb +53 -0
  202. data/spec/unit/component_spec.rb +18 -0
  203. data/spec/unit/components/attributes_table_spec.rb +100 -0
  204. data/spec/unit/components/columns_spec.rb +75 -0
  205. data/spec/unit/components/panel_spec.rb +31 -0
  206. data/spec/unit/components/sidebar_section_spec.rb +37 -0
  207. data/spec/unit/components/table_for_spec.rb +130 -0
  208. data/spec/unit/dashboard_controller_spec.rb +26 -0
  209. data/spec/unit/dashboard_section_spec.rb +10 -17
  210. data/spec/unit/display_name_spec.rb +29 -0
  211. data/spec/unit/event_spec.rb +41 -0
  212. data/spec/unit/filter_form_builder_spec.rb +99 -77
  213. data/spec/unit/form_builder_spec.rb +69 -69
  214. data/spec/unit/namespace_spec.rb +61 -3
  215. data/spec/unit/pretty_format_spec.rb +35 -0
  216. data/spec/unit/registration_spec.rb +40 -1
  217. data/spec/unit/renderer_spec.rb +8 -0
  218. data/spec/unit/resource_controller_spec.rb +105 -6
  219. data/spec/unit/resource_spec.rb +78 -11
  220. data/spec/unit/routing_spec.rb +82 -6
  221. data/spec/unit/scope_spec.rb +31 -0
  222. data/spec/unit/tabs_renderer_spec.rb +24 -2
  223. data/spec/unit/view_factory_spec.rb +16 -0
  224. metadata +268 -82
  225. data/.gitignore +0 -25
  226. data/active_admin.gemspec +0 -22
  227. data/lib/active_admin/action_builder.rb +0 -60
  228. data/lib/active_admin/breadcrumbs.rb +0 -26
  229. data/lib/active_admin/dashboards/renderer.rb +0 -45
  230. data/lib/active_admin/dashboards/section_renderer.rb +0 -28
  231. data/lib/active_admin/filters.rb +0 -189
  232. data/lib/active_admin/pages.rb +0 -11
  233. data/lib/active_admin/pages/base.rb +0 -92
  234. data/lib/active_admin/pages/edit.rb +0 -21
  235. data/lib/active_admin/pages/index.rb +0 -58
  236. data/lib/active_admin/pages/index/blog.rb +0 -65
  237. data/lib/active_admin/pages/index/table.rb +0 -48
  238. data/lib/active_admin/pages/index/thumbnails.rb +0 -40
  239. data/lib/active_admin/pages/new.rb +0 -21
  240. data/lib/active_admin/pages/show.rb +0 -54
  241. data/lib/active_admin/table_builder.rb +0 -162
  242. data/lib/active_admin/tabs_renderer.rb +0 -39
  243. data/lib/active_admin/views/active_admin_dashboard/index.html.erb +0 -1
  244. data/lib/active_admin/views/active_admin_default/edit.html.erb +0 -1
  245. data/lib/active_admin/views/active_admin_default/index.html.erb +0 -1
  246. data/lib/active_admin/views/active_admin_default/new.html.erb +0 -1
  247. data/lib/active_admin/views/active_admin_default/show.html.erb +0 -1
  248. data/lib/generators/active_admin/install/templates/active_admin.css +0 -325
  249. data/lib/generators/active_admin/install/templates/images/orderable.gif +0 -0
  250. data/spec/integration/index_as_blog_spec.rb +0 -65
  251. data/spec/integration/index_as_thumbnails_spec.rb +0 -43
  252. data/spec/integration/new_view_spec.rb +0 -52
  253. data/spec/integration/show_view_spec.rb +0 -91
  254. data/spec/unit/sidebar_spec.rb +0 -96
  255. data/spec/unit/table_builder_spec.rb +0 -162
@@ -1,12 +1,88 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
2
 
3
3
  describe ActiveAdmin, "Routing" do
4
-
5
- subject { Admin::PostsController.new }
6
4
 
7
- it { should respond_to(:admin_posts_path) }
8
- it { should respond_to(:admin_post_path) }
9
- it { should respond_to(:new_admin_post_path) }
10
- it { should respond_to(:edit_admin_post_path) }
5
+ before :each do
6
+ load_defaults!
7
+ reload_routes!
8
+ end
9
+
10
+ include Rails.application.routes.url_helpers
11
+
12
+ describe "dashboard" do
13
+ context "when in admin namespace" do
14
+ it "should route the admin dashboard" do
15
+ admin_dashboard_path.should == "/admin"
16
+ end
17
+ end
18
+ context "when in root namespace" do
19
+ before(:each) do
20
+ load_resources { ActiveAdmin.register(Post, :namespace => false) }
21
+ end
22
+ it "should route the root dashboard" do
23
+ dashboard_path.should == "/"
24
+ end
25
+ end
26
+ end
27
+
28
+ describe "standard resources" do
29
+ context "when in admin namespace" do
30
+ it "should route the index path" do
31
+ admin_posts_path.should == "/admin/posts"
32
+ end
33
+
34
+ it "should route the show path" do
35
+ admin_post_path(1).should == "/admin/posts/1"
36
+ end
37
+
38
+ it "should route the new path" do
39
+ new_admin_post_path.should == "/admin/posts/new"
40
+ end
41
+
42
+ it "should route the edit path" do
43
+ edit_admin_post_path(1).should == "/admin/posts/1/edit"
44
+ end
45
+ end
46
+
47
+ context "when in root namespace" do
48
+ before(:each) do
49
+ load_resources { ActiveAdmin.register(Post, :namespace => false) }
50
+ end
51
+
52
+ it "should route the index path" do
53
+ posts_path.should == "/posts"
54
+ end
55
+
56
+ it "should route the show path" do
57
+ post_path(1).should == "/posts/1"
58
+ end
59
+
60
+ it "should route the new path" do
61
+ new_post_path.should == "/posts/new"
62
+ end
63
+
64
+ it "should route the edit path" do
65
+ edit_post_path(1).should == "/posts/1/edit"
66
+ end
67
+ end
68
+ end
69
+
70
+ describe "belongs to resource" do
71
+ it "should route the nested index path" do
72
+ admin_user_posts_path(1).should == "/admin/users/1/posts"
73
+ end
74
+
75
+ it "should route the nested show path" do
76
+ admin_user_post_path(1,2).should == "/admin/users/1/posts/2"
77
+ end
78
+
79
+ it "should route the nested new path" do
80
+ new_admin_user_post_path(1).should == "/admin/users/1/posts/new"
81
+ end
82
+
83
+ it "should route the nested edit path" do
84
+ edit_admin_user_post_path(1,2).should == "/admin/users/1/posts/2/edit"
85
+ end
86
+ end
11
87
 
12
88
  end
@@ -0,0 +1,31 @@
1
+ require 'spec_helper'
2
+
3
+ describe ActiveAdmin::Scope do
4
+
5
+ describe "creating a scope" do
6
+ subject{ scope }
7
+
8
+ context "when just a scope method" do
9
+ let(:scope) { ActiveAdmin::Scope.new :published }
10
+ its(:name) { should == "Published"}
11
+ its(:id) { should == "published"}
12
+ its(:scope_method) { should == :published }
13
+ end
14
+
15
+ context "when a name and scope method" do
16
+ let(:scope) { ActiveAdmin::Scope.new "My Scope", :scope_method }
17
+ its(:name) { should == "My Scope"}
18
+ its(:id) { should == "my_scope"}
19
+ its(:scope_method) { should == :scope_method }
20
+ end
21
+
22
+ context "when a name and scope block" do
23
+ let(:scope) { ActiveAdmin::Scope.new("My Scope"){|s| s } }
24
+ its(:name) { should == "My Scope"}
25
+ its(:id) { should == "my_scope"}
26
+ its(:scope_method) { should == nil }
27
+ its(:scope_block) { should be_a(Proc)}
28
+ end
29
+ end
30
+
31
+ end
@@ -1,8 +1,8 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper'
2
2
 
3
- describe ActiveAdmin::TabsRenderer do
3
+ describe ActiveAdmin::Views::TabsRenderer do
4
4
 
5
- let(:renderer){ ActiveAdmin::TabsRenderer.new(mock_action_view) }
5
+ let(:renderer){ ActiveAdmin::Views::TabsRenderer.new(mock_action_view) }
6
6
  let(:menu){ ActiveAdmin::Menu.new }
7
7
  let(:html){ renderer.to_html(menu) }
8
8
 
@@ -10,6 +10,9 @@ describe ActiveAdmin::TabsRenderer do
10
10
  before do
11
11
  menu.add "Blog Posts", "/admin/blog-posts"
12
12
  menu.add "Reports", "/admin/reports"
13
+ reports = menu["Reports"]
14
+ reports.add "A Sub Reports", "/admin/a-sub-reports"
15
+ reports.add "B Sub Reports", "/admin/b-sub-reports"
13
16
  end
14
17
 
15
18
  it "should generate a ul" do
@@ -24,11 +27,30 @@ describe ActiveAdmin::TabsRenderer do
24
27
  html.should have_tag("a", "Blog Posts", :attributes => { :href => '/admin/blog-posts' })
25
28
  end
26
29
 
30
+ it "should generate a " do
31
+ html.should have_tag("a", "Blog Posts", :attributes => { :href => '/admin/blog-posts' })
32
+ end
33
+
34
+ it "should generate a nested list for children" do
35
+ html.should have_tag("ul", :parent => { :tag => "li" })
36
+ end
37
+
38
+ it "should generate a nested list with li for each child" do
39
+ html.should have_tag("li", :parent => { :tag => "ul" }, :attributes => {:id => "a_sub_reports"})
40
+ html.should have_tag("li", :parent => { :tag => "ul" }, :attributes => {:id => "b_sub_reports"})
41
+ end
42
+
27
43
  describe "marking current item" do
28
44
  it "should add the 'current' class to the li" do
29
45
  renderer.instance_variable_set :@current_tab, "Blog Posts"
30
46
  html.should have_tag("li", :attributes => { :class => "current" })
31
47
  end
48
+
49
+ it "should add the 'current' and 'has_nested' classes to the li and 'current' to the sub li" do
50
+ renderer.instance_variable_set :@current_tab, "Reports/A Sub Reports"
51
+ html.should have_tag("li", :attributes => { :id => "reports", :class => "current has_nested" })
52
+ html.should have_tag("li", :attributes => { :id => "a_sub_reports", :class => "current" })
53
+ end
32
54
  end
33
55
 
34
56
  end
@@ -0,0 +1,16 @@
1
+ require 'spec_helper'
2
+
3
+ def it_should_have_view(key, value)
4
+ it "should have #{value} for view key '#{key}'" do
5
+ subject.send(key).should == value
6
+ end
7
+ end
8
+
9
+ describe ActiveAdmin::ViewFactory do
10
+
11
+ it_should_have_view :global_navigation, ActiveAdmin::Views::TabsRenderer
12
+ it_should_have_view :action_items, ActiveAdmin::Views::ActionItems
13
+ it_should_have_view :header, ActiveAdmin::Views::HeaderRenderer
14
+ it_should_have_view :dashboard_page, ActiveAdmin::Views::Pages::Dashboard
15
+
16
+ end
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 1
9
- version: 0.1.1
4
+ prerelease:
5
+ version: 0.2.0
10
6
  platform: ruby
11
7
  authors:
12
8
  - Greg Bell
@@ -14,8 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-09-15 00:00:00 -07:00
18
- default_executable:
13
+ date: 2011-05-12 00:00:00 Z
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: rails
@@ -24,73 +19,98 @@ dependencies:
24
19
  requirements:
25
20
  - - ">="
26
21
  - !ruby/object:Gem::Version
27
- segments:
28
- - 3
29
- - 0
30
- - 0
31
22
  version: 3.0.0
32
23
  type: :runtime
33
24
  prerelease: false
34
25
  version_requirements: *id001
35
26
  - !ruby/object:Gem::Dependency
36
- name: formtastic
27
+ name: meta_search
37
28
  requirement: &id002 !ruby/object:Gem::Requirement
38
29
  none: false
39
30
  requirements:
40
31
  - - ">="
41
32
  - !ruby/object:Gem::Version
42
- segments:
43
- - 1
44
- - 1
45
- - 0
46
- - beta
47
- version: 1.1.0.beta
33
+ version: 0.9.2
48
34
  type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: *id002
51
37
  - !ruby/object:Gem::Dependency
52
- name: will_paginate
38
+ name: devise
53
39
  requirement: &id003 !ruby/object:Gem::Requirement
54
40
  none: false
55
41
  requirements:
56
42
  - - ">="
57
43
  - !ruby/object:Gem::Version
58
- segments:
59
- - 3
60
- - 0
61
- - pre2
62
- version: 3.0.pre2
44
+ version: 1.1.2
63
45
  type: :runtime
64
46
  prerelease: false
65
47
  version_requirements: *id003
66
48
  - !ruby/object:Gem::Dependency
67
- name: meta_search
49
+ name: formtastic
68
50
  requirement: &id004 !ruby/object:Gem::Requirement
69
51
  none: false
70
52
  requirements:
71
53
  - - ">="
72
54
  - !ruby/object:Gem::Version
73
- segments:
74
- - 0
75
- - 9
76
- - 2
77
- version: 0.9.2
55
+ version: 1.1.0
78
56
  type: :runtime
79
57
  prerelease: false
80
58
  version_requirements: *id004
81
59
  - !ruby/object:Gem::Dependency
82
- name: inherited_views
60
+ name: will_paginate
83
61
  requirement: &id005 !ruby/object:Gem::Requirement
84
62
  none: false
85
63
  requirements:
86
64
  - - ">="
87
65
  - !ruby/object:Gem::Version
88
- segments:
89
- - 0
90
- version: "0"
66
+ version: 3.0.pre2
91
67
  type: :runtime
92
68
  prerelease: false
93
69
  version_requirements: *id005
70
+ - !ruby/object:Gem::Dependency
71
+ name: inherited_views
72
+ requirement: &id006 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: "0"
78
+ type: :runtime
79
+ prerelease: false
80
+ version_requirements: *id006
81
+ - !ruby/object:Gem::Dependency
82
+ name: haml
83
+ requirement: &id007 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: 3.0.18
89
+ type: :runtime
90
+ prerelease: false
91
+ version_requirements: *id007
92
+ - !ruby/object:Gem::Dependency
93
+ name: sqlite3-ruby
94
+ requirement: &id008 !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: "0"
100
+ type: :development
101
+ prerelease: false
102
+ version_requirements: *id008
103
+ - !ruby/object:Gem::Dependency
104
+ name: jeweler
105
+ requirement: &id009 !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - "="
109
+ - !ruby/object:Gem::Version
110
+ version: 1.5.2
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: *id009
94
114
  description: The administration framework for Ruby on Rails.
95
115
  email: gregdbell@gmail.com
96
116
  executables: []
@@ -102,102 +122,250 @@ extra_rdoc_files:
102
122
  - README.rdoc
103
123
  files:
104
124
  - .document
105
- - .gitignore
106
125
  - CHANGELOG.rdoc
107
126
  - Gemfile
108
127
  - LICENSE
109
128
  - README.rdoc
110
129
  - Rakefile
111
- - active_admin.gemspec
112
130
  - activeadmin.gemspec
131
+ - cucumber.yml
132
+ - features/comments/commenting.feature
133
+ - features/comments/viewing_index.feature
134
+ - features/edit_page.feature
135
+ - features/first_boot.feature
136
+ - features/global_navigation.feature
137
+ - features/index/formats.feature
138
+ - features/index/index_as_block.feature
139
+ - features/index/index_as_blog.feature
140
+ - features/index/index_as_grid.feature
141
+ - features/index/index_as_table.feature
142
+ - features/index/index_scopes.feature
143
+ - features/index/pagination.feature
144
+ - features/new_page.feature
145
+ - features/registering_assets.feature
146
+ - features/registering_resources.feature
147
+ - features/show/default_content.feature
148
+ - features/show/page_title.feature
149
+ - features/sidebar_sections.feature
150
+ - features/specifying_actions.feature
151
+ - features/step_definitions/action_item_steps.rb
152
+ - features/step_definitions/additional_web_steps.rb
153
+ - features/step_definitions/asset_steps.rb
154
+ - features/step_definitions/attribute_steps.rb
155
+ - features/step_definitions/comment_steps.rb
156
+ - features/step_definitions/configuration_steps.rb
157
+ - features/step_definitions/factory_steps.rb
158
+ - features/step_definitions/flash_steps.rb
159
+ - features/step_definitions/format_steps.rb
160
+ - features/step_definitions/index_scope_steps.rb
161
+ - features/step_definitions/pagination_steps.rb
162
+ - features/step_definitions/sidebar_steps.rb
163
+ - features/step_definitions/tab_steps.rb
164
+ - features/step_definitions/user_steps.rb
165
+ - features/step_definitions/web_steps.rb
166
+ - features/support/env.rb
167
+ - features/support/paths.rb
168
+ - features/users/logging_in.feature
169
+ - features/users/logging_out.feature
113
170
  - lib/active_admin.rb
114
- - lib/active_admin/action_builder.rb
171
+ - lib/active_admin/abstract_view_factory.rb
115
172
  - lib/active_admin/action_items.rb
173
+ - lib/active_admin/arbre.rb
174
+ - lib/active_admin/arbre/attributes.rb
175
+ - lib/active_admin/arbre/class_list.rb
176
+ - lib/active_admin/arbre/collection.rb
177
+ - lib/active_admin/arbre/context.rb
178
+ - lib/active_admin/arbre/core_extensions.rb
179
+ - lib/active_admin/arbre/document.rb
180
+ - lib/active_admin/arbre/element.rb
181
+ - lib/active_admin/arbre/html.rb
182
+ - lib/active_admin/arbre/html5_elements.rb
183
+ - lib/active_admin/arbre/tag.rb
184
+ - lib/active_admin/arbre/text_node.rb
116
185
  - lib/active_admin/asset_registration.rb
117
- - lib/active_admin/breadcrumbs.rb
186
+ - lib/active_admin/callbacks.rb
187
+ - lib/active_admin/comments.rb
188
+ - lib/active_admin/comments/comment.rb
189
+ - lib/active_admin/comments/configuration.rb
190
+ - lib/active_admin/comments/namespace_helper.rb
191
+ - lib/active_admin/comments/resource_helper.rb
192
+ - lib/active_admin/comments/show_page_helper.rb
193
+ - lib/active_admin/comments/views.rb
194
+ - lib/active_admin/comments/views/active_admin_comment.rb
195
+ - lib/active_admin/comments/views/active_admin_comments.rb
196
+ - lib/active_admin/component.rb
197
+ - lib/active_admin/controller_action.rb
118
198
  - lib/active_admin/dashboards.rb
119
199
  - lib/active_admin/dashboards/dashboard_controller.rb
120
- - lib/active_admin/dashboards/renderer.rb
121
200
  - lib/active_admin/dashboards/section.rb
122
- - lib/active_admin/dashboards/section_renderer.rb
123
- - lib/active_admin/filters.rb
201
+ - lib/active_admin/devise.rb
202
+ - lib/active_admin/dsl.rb
203
+ - lib/active_admin/event.rb
124
204
  - lib/active_admin/form_builder.rb
125
205
  - lib/active_admin/helpers/optional_display.rb
206
+ - lib/active_admin/iconic.rb
207
+ - lib/active_admin/iconic/icons.rb
126
208
  - lib/active_admin/menu.rb
127
209
  - lib/active_admin/menu_item.rb
128
210
  - lib/active_admin/namespace.rb
129
211
  - lib/active_admin/page_config.rb
130
- - lib/active_admin/pages.rb
131
- - lib/active_admin/pages/base.rb
132
- - lib/active_admin/pages/edit.rb
133
- - lib/active_admin/pages/index.rb
134
- - lib/active_admin/pages/index/blog.rb
135
- - lib/active_admin/pages/index/table.rb
136
- - lib/active_admin/pages/index/thumbnails.rb
137
- - lib/active_admin/pages/new.rb
138
- - lib/active_admin/pages/show.rb
139
212
  - lib/active_admin/renderer.rb
140
213
  - lib/active_admin/resource.rb
214
+ - lib/active_admin/resource/belongs_to.rb
141
215
  - lib/active_admin/resource_controller.rb
216
+ - lib/active_admin/resource_controller/action_builder.rb
217
+ - lib/active_admin/resource_controller/actions.rb
218
+ - lib/active_admin/resource_controller/callbacks.rb
219
+ - lib/active_admin/resource_controller/collection.rb
220
+ - lib/active_admin/resource_controller/filters.rb
221
+ - lib/active_admin/resource_controller/form.rb
222
+ - lib/active_admin/resource_controller/menu.rb
223
+ - lib/active_admin/resource_controller/page_configurations.rb
224
+ - lib/active_admin/resource_controller/scoping.rb
225
+ - lib/active_admin/resource_controller/sidebars.rb
226
+ - lib/active_admin/scope.rb
142
227
  - lib/active_admin/sidebar.rb
143
- - lib/active_admin/table_builder.rb
144
- - lib/active_admin/tabs_renderer.rb
228
+ - lib/active_admin/stylesheets/active_admin.scss
229
+ - lib/active_admin/stylesheets/active_admin/_comments.scss
230
+ - lib/active_admin/stylesheets/active_admin/_flash_messages.scss
231
+ - lib/active_admin/stylesheets/active_admin/_forms.scss
232
+ - lib/active_admin/stylesheets/active_admin/_header.scss
233
+ - lib/active_admin/stylesheets/active_admin/_typography.scss
234
+ - lib/active_admin/stylesheets/active_admin/mixins/_all.scss
235
+ - lib/active_admin/stylesheets/active_admin/mixins/_buttons.scss
236
+ - lib/active_admin/stylesheets/active_admin/mixins/_gradients.scss
237
+ - lib/active_admin/stylesheets/active_admin/mixins/_icons.scss
238
+ - lib/active_admin/stylesheets/active_admin/mixins/_reset.scss
239
+ - lib/active_admin/stylesheets/active_admin/mixins/_rounded.scss
240
+ - lib/active_admin/stylesheets/active_admin/mixins/_sections.scss
241
+ - lib/active_admin/stylesheets/active_admin/mixins/_shadows.scss
242
+ - lib/active_admin/stylesheets/active_admin/mixins/_variables.scss
145
243
  - lib/active_admin/version.rb
244
+ - lib/active_admin/view_factory.rb
146
245
  - lib/active_admin/view_helpers.rb
147
- - lib/active_admin/views/active_admin_dashboard/index.html.erb
148
- - lib/active_admin/views/active_admin_default/edit.html.erb
149
- - lib/active_admin/views/active_admin_default/index.csv.erb
150
- - lib/active_admin/views/active_admin_default/index.html.erb
151
- - lib/active_admin/views/active_admin_default/new.html.erb
152
- - lib/active_admin/views/active_admin_default/show.html.erb
153
- - lib/active_admin/views/layouts/active_admin.html.erb
246
+ - lib/active_admin/view_helpers/assigns_with_indifferent_access_helper.rb
247
+ - lib/active_admin/view_helpers/auto_link_helper.rb
248
+ - lib/active_admin/view_helpers/breadcrumb_helper.rb
249
+ - lib/active_admin/view_helpers/display_helper.rb
250
+ - lib/active_admin/view_helpers/filter_form_helper.rb
251
+ - lib/active_admin/view_helpers/form_helper.rb
252
+ - lib/active_admin/view_helpers/icon_helper.rb
253
+ - lib/active_admin/view_helpers/method_or_proc_helper.rb
254
+ - lib/active_admin/view_helpers/renderer_helper.rb
255
+ - lib/active_admin/view_helpers/sidebar_helper.rb
256
+ - lib/active_admin/view_helpers/status_tag_helper.rb
257
+ - lib/active_admin/view_helpers/table_helper.rb
258
+ - lib/active_admin/view_helpers/title_helper.rb
259
+ - lib/active_admin/view_helpers/view_factory_helper.rb
260
+ - lib/active_admin/views.rb
261
+ - lib/active_admin/views/action_items.rb
262
+ - lib/active_admin/views/components/attributes_table.rb
263
+ - lib/active_admin/views/components/columns.rb
264
+ - lib/active_admin/views/components/paginated_collection.rb
265
+ - lib/active_admin/views/components/panel.rb
266
+ - lib/active_admin/views/components/scopes.rb
267
+ - lib/active_admin/views/components/sidebar_section.rb
268
+ - lib/active_admin/views/components/table_for.rb
269
+ - lib/active_admin/views/dashboard_section_renderer.rb
270
+ - lib/active_admin/views/header_renderer.rb
271
+ - lib/active_admin/views/index_as_block.rb
272
+ - lib/active_admin/views/index_as_blog.rb
273
+ - lib/active_admin/views/index_as_grid.rb
274
+ - lib/active_admin/views/index_as_table.rb
275
+ - lib/active_admin/views/pages/base.rb
276
+ - lib/active_admin/views/pages/dashboard.rb
277
+ - lib/active_admin/views/pages/edit.rb
278
+ - lib/active_admin/views/pages/index.rb
279
+ - lib/active_admin/views/pages/new.rb
280
+ - lib/active_admin/views/pages/show.rb
281
+ - lib/active_admin/views/tabs_renderer.rb
282
+ - lib/active_admin/views/templates/active_admin/devise/mailer/reset_password_instructions.html.erb
283
+ - lib/active_admin/views/templates/active_admin/devise/mailer/unlock_instructions.html.erb
284
+ - lib/active_admin/views/templates/active_admin/devise/passwords/edit.html.erb
285
+ - lib/active_admin/views/templates/active_admin/devise/passwords/new.html.erb
286
+ - lib/active_admin/views/templates/active_admin/devise/sessions/new.html.erb
287
+ - lib/active_admin/views/templates/active_admin/devise/shared/_links.erb
288
+ - lib/active_admin/views/templates/active_admin/devise/unlocks/new.html.erb
289
+ - lib/active_admin/views/templates/active_admin_dashboard/index.html.arb
290
+ - lib/active_admin/views/templates/active_admin_default/edit.html.arb
291
+ - lib/active_admin/views/templates/active_admin_default/index.csv.erb
292
+ - lib/active_admin/views/templates/active_admin_default/index.html.arb
293
+ - lib/active_admin/views/templates/active_admin_default/new.html.arb
294
+ - lib/active_admin/views/templates/active_admin_default/show.html.arb
295
+ - lib/active_admin/views/templates/layouts/active_admin.html.erb
296
+ - lib/active_admin/views/templates/layouts/active_admin_logged_out.html.erb
154
297
  - lib/activeadmin.rb
298
+ - lib/generators/active_admin/devise/devise_generator.rb
155
299
  - lib/generators/active_admin/install/install_generator.rb
156
- - lib/generators/active_admin/install/templates/active_admin.css
157
300
  - lib/generators/active_admin/install/templates/active_admin.js
158
- - lib/generators/active_admin/install/templates/active_admin.rb
301
+ - lib/generators/active_admin/install/templates/active_admin.rb.erb
159
302
  - lib/generators/active_admin/install/templates/active_admin_vendor.js
160
303
  - lib/generators/active_admin/install/templates/dashboards.rb
161
- - lib/generators/active_admin/install/templates/images/orderable.gif
304
+ - lib/generators/active_admin/install/templates/images/admin_notes_icon.png
305
+ - lib/generators/active_admin/install/templates/images/loading.gif
306
+ - lib/generators/active_admin/install/templates/images/nested_menu_arrow.gif
307
+ - lib/generators/active_admin/install/templates/images/nested_menu_arrow_dark.gif
308
+ - lib/generators/active_admin/install/templates/images/orderable.png
309
+ - lib/generators/active_admin/install/templates/migrations/1_create_admin_notes.rb
310
+ - lib/generators/active_admin/install/templates/migrations/2_move_admin_notes_to_comments.rb
162
311
  - lib/generators/active_admin/resource/resource_generator.rb
163
312
  - lib/generators/active_admin/resource/templates/admin.rb
313
+ - spec/integration/belongs_to_spec.rb
164
314
  - spec/integration/dashboard_spec.rb
165
- - spec/integration/index_as_blog_spec.rb
166
315
  - spec/integration/index_as_csv_spec.rb
167
316
  - spec/integration/index_as_table_spec.rb
168
- - spec/integration/index_as_thumbnails_spec.rb
169
317
  - spec/integration/layout_spec.rb
170
- - spec/integration/new_view_spec.rb
171
- - spec/integration/show_view_spec.rb
172
318
  - spec/spec_helper.rb
319
+ - spec/support/integration_example_group.rb
173
320
  - spec/support/rails_template.rb
321
+ - spec/support/rails_template_with_data.rb
322
+ - spec/support/templates/cucumber.rb
323
+ - spec/unit/abstract_view_factory_spec.rb
174
324
  - spec/unit/action_builder_spec.rb
175
325
  - spec/unit/action_items_spec.rb
176
326
  - spec/unit/active_admin_spec.rb
327
+ - spec/unit/arbre/html/element_finder_methods_spec.rb
328
+ - spec/unit/arbre/html/element_spec.rb
329
+ - spec/unit/arbre/html/tag_attributes_spec.rb
330
+ - spec/unit/arbre/html/tag_spec.rb
331
+ - spec/unit/arbre/html_spec.rb
177
332
  - spec/unit/asset_registration_spec.rb
333
+ - spec/unit/auto_link_spec.rb
334
+ - spec/unit/belongs_to_spec.rb
335
+ - spec/unit/breadcrumbs_spec.rb
336
+ - spec/unit/comments_spec.rb
337
+ - spec/unit/component_spec.rb
338
+ - spec/unit/components/attributes_table_spec.rb
339
+ - spec/unit/components/columns_spec.rb
340
+ - spec/unit/components/panel_spec.rb
341
+ - spec/unit/components/sidebar_section_spec.rb
342
+ - spec/unit/components/table_for_spec.rb
178
343
  - spec/unit/controller_filters_spec.rb
344
+ - spec/unit/dashboard_controller_spec.rb
179
345
  - spec/unit/dashboard_section_spec.rb
180
346
  - spec/unit/dashboards_spec.rb
347
+ - spec/unit/display_name_spec.rb
348
+ - spec/unit/event_spec.rb
181
349
  - spec/unit/filter_form_builder_spec.rb
182
350
  - spec/unit/form_builder_spec.rb
183
351
  - spec/unit/menu_item_spec.rb
184
352
  - spec/unit/menu_spec.rb
185
353
  - spec/unit/namespace_spec.rb
354
+ - spec/unit/pretty_format_spec.rb
186
355
  - spec/unit/registration_spec.rb
187
356
  - spec/unit/renderer_spec.rb
188
357
  - spec/unit/resource_controller_spec.rb
189
358
  - spec/unit/resource_spec.rb
190
359
  - spec/unit/routing_spec.rb
191
- - spec/unit/sidebar_spec.rb
192
- - spec/unit/table_builder_spec.rb
360
+ - spec/unit/scope_spec.rb
193
361
  - spec/unit/tabs_renderer_spec.rb
194
- has_rdoc: true
362
+ - spec/unit/view_factory_spec.rb
195
363
  homepage: http://github.com/gregbell/active_admin
196
364
  licenses: []
197
365
 
198
366
  post_install_message:
199
- rdoc_options:
200
- - --charset=UTF-8
367
+ rdoc_options: []
368
+
201
369
  require_paths:
202
370
  - lib
203
371
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -205,7 +373,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
205
373
  requirements:
206
374
  - - ">="
207
375
  - !ruby/object:Gem::Version
208
- hash: -2461466702103168228
376
+ hash: -78845124760778336
209
377
  segments:
210
378
  - 0
211
379
  version: "0"
@@ -214,44 +382,62 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
382
  requirements:
215
383
  - - ">="
216
384
  - !ruby/object:Gem::Version
217
- segments:
218
- - 0
219
385
  version: "0"
220
386
  requirements: []
221
387
 
222
388
  rubyforge_project:
223
- rubygems_version: 1.3.7
389
+ rubygems_version: 1.7.2
224
390
  signing_key:
225
391
  specification_version: 3
226
392
  summary: The administration framework for Ruby on Rails.
227
393
  test_files:
394
+ - spec/integration/belongs_to_spec.rb
228
395
  - spec/integration/dashboard_spec.rb
229
- - spec/integration/index_as_blog_spec.rb
230
396
  - spec/integration/index_as_csv_spec.rb
231
397
  - spec/integration/index_as_table_spec.rb
232
- - spec/integration/index_as_thumbnails_spec.rb
233
398
  - spec/integration/layout_spec.rb
234
- - spec/integration/new_view_spec.rb
235
- - spec/integration/show_view_spec.rb
236
399
  - spec/spec_helper.rb
400
+ - spec/support/integration_example_group.rb
237
401
  - spec/support/rails_template.rb
402
+ - spec/support/rails_template_with_data.rb
403
+ - spec/support/templates/cucumber.rb
404
+ - spec/unit/abstract_view_factory_spec.rb
238
405
  - spec/unit/action_builder_spec.rb
239
406
  - spec/unit/action_items_spec.rb
240
407
  - spec/unit/active_admin_spec.rb
408
+ - spec/unit/arbre/html/element_finder_methods_spec.rb
409
+ - spec/unit/arbre/html/element_spec.rb
410
+ - spec/unit/arbre/html/tag_attributes_spec.rb
411
+ - spec/unit/arbre/html/tag_spec.rb
412
+ - spec/unit/arbre/html_spec.rb
241
413
  - spec/unit/asset_registration_spec.rb
414
+ - spec/unit/auto_link_spec.rb
415
+ - spec/unit/belongs_to_spec.rb
416
+ - spec/unit/breadcrumbs_spec.rb
417
+ - spec/unit/comments_spec.rb
418
+ - spec/unit/component_spec.rb
419
+ - spec/unit/components/attributes_table_spec.rb
420
+ - spec/unit/components/columns_spec.rb
421
+ - spec/unit/components/panel_spec.rb
422
+ - spec/unit/components/sidebar_section_spec.rb
423
+ - spec/unit/components/table_for_spec.rb
242
424
  - spec/unit/controller_filters_spec.rb
425
+ - spec/unit/dashboard_controller_spec.rb
243
426
  - spec/unit/dashboard_section_spec.rb
244
427
  - spec/unit/dashboards_spec.rb
428
+ - spec/unit/display_name_spec.rb
429
+ - spec/unit/event_spec.rb
245
430
  - spec/unit/filter_form_builder_spec.rb
246
431
  - spec/unit/form_builder_spec.rb
247
432
  - spec/unit/menu_item_spec.rb
248
433
  - spec/unit/menu_spec.rb
249
434
  - spec/unit/namespace_spec.rb
435
+ - spec/unit/pretty_format_spec.rb
250
436
  - spec/unit/registration_spec.rb
251
437
  - spec/unit/renderer_spec.rb
252
438
  - spec/unit/resource_controller_spec.rb
253
439
  - spec/unit/resource_spec.rb
254
440
  - spec/unit/routing_spec.rb
255
- - spec/unit/sidebar_spec.rb
256
- - spec/unit/table_builder_spec.rb
441
+ - spec/unit/scope_spec.rb
257
442
  - spec/unit/tabs_renderer_spec.rb
443
+ - spec/unit/view_factory_spec.rb