lalala 4.0.0.dev.141 → 4.0.0.dev.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lalala.gemspec +1 -12
- data/lib/lalala/version.rb +1 -1
- data/lib/lalala/views/index_as_tree_table.rb +7 -3
- data/lib/lalala.rb +0 -2
- metadata +6 -586
- data/.gitmodules +0 -3
- data/vendor/deps/active_admin/.document +0 -5
- data/vendor/deps/active_admin/.gitignore +0 -39
- data/vendor/deps/active_admin/.travis.yml +0 -15
- data/vendor/deps/active_admin/.yardopts +0 -8
- data/vendor/deps/active_admin/CHANGELOG.md +0 -739
- data/vendor/deps/active_admin/CONTRIBUTING.md +0 -111
- data/vendor/deps/active_admin/Gemfile +0 -47
- data/vendor/deps/active_admin/Guardfile +0 -7
- data/vendor/deps/active_admin/LICENSE +0 -25
- data/vendor/deps/active_admin/README.rdoc +0 -115
- data/vendor/deps/active_admin/Rakefile +0 -27
- data/vendor/deps/active_admin/activeadmin.gemspec +0 -32
- data/vendor/deps/active_admin/app/assets/images/active_admin/admin_notes_icon.png +0 -0
- data/vendor/deps/active_admin/app/assets/images/active_admin/datepicker/datepicker-header-bg.png +0 -0
- data/vendor/deps/active_admin/app/assets/images/active_admin/datepicker/datepicker-input-icon.png +0 -0
- data/vendor/deps/active_admin/app/assets/images/active_admin/datepicker/datepicker-next-link-icon.png +0 -0
- data/vendor/deps/active_admin/app/assets/images/active_admin/datepicker/datepicker-nipple.png +0 -0
- data/vendor/deps/active_admin/app/assets/images/active_admin/datepicker/datepicker-prev-link-icon.png +0 -0
- data/vendor/deps/active_admin/app/assets/images/active_admin/loading.gif +0 -0
- data/vendor/deps/active_admin/app/assets/images/active_admin/nested_menu_arrow.gif +0 -0
- data/vendor/deps/active_admin/app/assets/images/active_admin/nested_menu_arrow_dark.gif +0 -0
- data/vendor/deps/active_admin/app/assets/images/active_admin/orderable.png +0 -0
- data/vendor/deps/active_admin/app/assets/javascripts/active_admin/application.js +0 -3
- data/vendor/deps/active_admin/app/assets/javascripts/active_admin/base.js +0 -5
- data/vendor/deps/active_admin/app/assets/javascripts/active_admin/components/jquery.aa.checkbox-toggler.js.coffee +0 -64
- data/vendor/deps/active_admin/app/assets/javascripts/active_admin/components/jquery.aa.dropdown-menu.js.coffee +0 -105
- data/vendor/deps/active_admin/app/assets/javascripts/active_admin/components/jquery.aa.popover.js.coffee +0 -97
- data/vendor/deps/active_admin/app/assets/javascripts/active_admin/components/jquery.aa.table-checkbox-toggler.js.coffee +0 -27
- data/vendor/deps/active_admin/app/assets/javascripts/active_admin/lib/namespace.js.coffee +0 -3
- data/vendor/deps/active_admin/app/assets/javascripts/active_admin/pages/application.js.coffee +0 -16
- data/vendor/deps/active_admin/app/assets/javascripts/active_admin/pages/batch_actions.js.coffee +0 -26
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/_base.css.scss +0 -45
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/_forms.css.scss +0 -281
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/_header.css.scss +0 -140
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/_mixins.css.scss +0 -1
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/_typography.css.scss +0 -100
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_batch_actions.css.scss +0 -11
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_blank_slates.scss +0 -31
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_breadcrumbs.scss +0 -20
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_buttons.scss +0 -11
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_columns.scss +0 -3
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_comments.css.scss +0 -41
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_date_picker.css.scss +0 -123
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_dropdown_menu.scss +0 -151
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_flash_messages.css.scss +0 -39
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_grid.scss +0 -9
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_links.scss +0 -5
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_pagination.scss +0 -34
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_panels.scss +0 -6
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_popovers.css.scss +0 -123
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_scopes.scss +0 -10
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_status_tags.scss +0 -12
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_table_tools.css.scss +0 -95
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/components/_tables.css.scss +0 -108
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/mixins/_all.css.scss +0 -11
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/mixins/_buttons.css.scss +0 -66
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/mixins/_gradients.css.scss +0 -37
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/mixins/_icons.css.scss +0 -24
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/mixins/_reset.css.scss +0 -165
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/mixins/_rounded.css.scss +0 -43
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/mixins/_sections.css.scss +0 -36
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/mixins/_shadows.css.scss +0 -22
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/mixins/_typography.scss +0 -3
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/mixins/_utilities.scss +0 -26
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/mixins/_variables.css.scss +0 -24
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/pages/_dashboard.scss +0 -5
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/pages/_logged_out.scss +0 -44
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/print.css.scss +0 -290
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/structure/_footer.scss +0 -14
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/structure/_main_structure.scss +0 -26
- data/vendor/deps/active_admin/app/assets/stylesheets/active_admin/structure/_title_bar.scss +0 -44
- data/vendor/deps/active_admin/app/views/active_admin/dashboard/index.html.arb +0 -1
- data/vendor/deps/active_admin/app/views/active_admin/devise/mailer/reset_password_instructions.html.erb +0 -8
- data/vendor/deps/active_admin/app/views/active_admin/devise/mailer/unlock_instructions.html.erb +0 -7
- data/vendor/deps/active_admin/app/views/active_admin/devise/passwords/edit.html.erb +0 -19
- data/vendor/deps/active_admin/app/views/active_admin/devise/passwords/new.html.erb +0 -14
- data/vendor/deps/active_admin/app/views/active_admin/devise/sessions/new.html.erb +0 -18
- data/vendor/deps/active_admin/app/views/active_admin/devise/shared/_links.erb +0 -20
- data/vendor/deps/active_admin/app/views/active_admin/devise/unlocks/new.html.erb +0 -14
- data/vendor/deps/active_admin/app/views/active_admin/page/index.html.arb +0 -1
- data/vendor/deps/active_admin/app/views/active_admin/resource/edit.html.arb +0 -1
- data/vendor/deps/active_admin/app/views/active_admin/resource/index.csv.erb +0 -23
- data/vendor/deps/active_admin/app/views/active_admin/resource/index.html.arb +0 -1
- data/vendor/deps/active_admin/app/views/active_admin/resource/new.html.arb +0 -1
- data/vendor/deps/active_admin/app/views/active_admin/resource/show.html.arb +0 -1
- data/vendor/deps/active_admin/app/views/layouts/active_admin.html.arb +0 -1
- data/vendor/deps/active_admin/app/views/layouts/active_admin_logged_out.html.erb +0 -35
- data/vendor/deps/active_admin/cucumber.yml +0 -3
- data/vendor/deps/active_admin/docs/0-installation.md +0 -52
- data/vendor/deps/active_admin/docs/1-general-configuration.md +0 -129
- data/vendor/deps/active_admin/docs/10-custom-pages.md +0 -96
- data/vendor/deps/active_admin/docs/11-decorators.md +0 -48
- data/vendor/deps/active_admin/docs/12-arbre-components.md +0 -145
- data/vendor/deps/active_admin/docs/13-authorization-adapter.md +0 -206
- data/vendor/deps/active_admin/docs/2-resource-customization.md +0 -256
- data/vendor/deps/active_admin/docs/3-index-pages/index-as-block.md +0 -16
- data/vendor/deps/active_admin/docs/3-index-pages/index-as-blog.md +0 -61
- data/vendor/deps/active_admin/docs/3-index-pages/index-as-grid.md +0 -21
- data/vendor/deps/active_admin/docs/3-index-pages/index-as-table.md +0 -105
- data/vendor/deps/active_admin/docs/3-index-pages.md +0 -141
- data/vendor/deps/active_admin/docs/4-csv-format.md +0 -32
- data/vendor/deps/active_admin/docs/5-forms.md +0 -39
- data/vendor/deps/active_admin/docs/6-show-screens.md +0 -43
- data/vendor/deps/active_admin/docs/7-sidebars.md +0 -42
- data/vendor/deps/active_admin/docs/8-custom-actions.md +0 -139
- data/vendor/deps/active_admin/docs/9-batch-actions.md +0 -161
- data/vendor/deps/active_admin/features/action_item.feature +0 -73
- data/vendor/deps/active_admin/features/authorization.feature +0 -64
- data/vendor/deps/active_admin/features/authorization_cancan.feature +0 -52
- data/vendor/deps/active_admin/features/belongs_to.feature +0 -63
- data/vendor/deps/active_admin/features/breadcrumb.feature +0 -27
- data/vendor/deps/active_admin/features/comments/commenting.feature +0 -126
- data/vendor/deps/active_admin/features/comments/viewing_index.feature +0 -19
- data/vendor/deps/active_admin/features/dashboard.feature +0 -67
- data/vendor/deps/active_admin/features/decorators.feature +0 -41
- data/vendor/deps/active_admin/features/development_reloading.feature +0 -43
- data/vendor/deps/active_admin/features/edit_page.feature +0 -106
- data/vendor/deps/active_admin/features/first_boot.feature +0 -16
- data/vendor/deps/active_admin/features/global_navigation.feature +0 -30
- data/vendor/deps/active_admin/features/i18n.feature +0 -42
- data/vendor/deps/active_admin/features/index/batch_actions.feature +0 -98
- data/vendor/deps/active_admin/features/index/filters.feature +0 -94
- data/vendor/deps/active_admin/features/index/format_as_csv.feature +0 -118
- data/vendor/deps/active_admin/features/index/formats.feature +0 -39
- data/vendor/deps/active_admin/features/index/index_as_block.feature +0 -15
- data/vendor/deps/active_admin/features/index/index_as_blog.feature +0 -50
- data/vendor/deps/active_admin/features/index/index_as_grid.feature +0 -45
- data/vendor/deps/active_admin/features/index/index_as_table.feature +0 -195
- data/vendor/deps/active_admin/features/index/index_blank_slate.feature +0 -61
- data/vendor/deps/active_admin/features/index/index_parameters.feature +0 -81
- data/vendor/deps/active_admin/features/index/index_scope_to.feature +0 -32
- data/vendor/deps/active_admin/features/index/index_scopes.feature +0 -239
- data/vendor/deps/active_admin/features/index/page_title.feature +0 -30
- data/vendor/deps/active_admin/features/index/pagination.feature +0 -44
- data/vendor/deps/active_admin/features/menu.feature +0 -39
- data/vendor/deps/active_admin/features/new_page.feature +0 -98
- data/vendor/deps/active_admin/features/registering_assets.feature +0 -35
- data/vendor/deps/active_admin/features/registering_pages.feature +0 -148
- data/vendor/deps/active_admin/features/registering_resources.feature +0 -33
- data/vendor/deps/active_admin/features/root_to.feature +0 -17
- data/vendor/deps/active_admin/features/show/default_content.feature +0 -43
- data/vendor/deps/active_admin/features/show/page_title.feature +0 -47
- data/vendor/deps/active_admin/features/sidebar_sections.feature +0 -198
- data/vendor/deps/active_admin/features/site_title.feature +0 -47
- data/vendor/deps/active_admin/features/specifying_actions.feature +0 -93
- data/vendor/deps/active_admin/features/step_definitions/action_item_steps.rb +0 -7
- data/vendor/deps/active_admin/features/step_definitions/action_link_steps.rb +0 -7
- data/vendor/deps/active_admin/features/step_definitions/additional_web_steps.rb +0 -95
- data/vendor/deps/active_admin/features/step_definitions/asset_steps.rb +0 -11
- data/vendor/deps/active_admin/features/step_definitions/attribute_steps.rb +0 -13
- data/vendor/deps/active_admin/features/step_definitions/batch_action_steps.rb +0 -94
- data/vendor/deps/active_admin/features/step_definitions/breadcrumb_steps.rb +0 -5
- data/vendor/deps/active_admin/features/step_definitions/comment_steps.rb +0 -13
- data/vendor/deps/active_admin/features/step_definitions/configuration_steps.rb +0 -109
- data/vendor/deps/active_admin/features/step_definitions/dashboard_steps.rb +0 -15
- data/vendor/deps/active_admin/features/step_definitions/factory_steps.rb +0 -49
- data/vendor/deps/active_admin/features/step_definitions/filter_steps.rb +0 -17
- data/vendor/deps/active_admin/features/step_definitions/flash_steps.rb +0 -11
- data/vendor/deps/active_admin/features/step_definitions/format_steps.rb +0 -56
- data/vendor/deps/active_admin/features/step_definitions/i18n_steps.rb +0 -3
- data/vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb +0 -37
- data/vendor/deps/active_admin/features/step_definitions/layout_steps.rb +0 -3
- data/vendor/deps/active_admin/features/step_definitions/member_link_steps.rb +0 -7
- data/vendor/deps/active_admin/features/step_definitions/menu_steps.rb +0 -7
- data/vendor/deps/active_admin/features/step_definitions/pagination_steps.rb +0 -8
- data/vendor/deps/active_admin/features/step_definitions/sidebar_steps.rb +0 -7
- data/vendor/deps/active_admin/features/step_definitions/site_title_steps.rb +0 -15
- data/vendor/deps/active_admin/features/step_definitions/tab_steps.rb +0 -3
- data/vendor/deps/active_admin/features/step_definitions/table_steps.rb +0 -114
- data/vendor/deps/active_admin/features/step_definitions/user_steps.rb +0 -55
- data/vendor/deps/active_admin/features/step_definitions/web_steps.rb +0 -211
- data/vendor/deps/active_admin/features/sti_resource.feature +0 -61
- data/vendor/deps/active_admin/features/support/env.rb +0 -139
- data/vendor/deps/active_admin/features/support/paths.rb +0 -61
- data/vendor/deps/active_admin/features/support/selectors.rb +0 -45
- data/vendor/deps/active_admin/features/users/logging_in.feature +0 -34
- data/vendor/deps/active_admin/features/users/logging_out.feature +0 -25
- data/vendor/deps/active_admin/features/users/resetting_password.feature +0 -34
- data/vendor/deps/active_admin/lib/active_admin/abstract_view_factory.rb +0 -95
- data/vendor/deps/active_admin/lib/active_admin/application.rb +0 -305
- data/vendor/deps/active_admin/lib/active_admin/asset_registration.rb +0 -47
- data/vendor/deps/active_admin/lib/active_admin/authorization_adapter.rb +0 -128
- data/vendor/deps/active_admin/lib/active_admin/base_controller/authorization.rb +0 -153
- data/vendor/deps/active_admin/lib/active_admin/base_controller/menu.rb +0 -34
- data/vendor/deps/active_admin/lib/active_admin/base_controller.rb +0 -78
- data/vendor/deps/active_admin/lib/active_admin/batch_actions/controller.rb +0 -25
- data/vendor/deps/active_admin/lib/active_admin/batch_actions/resource_extension.rb +0 -126
- data/vendor/deps/active_admin/lib/active_admin/batch_actions/views/batch_action_form.rb +0 -35
- data/vendor/deps/active_admin/lib/active_admin/batch_actions/views/batch_action_popover.rb +0 -28
- data/vendor/deps/active_admin/lib/active_admin/batch_actions/views/batch_action_selector.rb +0 -66
- data/vendor/deps/active_admin/lib/active_admin/batch_actions/views/selection_cells.rb +0 -37
- data/vendor/deps/active_admin/lib/active_admin/batch_actions.rb +0 -17
- data/vendor/deps/active_admin/lib/active_admin/callbacks.rb +0 -87
- data/vendor/deps/active_admin/lib/active_admin/cancan_adapter.rb +0 -40
- data/vendor/deps/active_admin/lib/active_admin/comments/comment.rb +0 -49
- data/vendor/deps/active_admin/lib/active_admin/comments/namespace_helper.rb +0 -14
- data/vendor/deps/active_admin/lib/active_admin/comments/resource_helper.rb +0 -17
- data/vendor/deps/active_admin/lib/active_admin/comments/show_page_helper.rb +0 -23
- data/vendor/deps/active_admin/lib/active_admin/comments/views/active_admin_comment.rb +0 -0
- data/vendor/deps/active_admin/lib/active_admin/comments/views/active_admin_comments.rb +0 -86
- data/vendor/deps/active_admin/lib/active_admin/comments/views.rb +0 -3
- data/vendor/deps/active_admin/lib/active_admin/comments.rb +0 -85
- data/vendor/deps/active_admin/lib/active_admin/component.rb +0 -5
- data/vendor/deps/active_admin/lib/active_admin/controller_action.rb +0 -12
- data/vendor/deps/active_admin/lib/active_admin/csv_builder.rb +0 -51
- data/vendor/deps/active_admin/lib/active_admin/dashboards/dashboard_controller.rb +0 -50
- data/vendor/deps/active_admin/lib/active_admin/dashboards/section.rb +0 -34
- data/vendor/deps/active_admin/lib/active_admin/dashboards.rb +0 -68
- data/vendor/deps/active_admin/lib/active_admin/dependency_checker.rb +0 -42
- data/vendor/deps/active_admin/lib/active_admin/deprecation.rb +0 -36
- data/vendor/deps/active_admin/lib/active_admin/devise.rb +0 -60
- data/vendor/deps/active_admin/lib/active_admin/dsl.rb +0 -166
- data/vendor/deps/active_admin/lib/active_admin/engine.rb +0 -9
- data/vendor/deps/active_admin/lib/active_admin/event.rb +0 -33
- data/vendor/deps/active_admin/lib/active_admin/filters/dsl.rb +0 -21
- data/vendor/deps/active_admin/lib/active_admin/filters/forms.rb +0 -97
- data/vendor/deps/active_admin/lib/active_admin/filters/resource_extension.rb +0 -122
- data/vendor/deps/active_admin/lib/active_admin/filters.rb +0 -8
- data/vendor/deps/active_admin/lib/active_admin/form_builder.rb +0 -196
- data/vendor/deps/active_admin/lib/active_admin/helpers/collection.rb +0 -23
- data/vendor/deps/active_admin/lib/active_admin/helpers/optional_display.rb +0 -40
- data/vendor/deps/active_admin/lib/active_admin/helpers/scope_chain.rb +0 -23
- data/vendor/deps/active_admin/lib/active_admin/helpers/settings.rb +0 -66
- data/vendor/deps/active_admin/lib/active_admin/iconic/icons.rb +0 -142
- data/vendor/deps/active_admin/lib/active_admin/iconic.rb +0 -51
- data/vendor/deps/active_admin/lib/active_admin/inputs/datepicker_input.rb +0 -11
- data/vendor/deps/active_admin/lib/active_admin/inputs/filter_base.rb +0 -46
- data/vendor/deps/active_admin/lib/active_admin/inputs/filter_boolean_input.rb +0 -40
- data/vendor/deps/active_admin/lib/active_admin/inputs/filter_check_boxes_input.rb +0 -40
- data/vendor/deps/active_admin/lib/active_admin/inputs/filter_date_range_input.rb +0 -34
- data/vendor/deps/active_admin/lib/active_admin/inputs/filter_numeric_input.rb +0 -55
- data/vendor/deps/active_admin/lib/active_admin/inputs/filter_select_input.rb +0 -27
- data/vendor/deps/active_admin/lib/active_admin/inputs/filter_string_input.rb +0 -26
- data/vendor/deps/active_admin/lib/active_admin/inputs.rb +0 -15
- data/vendor/deps/active_admin/lib/active_admin/locales/bg.yml +0 -77
- data/vendor/deps/active_admin/lib/active_admin/locales/ca.yml +0 -81
- data/vendor/deps/active_admin/lib/active_admin/locales/cs.yml +0 -83
- data/vendor/deps/active_admin/lib/active_admin/locales/da.yml +0 -80
- data/vendor/deps/active_admin/lib/active_admin/locales/de.yml +0 -109
- data/vendor/deps/active_admin/lib/active_admin/locales/en.yml +0 -86
- data/vendor/deps/active_admin/lib/active_admin/locales/es.yml +0 -98
- data/vendor/deps/active_admin/lib/active_admin/locales/fr.yml +0 -81
- data/vendor/deps/active_admin/lib/active_admin/locales/he.yml +0 -81
- data/vendor/deps/active_admin/lib/active_admin/locales/hr.yml +0 -85
- data/vendor/deps/active_admin/lib/active_admin/locales/hu.yml +0 -67
- data/vendor/deps/active_admin/lib/active_admin/locales/it.yml +0 -81
- data/vendor/deps/active_admin/lib/active_admin/locales/ja.yml +0 -79
- data/vendor/deps/active_admin/lib/active_admin/locales/ko.yml +0 -76
- data/vendor/deps/active_admin/lib/active_admin/locales/lt.yml +0 -81
- data/vendor/deps/active_admin/lib/active_admin/locales/lv.yml +0 -81
- data/vendor/deps/active_admin/lib/active_admin/locales/nl.yml +0 -82
- data/vendor/deps/active_admin/lib/active_admin/locales/no-NB.yml +0 -77
- data/vendor/deps/active_admin/lib/active_admin/locales/pl.yml +0 -85
- data/vendor/deps/active_admin/lib/active_admin/locales/pt-BR.yml +0 -81
- data/vendor/deps/active_admin/lib/active_admin/locales/ro.yml +0 -68
- data/vendor/deps/active_admin/lib/active_admin/locales/ru.yml +0 -81
- data/vendor/deps/active_admin/lib/active_admin/locales/sv-SE.yml +0 -81
- data/vendor/deps/active_admin/lib/active_admin/locales/tr.yml +0 -81
- data/vendor/deps/active_admin/lib/active_admin/locales/vi.yml +0 -81
- data/vendor/deps/active_admin/lib/active_admin/locales/zh-CN.yml +0 -81
- data/vendor/deps/active_admin/lib/active_admin/locales/zh-TW.yml +0 -81
- data/vendor/deps/active_admin/lib/active_admin/menu.rb +0 -94
- data/vendor/deps/active_admin/lib/active_admin/menu_collection.rb +0 -96
- data/vendor/deps/active_admin/lib/active_admin/menu_item.rb +0 -85
- data/vendor/deps/active_admin/lib/active_admin/namespace.rb +0 -253
- data/vendor/deps/active_admin/lib/active_admin/page.rb +0 -88
- data/vendor/deps/active_admin/lib/active_admin/page_controller.rb +0 -29
- data/vendor/deps/active_admin/lib/active_admin/page_dsl.rb +0 -28
- data/vendor/deps/active_admin/lib/active_admin/page_presenter.rb +0 -32
- data/vendor/deps/active_admin/lib/active_admin/reloader.rb +0 -130
- data/vendor/deps/active_admin/lib/active_admin/resource/action_items.rb +0 -93
- data/vendor/deps/active_admin/lib/active_admin/resource/belongs_to.rb +0 -33
- data/vendor/deps/active_admin/lib/active_admin/resource/controllers.rb +0 -18
- data/vendor/deps/active_admin/lib/active_admin/resource/menu.rb +0 -77
- data/vendor/deps/active_admin/lib/active_admin/resource/naming.rb +0 -82
- data/vendor/deps/active_admin/lib/active_admin/resource/page_presenters.rb +0 -28
- data/vendor/deps/active_admin/lib/active_admin/resource/pagination.rb +0 -19
- data/vendor/deps/active_admin/lib/active_admin/resource/routes.rb +0 -46
- data/vendor/deps/active_admin/lib/active_admin/resource/scopes.rb +0 -46
- data/vendor/deps/active_admin/lib/active_admin/resource/sidebars.rb +0 -27
- data/vendor/deps/active_admin/lib/active_admin/resource.rb +0 -170
- data/vendor/deps/active_admin/lib/active_admin/resource_collection.rb +0 -88
- data/vendor/deps/active_admin/lib/active_admin/resource_controller/action_builder.rb +0 -21
- data/vendor/deps/active_admin/lib/active_admin/resource_controller/actions.rb +0 -81
- data/vendor/deps/active_admin/lib/active_admin/resource_controller/data_access.rb +0 -299
- data/vendor/deps/active_admin/lib/active_admin/resource_controller/decorators.rb +0 -20
- data/vendor/deps/active_admin/lib/active_admin/resource_controller/resource_class_methods.rb +0 -24
- data/vendor/deps/active_admin/lib/active_admin/resource_controller/scoping.rb +0 -36
- data/vendor/deps/active_admin/lib/active_admin/resource_controller/sidebars.rb +0 -18
- data/vendor/deps/active_admin/lib/active_admin/resource_controller.rb +0 -56
- data/vendor/deps/active_admin/lib/active_admin/resource_dsl.rb +0 -161
- data/vendor/deps/active_admin/lib/active_admin/router.rb +0 -117
- data/vendor/deps/active_admin/lib/active_admin/sass/active_admin.scss +0 -3
- data/vendor/deps/active_admin/lib/active_admin/sass/css_loader.rb +0 -16
- data/vendor/deps/active_admin/lib/active_admin/sass/helpers.rb +0 -45
- data/vendor/deps/active_admin/lib/active_admin/scope.rb +0 -45
- data/vendor/deps/active_admin/lib/active_admin/sidebar_section.rb +0 -37
- data/vendor/deps/active_admin/lib/active_admin/version.rb +0 -3
- data/vendor/deps/active_admin/lib/active_admin/view_factory.rb +0 -28
- data/vendor/deps/active_admin/lib/active_admin/view_helpers/active_admin_application_helper.rb +0 -12
- data/vendor/deps/active_admin/lib/active_admin/view_helpers/assigns_with_indifferent_access_helper.rb +0 -7
- data/vendor/deps/active_admin/lib/active_admin/view_helpers/auto_link_helper.rb +0 -34
- data/vendor/deps/active_admin/lib/active_admin/view_helpers/breadcrumb_helper.rb +0 -26
- data/vendor/deps/active_admin/lib/active_admin/view_helpers/display_helper.rb +0 -38
- data/vendor/deps/active_admin/lib/active_admin/view_helpers/download_format_links_helper.rb +0 -50
- data/vendor/deps/active_admin/lib/active_admin/view_helpers/fields_for.rb +0 -50
- data/vendor/deps/active_admin/lib/active_admin/view_helpers/flash_helper.rb +0 -13
- data/vendor/deps/active_admin/lib/active_admin/view_helpers/form_helper.rb +0 -19
- data/vendor/deps/active_admin/lib/active_admin/view_helpers/icon_helper.rb +0 -12
- data/vendor/deps/active_admin/lib/active_admin/view_helpers/method_or_proc_helper.rb +0 -78
- data/vendor/deps/active_admin/lib/active_admin/view_helpers/sidebar_helper.rb +0 -15
- data/vendor/deps/active_admin/lib/active_admin/view_helpers/title_helper.rb +0 -11
- data/vendor/deps/active_admin/lib/active_admin/view_helpers/view_factory_helper.rb +0 -11
- data/vendor/deps/active_admin/lib/active_admin/view_helpers.rb +0 -21
- data/vendor/deps/active_admin/lib/active_admin/views/action_items.rb +0 -17
- data/vendor/deps/active_admin/lib/active_admin/views/components/action_list_popover.rb +0 -29
- data/vendor/deps/active_admin/lib/active_admin/views/components/attributes_table.rb +0 -73
- data/vendor/deps/active_admin/lib/active_admin/views/components/blank_slate.rb +0 -17
- data/vendor/deps/active_admin/lib/active_admin/views/components/columns.rb +0 -150
- data/vendor/deps/active_admin/lib/active_admin/views/components/dropdown_menu.rb +0 -73
- data/vendor/deps/active_admin/lib/active_admin/views/components/paginated_collection.rb +0 -115
- data/vendor/deps/active_admin/lib/active_admin/views/components/panel.rb +0 -34
- data/vendor/deps/active_admin/lib/active_admin/views/components/popover.rb +0 -27
- data/vendor/deps/active_admin/lib/active_admin/views/components/scopes.rb +0 -64
- data/vendor/deps/active_admin/lib/active_admin/views/components/sidebar_section.rb +0 -28
- data/vendor/deps/active_admin/lib/active_admin/views/components/site_title.rb +0 -55
- data/vendor/deps/active_admin/lib/active_admin/views/components/status_tag.rb +0 -56
- data/vendor/deps/active_admin/lib/active_admin/views/components/table_for.rb +0 -191
- data/vendor/deps/active_admin/lib/active_admin/views/dashboard_section_renderer.rb +0 -19
- data/vendor/deps/active_admin/lib/active_admin/views/footer.rb +0 -20
- data/vendor/deps/active_admin/lib/active_admin/views/header.rb +0 -32
- data/vendor/deps/active_admin/lib/active_admin/views/index_as_block.rb +0 -32
- data/vendor/deps/active_admin/lib/active_admin/views/index_as_blog.rb +0 -133
- data/vendor/deps/active_admin/lib/active_admin/views/index_as_grid.rb +0 -72
- data/vendor/deps/active_admin/lib/active_admin/views/index_as_table.rb +0 -234
- data/vendor/deps/active_admin/lib/active_admin/views/pages/base.rb +0 -134
- data/vendor/deps/active_admin/lib/active_admin/views/pages/dashboard.rb +0 -62
- data/vendor/deps/active_admin/lib/active_admin/views/pages/form.rb +0 -51
- data/vendor/deps/active_admin/lib/active_admin/views/pages/index.rb +0 -142
- data/vendor/deps/active_admin/lib/active_admin/views/pages/layout.rb +0 -26
- data/vendor/deps/active_admin/lib/active_admin/views/pages/page.rb +0 -30
- data/vendor/deps/active_admin/lib/active_admin/views/pages/show.rb +0 -59
- data/vendor/deps/active_admin/lib/active_admin/views/tabbed_navigation.rb +0 -135
- data/vendor/deps/active_admin/lib/active_admin/views/title_bar.rb +0 -53
- data/vendor/deps/active_admin/lib/active_admin/views.rb +0 -8
- data/vendor/deps/active_admin/lib/active_admin.rb +0 -141
- data/vendor/deps/active_admin/lib/activeadmin.rb +0 -1
- data/vendor/deps/active_admin/lib/generators/active_admin/assets/assets_generator.rb +0 -39
- data/vendor/deps/active_admin/lib/generators/active_admin/assets/templates/3.0/active_admin.js +0 -1
- data/vendor/deps/active_admin/lib/generators/active_admin/assets/templates/3.1/active_admin.css.scss +0 -29
- data/vendor/deps/active_admin/lib/generators/active_admin/assets/templates/3.1/active_admin.js +0 -1
- data/vendor/deps/active_admin/lib/generators/active_admin/devise/devise_generator.rb +0 -58
- data/vendor/deps/active_admin/lib/generators/active_admin/install/install_generator.rb +0 -50
- data/vendor/deps/active_admin/lib/generators/active_admin/install/templates/active_admin.rb.erb +0 -210
- data/vendor/deps/active_admin/lib/generators/active_admin/install/templates/admin_user.rb.erb +0 -20
- data/vendor/deps/active_admin/lib/generators/active_admin/install/templates/dashboard.rb +0 -33
- data/vendor/deps/active_admin/lib/generators/active_admin/install/templates/migrations/1_create_admin_notes.rb +0 -17
- data/vendor/deps/active_admin/lib/generators/active_admin/install/templates/migrations/2_move_admin_notes_to_comments.rb +0 -26
- data/vendor/deps/active_admin/lib/generators/active_admin/resource/resource_generator.rb +0 -16
- data/vendor/deps/active_admin/lib/generators/active_admin/resource/templates/admin.rb +0 -3
- data/vendor/deps/active_admin/script/local +0 -44
- data/vendor/deps/active_admin/script/use_rails +0 -53
- data/vendor/deps/active_admin/spec/integration/default_namespace.rb +0 -77
- data/vendor/deps/active_admin/spec/integration/javascript_spec.rb +0 -20
- data/vendor/deps/active_admin/spec/integration/memory_spec.rb +0 -28
- data/vendor/deps/active_admin/spec/integration/stylesheets_spec.rb +0 -41
- data/vendor/deps/active_admin/spec/javascripts/coffeescripts/jquery.aa.checkbox-toggler-spec.js.coffee +0 -50
- data/vendor/deps/active_admin/spec/javascripts/coffeescripts/jquery.aa.popover-spec.js.coffee +0 -82
- data/vendor/deps/active_admin/spec/javascripts/coffeescripts/jquery.aa.table-checkbox-toggler-spec.js.coffee +0 -34
- data/vendor/deps/active_admin/spec/javascripts/compiled/jquery.aa.checkbox-toggler-spec.js +0 -60
- data/vendor/deps/active_admin/spec/javascripts/compiled/jquery.aa.popover-spec.js +0 -106
- data/vendor/deps/active_admin/spec/javascripts/compiled/jquery.aa.table-checkbox-toggler-spec.js +0 -37
- data/vendor/deps/active_admin/spec/javascripts/fixtures/checkboxes.html +0 -9
- data/vendor/deps/active_admin/spec/javascripts/fixtures/table_checkboxes.html +0 -17
- data/vendor/deps/active_admin/spec/javascripts/helpers/SpecHelper.js +0 -3
- data/vendor/deps/active_admin/spec/javascripts/helpers/vendor/jasmine-fixture-0.0.5.js +0 -108
- data/vendor/deps/active_admin/spec/javascripts/helpers/vendor/jasmine-jquery.js +0 -288
- data/vendor/deps/active_admin/spec/javascripts/helpers/vendor/sinon-1.2.0.js +0 -2915
- data/vendor/deps/active_admin/spec/javascripts/support/jasmine.yml +0 -74
- data/vendor/deps/active_admin/spec/javascripts/support/jasmine_config.rb +0 -23
- data/vendor/deps/active_admin/spec/javascripts/support/jasmine_runner.rb +0 -32
- data/vendor/deps/active_admin/spec/javascripts/support/jquery-ui-1.8.16.custom.min.js +0 -34
- data/vendor/deps/active_admin/spec/javascripts/support/jquery.min.js +0 -4
- data/vendor/deps/active_admin/spec/spec_helper.rb +0 -165
- data/vendor/deps/active_admin/spec/spec_helper_without_rails.rb +0 -9
- data/vendor/deps/active_admin/spec/support/detect_rails_version.rb +0 -42
- data/vendor/deps/active_admin/spec/support/integration_example_group.rb +0 -31
- data/vendor/deps/active_admin/spec/support/jslint.yml +0 -80
- data/vendor/deps/active_admin/spec/support/rails_template.rb +0 -112
- data/vendor/deps/active_admin/spec/support/rails_template_with_data.rb +0 -59
- data/vendor/deps/active_admin/spec/support/templates/admin/stores.rb +0 -1
- data/vendor/deps/active_admin/spec/support/templates/cucumber.rb +0 -24
- data/vendor/deps/active_admin/spec/support/templates/cucumber_with_reloading.rb +0 -5
- data/vendor/deps/active_admin/spec/support/templates/en.yml +0 -8
- data/vendor/deps/active_admin/spec/support/templates/post_decorator.rb +0 -53
- data/vendor/deps/active_admin/spec/unit/abstract_view_factory_spec.rb +0 -79
- data/vendor/deps/active_admin/spec/unit/action_builder_spec.rb +0 -126
- data/vendor/deps/active_admin/spec/unit/active_admin_spec.rb +0 -25
- data/vendor/deps/active_admin/spec/unit/application_spec.rb +0 -142
- data/vendor/deps/active_admin/spec/unit/asset_registration_spec.rb +0 -43
- data/vendor/deps/active_admin/spec/unit/authorization/authorization_adapter_spec.rb +0 -61
- data/vendor/deps/active_admin/spec/unit/authorization/controller_authorization_spec.rb +0 -47
- data/vendor/deps/active_admin/spec/unit/auto_link_spec.rb +0 -39
- data/vendor/deps/active_admin/spec/unit/base_controller_spec.rb +0 -6
- data/vendor/deps/active_admin/spec/unit/batch_actions/resource_spec.rb +0 -91
- data/vendor/deps/active_admin/spec/unit/batch_actions/settings_spec.rb +0 -61
- data/vendor/deps/active_admin/spec/unit/belongs_to_spec.rb +0 -42
- data/vendor/deps/active_admin/spec/unit/breadcrumbs_spec.rb +0 -143
- data/vendor/deps/active_admin/spec/unit/cancan_adapter_spec.rb +0 -35
- data/vendor/deps/active_admin/spec/unit/comments_spec.rb +0 -124
- data/vendor/deps/active_admin/spec/unit/component_spec.rb +0 -18
- data/vendor/deps/active_admin/spec/unit/config_shared_examples.rb +0 -59
- data/vendor/deps/active_admin/spec/unit/controller_filters_spec.rb +0 -34
- data/vendor/deps/active_admin/spec/unit/csv_builder_spec.rb +0 -103
- data/vendor/deps/active_admin/spec/unit/dashboard_controller_spec.rb +0 -76
- data/vendor/deps/active_admin/spec/unit/dashboard_section_spec.rb +0 -56
- data/vendor/deps/active_admin/spec/unit/dashboards_spec.rb +0 -59
- data/vendor/deps/active_admin/spec/unit/devise_spec.rb +0 -87
- data/vendor/deps/active_admin/spec/unit/display_name_spec.rb +0 -29
- data/vendor/deps/active_admin/spec/unit/dsl_spec.rb +0 -61
- data/vendor/deps/active_admin/spec/unit/event_spec.rb +0 -47
- data/vendor/deps/active_admin/spec/unit/filters/filter_form_builder_spec.rb +0 -281
- data/vendor/deps/active_admin/spec/unit/filters/resource_spec.rb +0 -74
- data/vendor/deps/active_admin/spec/unit/form_builder_spec.rb +0 -426
- data/vendor/deps/active_admin/spec/unit/generators/install_rails_3_1_spec.rb +0 -16
- data/vendor/deps/active_admin/spec/unit/helpers/collection_spec.rb +0 -65
- data/vendor/deps/active_admin/spec/unit/helpers/scope_chain_spec.rb +0 -36
- data/vendor/deps/active_admin/spec/unit/helpers/settings_spec.rb +0 -30
- data/vendor/deps/active_admin/spec/unit/menu_collection_spec.rb +0 -62
- data/vendor/deps/active_admin/spec/unit/menu_item_spec.rb +0 -141
- data/vendor/deps/active_admin/spec/unit/menu_spec.rb +0 -56
- data/vendor/deps/active_admin/spec/unit/namespace/authorization_spec.rb +0 -31
- data/vendor/deps/active_admin/spec/unit/namespace/register_page_spec.rb +0 -99
- data/vendor/deps/active_admin/spec/unit/namespace/register_resource_spec.rb +0 -187
- data/vendor/deps/active_admin/spec/unit/namespace_spec.rb +0 -109
- data/vendor/deps/active_admin/spec/unit/page_controller_spec.rb +0 -5
- data/vendor/deps/active_admin/spec/unit/page_spec.rb +0 -72
- data/vendor/deps/active_admin/spec/unit/pretty_format_spec.rb +0 -35
- data/vendor/deps/active_admin/spec/unit/rails_spec.rb +0 -43
- data/vendor/deps/active_admin/spec/unit/reloader_spec.rb +0 -124
- data/vendor/deps/active_admin/spec/unit/resource/action_items_spec.rb +0 -62
- data/vendor/deps/active_admin/spec/unit/resource/menu_spec.rb +0 -18
- data/vendor/deps/active_admin/spec/unit/resource/naming_spec.rb +0 -81
- data/vendor/deps/active_admin/spec/unit/resource/page_presenters_spec.rb +0 -32
- data/vendor/deps/active_admin/spec/unit/resource/pagination_spec.rb +0 -38
- data/vendor/deps/active_admin/spec/unit/resource/scopes_spec.rb +0 -43
- data/vendor/deps/active_admin/spec/unit/resource/sidebars_spec.rb +0 -43
- data/vendor/deps/active_admin/spec/unit/resource_collection_spec.rb +0 -101
- data/vendor/deps/active_admin/spec/unit/resource_controller/data_access_spec.rb +0 -74
- data/vendor/deps/active_admin/spec/unit/resource_controller/sidebars_spec.rb +0 -46
- data/vendor/deps/active_admin/spec/unit/resource_controller_spec.rb +0 -266
- data/vendor/deps/active_admin/spec/unit/resource_registration_spec.rb +0 -65
- data/vendor/deps/active_admin/spec/unit/resource_spec.rb +0 -250
- data/vendor/deps/active_admin/spec/unit/routing_spec.rb +0 -183
- data/vendor/deps/active_admin/spec/unit/sass/helpers_spec.rb +0 -47
- data/vendor/deps/active_admin/spec/unit/scope_spec.rb +0 -76
- data/vendor/deps/active_admin/spec/unit/view_factory_spec.rb +0 -21
- data/vendor/deps/active_admin/spec/unit/view_helpers/download_format_links_helper_spec.rb +0 -39
- data/vendor/deps/active_admin/spec/unit/view_helpers/fields_for_spec.rb +0 -50
- data/vendor/deps/active_admin/spec/unit/view_helpers/form_helper_spec.rb +0 -22
- data/vendor/deps/active_admin/spec/unit/view_helpers/method_or_proc_helper_spec.rb +0 -97
- data/vendor/deps/active_admin/spec/unit/views/components/action_list_popover_spec.rb +0 -30
- data/vendor/deps/active_admin/spec/unit/views/components/attributes_table_spec.rb +0 -123
- data/vendor/deps/active_admin/spec/unit/views/components/batch_action_popover_spec.rb +0 -33
- data/vendor/deps/active_admin/spec/unit/views/components/blank_slate_spec.rb +0 -17
- data/vendor/deps/active_admin/spec/unit/views/components/columns_spec.rb +0 -142
- data/vendor/deps/active_admin/spec/unit/views/components/paginated_collection_spec.rb +0 -205
- data/vendor/deps/active_admin/spec/unit/views/components/panel_spec.rb +0 -43
- data/vendor/deps/active_admin/spec/unit/views/components/popover_spec.rb +0 -33
- data/vendor/deps/active_admin/spec/unit/views/components/sidebar_section_spec.rb +0 -37
- data/vendor/deps/active_admin/spec/unit/views/components/site_title_spec.rb +0 -78
- data/vendor/deps/active_admin/spec/unit/views/components/status_tag_spec.rb +0 -95
- data/vendor/deps/active_admin/spec/unit/views/components/table_for_spec.rb +0 -182
- data/vendor/deps/active_admin/spec/unit/views/pages/layout_spec.rb +0 -63
- data/vendor/deps/active_admin/spec/unit/views/pages/show_spec.rb +0 -21
- data/vendor/deps/active_admin/spec/unit/views/tabbed_navigation_spec.rb +0 -152
- data/vendor/deps/active_admin/tasks/docs.rake +0 -39
- data/vendor/deps/active_admin/tasks/js.rake +0 -32
- data/vendor/deps/active_admin/tasks/parallel_tests.rake +0 -60
- data/vendor/deps/active_admin/tasks/test.rake +0 -76
- data/vendor/deps/active_admin/tasks/yard.rake +0 -6
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
Feature: Index Scoping
|
|
2
|
-
|
|
3
|
-
Viewing resources and scoping them
|
|
4
|
-
|
|
5
|
-
Scenario: Viewing resources with one scope and no default
|
|
6
|
-
Given 3 posts exist
|
|
7
|
-
And an index configuration of:
|
|
8
|
-
"""
|
|
9
|
-
ActiveAdmin.register Post do
|
|
10
|
-
scope :all
|
|
11
|
-
end
|
|
12
|
-
"""
|
|
13
|
-
Then I should see the scope "All" not selected
|
|
14
|
-
And I should see the scope "All" with the count 3
|
|
15
|
-
And I should see 3 posts in the table
|
|
16
|
-
|
|
17
|
-
Scenario: Viewing resources with one scope as the default
|
|
18
|
-
Given 3 posts exist
|
|
19
|
-
And an index configuration of:
|
|
20
|
-
"""
|
|
21
|
-
ActiveAdmin.register Post do
|
|
22
|
-
scope :all, :default => true
|
|
23
|
-
end
|
|
24
|
-
"""
|
|
25
|
-
Then I should see the scope "All" selected
|
|
26
|
-
And I should see the scope "All" with the count 3
|
|
27
|
-
And I should see 3 posts in the table
|
|
28
|
-
|
|
29
|
-
Scenario: Viewing resources with a scope and no results
|
|
30
|
-
Given 3 posts exist
|
|
31
|
-
And an index configuration of:
|
|
32
|
-
"""
|
|
33
|
-
ActiveAdmin.register Post do
|
|
34
|
-
scope :all, :default => true
|
|
35
|
-
filter :title
|
|
36
|
-
end
|
|
37
|
-
"""
|
|
38
|
-
When I fill in "Search Title" with "Non Existing Post"
|
|
39
|
-
And I press "Filter"
|
|
40
|
-
Then I should see the scope "All" selected
|
|
41
|
-
|
|
42
|
-
Scenario: Viewing resources with a scope but scope_count turned off
|
|
43
|
-
Given 3 posts exist
|
|
44
|
-
And an index configuration of:
|
|
45
|
-
"""
|
|
46
|
-
ActiveAdmin.register Post do
|
|
47
|
-
scope :all, :default => true
|
|
48
|
-
index :as => :table, :scope_count => false
|
|
49
|
-
end
|
|
50
|
-
"""
|
|
51
|
-
Then I should see the scope "All" selected
|
|
52
|
-
And I should see the scope "All" with no count
|
|
53
|
-
And I should see 3 posts in the table
|
|
54
|
-
|
|
55
|
-
@scope
|
|
56
|
-
Scenario: Viewing resources with a scope and scope count turned off for a single scope
|
|
57
|
-
Given 3 posts exist
|
|
58
|
-
And an index configuration of:
|
|
59
|
-
"""
|
|
60
|
-
ActiveAdmin.register Post do
|
|
61
|
-
scope :all, :default => true, :show_count => false
|
|
62
|
-
end
|
|
63
|
-
"""
|
|
64
|
-
Then I should see the scope "All" selected
|
|
65
|
-
And I should see the scope "All" with no count
|
|
66
|
-
And I should see 3 posts in the table
|
|
67
|
-
|
|
68
|
-
Scenario: Viewing resources when scoping
|
|
69
|
-
Given 2 posts exist
|
|
70
|
-
And 3 published posts exist
|
|
71
|
-
And an index configuration of:
|
|
72
|
-
"""
|
|
73
|
-
ActiveAdmin.register Post do
|
|
74
|
-
scope :all, :default => true
|
|
75
|
-
scope :published do |posts|
|
|
76
|
-
posts.where("published_at IS NOT NULL")
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
"""
|
|
80
|
-
Then I should see the scope "All" with the count 5
|
|
81
|
-
And I should see 5 posts in the table
|
|
82
|
-
And I should see the scope "Published" with the count 3
|
|
83
|
-
When I follow "Published"
|
|
84
|
-
Then I should see the scope "Published" selected
|
|
85
|
-
And I should see 3 posts in the table
|
|
86
|
-
|
|
87
|
-
Scenario: Viewing resources when scoping and filtering
|
|
88
|
-
Given 2 posts written by "Daft Punk" exist
|
|
89
|
-
Given 1 published posts written by "Daft Punk" exist
|
|
90
|
-
|
|
91
|
-
Given 1 posts written by "Alfred" exist
|
|
92
|
-
Given 2 published posts written by "Alfred" exist
|
|
93
|
-
|
|
94
|
-
And an index configuration of:
|
|
95
|
-
"""
|
|
96
|
-
ActiveAdmin.register Post do
|
|
97
|
-
scope :all, :default => true
|
|
98
|
-
scope :published do |posts|
|
|
99
|
-
posts.where("published_at IS NOT NULL")
|
|
100
|
-
end
|
|
101
|
-
end
|
|
102
|
-
"""
|
|
103
|
-
Then I should see the scope "All" with the count 6
|
|
104
|
-
And I should see the scope "Published" with the count 3
|
|
105
|
-
And I should see 6 posts in the table
|
|
106
|
-
|
|
107
|
-
When I follow "Published"
|
|
108
|
-
Then I should see the scope "Published" selected
|
|
109
|
-
And I should see the scope "All" with the count 6
|
|
110
|
-
And I should see the scope "Published" with the count 3
|
|
111
|
-
And I should see 3 posts in the table
|
|
112
|
-
|
|
113
|
-
When I select "daft_punk" from "Author"
|
|
114
|
-
And I press "Filter"
|
|
115
|
-
|
|
116
|
-
Then I should see the scope "Published" selected
|
|
117
|
-
And I should see the scope "All" with the count 3
|
|
118
|
-
And I should see the scope "Published" with the count 1
|
|
119
|
-
And I should see 1 posts in the table
|
|
120
|
-
|
|
121
|
-
Scenario: Viewing resources with optional scopes
|
|
122
|
-
Given 3 posts exist
|
|
123
|
-
And an index configuration of:
|
|
124
|
-
"""
|
|
125
|
-
ActiveAdmin.register Post do
|
|
126
|
-
scope :all, :if => proc { false }
|
|
127
|
-
scope "Shown", :if => proc { true } do |posts|
|
|
128
|
-
posts
|
|
129
|
-
end
|
|
130
|
-
scope "Default", :default => true do |posts|
|
|
131
|
-
posts
|
|
132
|
-
end
|
|
133
|
-
scope 'Today', :if => proc { false } do |posts|
|
|
134
|
-
posts.where(["created_at > ? AND created_at < ?", ::Time.zone.now.beginning_of_day, ::Time.zone.now.end_of_day])
|
|
135
|
-
end
|
|
136
|
-
end
|
|
137
|
-
"""
|
|
138
|
-
Then I should see the scope "Default" selected
|
|
139
|
-
And I should not see the scope "All"
|
|
140
|
-
And I should not see the scope "Today"
|
|
141
|
-
And I should see the scope "Shown"
|
|
142
|
-
And I should see the scope "Default" with the count 3
|
|
143
|
-
|
|
144
|
-
Scenario: Viewing resources with multiple scopes as blocks
|
|
145
|
-
Given 3 posts exist
|
|
146
|
-
And an index configuration of:
|
|
147
|
-
"""
|
|
148
|
-
ActiveAdmin.register Post do
|
|
149
|
-
scope 'Today', :default => true do |posts|
|
|
150
|
-
posts.where(["created_at > ? AND created_at < ?", ::Time.zone.now.beginning_of_day, ::Time.zone.now.end_of_day])
|
|
151
|
-
end
|
|
152
|
-
scope 'Tomorrow' do |posts|
|
|
153
|
-
posts.where(["created_at > ? AND created_at < ?", ::Time.zone.now.beginning_of_day + 1.day, ::Time.zone.now.end_of_day + 1.day])
|
|
154
|
-
end
|
|
155
|
-
end
|
|
156
|
-
"""
|
|
157
|
-
Then I should see the scope "Today" selected
|
|
158
|
-
And I should see the scope "Tomorrow" not selected
|
|
159
|
-
And I should see the scope "Today" with the count 3
|
|
160
|
-
And I should see the scope "Tomorrow" with the count 0
|
|
161
|
-
And I should see 3 posts in the table
|
|
162
|
-
And I should see a link to "Tomorrow"
|
|
163
|
-
|
|
164
|
-
When I follow "Tomorrow"
|
|
165
|
-
Then I should see the scope "Tomorrow" selected
|
|
166
|
-
And I should see the scope "Today" not selected
|
|
167
|
-
And I should see a link to "Today"
|
|
168
|
-
|
|
169
|
-
Scenario: Viewing resources with scopes when scoping to user
|
|
170
|
-
Given 2 posts written by "Daft Punk" exist
|
|
171
|
-
And a post with the title "Monkey Wrench" written by "Foo Fighters" exists
|
|
172
|
-
And a post with the title "Everlong" written by "Foo Fighters" exists
|
|
173
|
-
And an index configuration of:
|
|
174
|
-
"""
|
|
175
|
-
ActiveAdmin.register Post do
|
|
176
|
-
scope_to :current_user
|
|
177
|
-
scope :all, :default => true
|
|
178
|
-
|
|
179
|
-
filter :title
|
|
180
|
-
|
|
181
|
-
controller do
|
|
182
|
-
def current_user
|
|
183
|
-
User.find_by_username('foo_fighters')
|
|
184
|
-
end
|
|
185
|
-
end
|
|
186
|
-
end
|
|
187
|
-
"""
|
|
188
|
-
Then I should see the scope "All" selected
|
|
189
|
-
And I should see the scope "All" with the count 2
|
|
190
|
-
When I fill in "Search Title" with "Monkey"
|
|
191
|
-
And I press "Filter"
|
|
192
|
-
Then I should see the scope "All" selected
|
|
193
|
-
And I should see the scope "All" with the count 1
|
|
194
|
-
|
|
195
|
-
Scenario: Viewing resources when scoping and filtering and group bys and stuff
|
|
196
|
-
Given 2 posts written by "Daft Punk" exist
|
|
197
|
-
Given 1 published posts written by "Daft Punk" exist
|
|
198
|
-
|
|
199
|
-
Given 1 posts written by "Alfred" exist
|
|
200
|
-
|
|
201
|
-
And an index configuration of:
|
|
202
|
-
"""
|
|
203
|
-
ActiveAdmin.register Post do
|
|
204
|
-
scope :all, :default => true
|
|
205
|
-
scope :published do |posts|
|
|
206
|
-
posts.where("published_at IS NOT NULL")
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
index do
|
|
210
|
-
column :author_id
|
|
211
|
-
column :count
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
config.sort_order = "author_id_asc"
|
|
215
|
-
|
|
216
|
-
controller do
|
|
217
|
-
def scoped_collection
|
|
218
|
-
Post.select("author_id, count(*) as count").group("author_id")
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
end
|
|
222
|
-
"""
|
|
223
|
-
Then I should see the scope "All" with the count 2
|
|
224
|
-
And I should see the scope "Published" with the count 1
|
|
225
|
-
And I should see 2 posts in the table
|
|
226
|
-
|
|
227
|
-
When I follow "Published"
|
|
228
|
-
Then I should see the scope "Published" selected
|
|
229
|
-
And I should see the scope "All" with the count 2
|
|
230
|
-
And I should see the scope "Published" with the count 1
|
|
231
|
-
And I should see 1 posts in the table
|
|
232
|
-
|
|
233
|
-
When I select "daft_punk" from "Author"
|
|
234
|
-
And I press "Filter"
|
|
235
|
-
|
|
236
|
-
Then I should see the scope "Published" selected
|
|
237
|
-
And I should see the scope "All" with the count 1
|
|
238
|
-
And I should see the scope "Published" with the count 1
|
|
239
|
-
And I should see 1 posts in the table
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
Feature: Index - Page Title
|
|
2
|
-
|
|
3
|
-
Modifying the page title on the index screen
|
|
4
|
-
|
|
5
|
-
Scenario: Set a string as the title
|
|
6
|
-
Given an index configuration of:
|
|
7
|
-
"""
|
|
8
|
-
ActiveAdmin.register Post do
|
|
9
|
-
index :title => "Awesome Title"
|
|
10
|
-
end
|
|
11
|
-
"""
|
|
12
|
-
Then I should see the page title "Awesome Title"
|
|
13
|
-
|
|
14
|
-
Scenario: Set the title using a proc
|
|
15
|
-
Given an index configuration of:
|
|
16
|
-
"""
|
|
17
|
-
ActiveAdmin.register Post do
|
|
18
|
-
index :title => proc{ 'Custom title from proc' }
|
|
19
|
-
end
|
|
20
|
-
"""
|
|
21
|
-
Then I should see the page title "Custom title from proc"
|
|
22
|
-
|
|
23
|
-
Scenario: Set the title using a proc that uses the available resource class
|
|
24
|
-
Given an index configuration of:
|
|
25
|
-
"""
|
|
26
|
-
ActiveAdmin.register Post do
|
|
27
|
-
index :title => proc{ "List of #{resource_class.model_name.plural}" }
|
|
28
|
-
end
|
|
29
|
-
"""
|
|
30
|
-
Then I should see the page title "List of posts"
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
Feature: Index Pagination
|
|
2
|
-
|
|
3
|
-
Background:
|
|
4
|
-
Scenario: Viewing index when one page of resources exist
|
|
5
|
-
Given an index configuration of:
|
|
6
|
-
"""
|
|
7
|
-
ActiveAdmin.register Post
|
|
8
|
-
"""
|
|
9
|
-
Given 20 posts exist
|
|
10
|
-
When I am on the index page for posts
|
|
11
|
-
Then I should see "Displaying all 20 Posts"
|
|
12
|
-
And I should not see pagination
|
|
13
|
-
|
|
14
|
-
Scenario: Viewing index when multiple pages of resources exist
|
|
15
|
-
Given an index configuration of:
|
|
16
|
-
"""
|
|
17
|
-
ActiveAdmin.register Post
|
|
18
|
-
"""
|
|
19
|
-
Given 31 posts exist
|
|
20
|
-
When I am on the index page for posts
|
|
21
|
-
Then I should see pagination with 2 pages
|
|
22
|
-
|
|
23
|
-
Scenario: Viewing index with a custom per page set
|
|
24
|
-
Given an index configuration of:
|
|
25
|
-
"""
|
|
26
|
-
ActiveAdmin.register Post do
|
|
27
|
-
config.per_page = 2
|
|
28
|
-
end
|
|
29
|
-
"""
|
|
30
|
-
Given 3 posts exist
|
|
31
|
-
When I am on the index page for posts
|
|
32
|
-
Then I should see pagination with 2 pages
|
|
33
|
-
And I should see "Displaying Posts 1 - 2 of 3 in total"
|
|
34
|
-
|
|
35
|
-
Scenario: Viewing index with pagination disabled
|
|
36
|
-
Given an index configuration of:
|
|
37
|
-
"""
|
|
38
|
-
ActiveAdmin.register Post do
|
|
39
|
-
config.paginate = false
|
|
40
|
-
end
|
|
41
|
-
"""
|
|
42
|
-
Given 31 posts exist
|
|
43
|
-
When I am on the index page for posts
|
|
44
|
-
Then I should not see pagination
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
Feature: Menu
|
|
2
|
-
|
|
3
|
-
Background:
|
|
4
|
-
Given I am logged in
|
|
5
|
-
|
|
6
|
-
Scenario: Hide the menu item
|
|
7
|
-
Given a configuration of:
|
|
8
|
-
"""
|
|
9
|
-
ActiveAdmin.register Post do
|
|
10
|
-
menu false
|
|
11
|
-
end
|
|
12
|
-
"""
|
|
13
|
-
When I am on the dashboard
|
|
14
|
-
Then I should not see a menu item for "Posts"
|
|
15
|
-
|
|
16
|
-
Scenario: Set the menu item label
|
|
17
|
-
Given a configuration of:
|
|
18
|
-
"""
|
|
19
|
-
ActiveAdmin.register Post do
|
|
20
|
-
menu :label => "Articles"
|
|
21
|
-
end
|
|
22
|
-
"""
|
|
23
|
-
When I am on the dashboard
|
|
24
|
-
Then I should see a menu item for "Articles"
|
|
25
|
-
And I should not see a menu item for "Posts"
|
|
26
|
-
|
|
27
|
-
Scenario: Add a non-resource menu item
|
|
28
|
-
Given a configuration of:
|
|
29
|
-
"""
|
|
30
|
-
ActiveAdmin.application.namespace :admin do |admin|
|
|
31
|
-
admin.build_menu do |menu|
|
|
32
|
-
menu.add :label => "Custom Menu", :url => :admin_dashboard_path
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
"""
|
|
36
|
-
When I am on the dashboard
|
|
37
|
-
Then I should see a menu item for "Custom Menu"
|
|
38
|
-
When I follow "Custom Menu"
|
|
39
|
-
Then I should be on the admin dashboard page
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
Feature: New Page
|
|
2
|
-
|
|
3
|
-
Customizing the form to create new resources
|
|
4
|
-
|
|
5
|
-
Background:
|
|
6
|
-
Given a category named "Music" exists
|
|
7
|
-
Given a user named "John Doe" exists
|
|
8
|
-
And I am logged in
|
|
9
|
-
Given a configuration of:
|
|
10
|
-
"""
|
|
11
|
-
ActiveAdmin.register Post
|
|
12
|
-
"""
|
|
13
|
-
When I am on the index page for posts
|
|
14
|
-
|
|
15
|
-
Scenario: Default form with no config
|
|
16
|
-
Given I follow "New Post"
|
|
17
|
-
When I fill in "Title" with "Hello World"
|
|
18
|
-
And I fill in "Body" with "This is the body"
|
|
19
|
-
And I select "Music" from "Category"
|
|
20
|
-
And I select "John Doe" from "Author"
|
|
21
|
-
And I press "Create Post"
|
|
22
|
-
Then I should see "Post was successfully created."
|
|
23
|
-
And I should see the attribute "Title" with "Hello World"
|
|
24
|
-
And I should see the attribute "Body" with "This is the body"
|
|
25
|
-
And I should see the attribute "Category" with "Music"
|
|
26
|
-
And I should see the attribute "Author" with "John Doe"
|
|
27
|
-
|
|
28
|
-
Scenario: Generating a custom form
|
|
29
|
-
Given a configuration of:
|
|
30
|
-
"""
|
|
31
|
-
ActiveAdmin.register Post do
|
|
32
|
-
form do |f|
|
|
33
|
-
f.inputs "Your Post" do
|
|
34
|
-
f.input :title
|
|
35
|
-
f.input :body
|
|
36
|
-
end
|
|
37
|
-
f.inputs "Publishing" do
|
|
38
|
-
f.input :published_at
|
|
39
|
-
end
|
|
40
|
-
f.actions
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
"""
|
|
44
|
-
Given I follow "New Post"
|
|
45
|
-
Then I should see a fieldset titled "Your Post"
|
|
46
|
-
And I should see a fieldset titled "Publishing"
|
|
47
|
-
When I fill in "Title" with "Hello World"
|
|
48
|
-
And I fill in "Body" with "This is the body"
|
|
49
|
-
And I press "Create Post"
|
|
50
|
-
Then I should see "Post was successfully created."
|
|
51
|
-
And I should see the attribute "Title" with "Hello World"
|
|
52
|
-
And I should see the attribute "Body" with "This is the body"
|
|
53
|
-
|
|
54
|
-
Scenario: Generating a form from a partial
|
|
55
|
-
Given "app/views/admin/posts/_form.html.erb" contains:
|
|
56
|
-
"""
|
|
57
|
-
<% url = @post.new_record? ? admin_posts_path : admin_post_path(@post) %>
|
|
58
|
-
<%= active_admin_form_for @post, :url => url do |f|
|
|
59
|
-
f.inputs :title, :body
|
|
60
|
-
f.actions
|
|
61
|
-
end %>
|
|
62
|
-
"""
|
|
63
|
-
Given a configuration of:
|
|
64
|
-
"""
|
|
65
|
-
ActiveAdmin.register Post do
|
|
66
|
-
form :partial => "form"
|
|
67
|
-
end
|
|
68
|
-
"""
|
|
69
|
-
Given I follow "New Post"
|
|
70
|
-
When I fill in "Title" with "Hello World"
|
|
71
|
-
And I fill in "Body" with "This is the body"
|
|
72
|
-
And I press "Create Post"
|
|
73
|
-
Then I should see "Post was successfully created."
|
|
74
|
-
And I should see the attribute "Title" with "Hello World"
|
|
75
|
-
And I should see the attribute "Body" with "This is the body"
|
|
76
|
-
|
|
77
|
-
Scenario: Displaying fields at runtime
|
|
78
|
-
Given a configuration of:
|
|
79
|
-
"""
|
|
80
|
-
ActiveAdmin.register Post do
|
|
81
|
-
form do |f|
|
|
82
|
-
f.inputs "Your Post" do
|
|
83
|
-
if current_admin_user && false
|
|
84
|
-
f.input :title
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
f.input :body
|
|
88
|
-
end
|
|
89
|
-
f.inputs "Publishing" do
|
|
90
|
-
f.input :published_at
|
|
91
|
-
end
|
|
92
|
-
f.actions
|
|
93
|
-
end
|
|
94
|
-
end
|
|
95
|
-
"""
|
|
96
|
-
Given I follow "New Post"
|
|
97
|
-
Then I should not see "Title"
|
|
98
|
-
And I should see "Body"
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
Feature: Registering Assets
|
|
2
|
-
|
|
3
|
-
Registering CSS and JS files
|
|
4
|
-
|
|
5
|
-
Background:
|
|
6
|
-
Given a configuration of:
|
|
7
|
-
"""
|
|
8
|
-
ActiveAdmin.register Post
|
|
9
|
-
"""
|
|
10
|
-
And I am logged in
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Scenario: Viewing default asset files
|
|
14
|
-
When I am on the index page for posts
|
|
15
|
-
Then I should see the css file "admin/active_admin.css"
|
|
16
|
-
Then I should see the js file "active_admin_vendor.js"
|
|
17
|
-
Then I should see the js file "active_admin.js"
|
|
18
|
-
|
|
19
|
-
Scenario: Registering a CSS file
|
|
20
|
-
Given a configuration of:
|
|
21
|
-
"""
|
|
22
|
-
ActiveAdmin.application.register_stylesheet "some-random-css.css", :media => :print
|
|
23
|
-
ActiveAdmin.register Post
|
|
24
|
-
"""
|
|
25
|
-
When I am on the index page for posts
|
|
26
|
-
Then I should see the css file "some-random-css.css" of media "print"
|
|
27
|
-
|
|
28
|
-
Scenario: Registering a JS file
|
|
29
|
-
Given a configuration of:
|
|
30
|
-
"""
|
|
31
|
-
ActiveAdmin.application.register_javascript "some-random-js.js"
|
|
32
|
-
ActiveAdmin.register Post
|
|
33
|
-
"""
|
|
34
|
-
When I am on the index page for posts
|
|
35
|
-
Then I should see the js file "some-random-js.js"
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
Feature: Registering Pages
|
|
2
|
-
|
|
3
|
-
Registering pages within Active Admin
|
|
4
|
-
|
|
5
|
-
Background:
|
|
6
|
-
Given I am logged in
|
|
7
|
-
|
|
8
|
-
Scenario: Registering a page
|
|
9
|
-
Given a configuration of:
|
|
10
|
-
"""
|
|
11
|
-
ActiveAdmin.register_page "Status" do
|
|
12
|
-
content do
|
|
13
|
-
"I love chocolate."
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
"""
|
|
17
|
-
When I go to the dashboard
|
|
18
|
-
And I follow "Status"
|
|
19
|
-
Then I should see the page title "Status"
|
|
20
|
-
And I should see the Active Admin layout
|
|
21
|
-
And I should see the content "I love chocolate."
|
|
22
|
-
|
|
23
|
-
Scenario: Registering a page with a complex name
|
|
24
|
-
Given a configuration of:
|
|
25
|
-
"""
|
|
26
|
-
ActiveAdmin.register_page "Chocolate I lØve You!" do
|
|
27
|
-
content do
|
|
28
|
-
"I love chocolate."
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
"""
|
|
32
|
-
When I go to the dashboard
|
|
33
|
-
And I follow "Chocolate I lØve You!"
|
|
34
|
-
Then I should see the page title "Chocolate I lØve You!"
|
|
35
|
-
And I should see the Active Admin layout
|
|
36
|
-
And I should see the content "I love chocolate."
|
|
37
|
-
|
|
38
|
-
Scenario: Registering an empty page
|
|
39
|
-
Given a configuration of:
|
|
40
|
-
"""
|
|
41
|
-
ActiveAdmin.register_page "Status"
|
|
42
|
-
"""
|
|
43
|
-
When I go to the dashboard
|
|
44
|
-
And I follow "Status"
|
|
45
|
-
Then I should see the page title "Status"
|
|
46
|
-
And I should see the Active Admin layout
|
|
47
|
-
|
|
48
|
-
Scenario: Registering a page with a custom title as a string
|
|
49
|
-
Given a configuration of:
|
|
50
|
-
"""
|
|
51
|
-
ActiveAdmin.register_page "Status" do
|
|
52
|
-
content :title => "Custom Page Title" do
|
|
53
|
-
"I love chocolate."
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
"""
|
|
57
|
-
When I go to the dashboard
|
|
58
|
-
And I follow "Status"
|
|
59
|
-
Then I should see the page title "Custom Page Title"
|
|
60
|
-
|
|
61
|
-
Scenario: Registering a page with a custom title as a proc
|
|
62
|
-
Given a configuration of:
|
|
63
|
-
"""
|
|
64
|
-
ActiveAdmin.register_page "Status" do
|
|
65
|
-
content :title => proc{ "Custom Page Title from Proc" } do
|
|
66
|
-
"I love chocolate."
|
|
67
|
-
end
|
|
68
|
-
end
|
|
69
|
-
"""
|
|
70
|
-
When I go to the dashboard
|
|
71
|
-
And I follow "Status"
|
|
72
|
-
Then I should see the page title "Custom Page Title from Proc"
|
|
73
|
-
|
|
74
|
-
Scenario: Adding a sidebar section to a page
|
|
75
|
-
Given a configuration of:
|
|
76
|
-
"""
|
|
77
|
-
ActiveAdmin.register_page "Status" do
|
|
78
|
-
sidebar :help do
|
|
79
|
-
"Need help? Email us at help@example.com"
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
content do
|
|
83
|
-
"I love chocolate."
|
|
84
|
-
end
|
|
85
|
-
end
|
|
86
|
-
"""
|
|
87
|
-
When I go to the dashboard
|
|
88
|
-
And I follow "Status"
|
|
89
|
-
Then I should see a sidebar titled "Help"
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
Scenario: Adding an action item to a page
|
|
93
|
-
Given a configuration of:
|
|
94
|
-
"""
|
|
95
|
-
ActiveAdmin.register_page "Status" do
|
|
96
|
-
action_item do
|
|
97
|
-
link_to "Visit", "/"
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
content do
|
|
101
|
-
"I love chocolate."
|
|
102
|
-
end
|
|
103
|
-
end
|
|
104
|
-
"""
|
|
105
|
-
When I go to the dashboard
|
|
106
|
-
And I follow "Status"
|
|
107
|
-
Then I should see an action item link to "Visit"
|
|
108
|
-
|
|
109
|
-
Scenario: Adding a page action to a page
|
|
110
|
-
Given a configuration of:
|
|
111
|
-
"""
|
|
112
|
-
ActiveAdmin.register_page "Status" do
|
|
113
|
-
page_action :check do
|
|
114
|
-
redirect_to admin_status_path
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
content do
|
|
118
|
-
("Chocolate I lØve You!" + link_to("Check", admin_status_check_path)).html_safe
|
|
119
|
-
end
|
|
120
|
-
end
|
|
121
|
-
"""
|
|
122
|
-
When I go to the dashboard
|
|
123
|
-
And I follow "Status"
|
|
124
|
-
And I follow "Check"
|
|
125
|
-
Then I should see the content "Chocolate I lØve You!"
|
|
126
|
-
And I should see the Active Admin layout
|
|
127
|
-
|
|
128
|
-
Scenario: Adding a page action to a page with erb view
|
|
129
|
-
Given a configuration of:
|
|
130
|
-
"""
|
|
131
|
-
ActiveAdmin.register_page "Status" do
|
|
132
|
-
page_action :check do
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
content do
|
|
136
|
-
("Chocolate I lØve You!" + link_to("Check", admin_status_check_path)).html_safe
|
|
137
|
-
end
|
|
138
|
-
end
|
|
139
|
-
"""
|
|
140
|
-
Given "app/views/admin/status/check.html.erb" contains:
|
|
141
|
-
"""
|
|
142
|
-
<div>Chocolate lØves You Too!</div>
|
|
143
|
-
"""
|
|
144
|
-
When I go to the dashboard
|
|
145
|
-
And I follow "Status"
|
|
146
|
-
And I follow "Check"
|
|
147
|
-
Then I should see the content "Chocolate lØves You Too!"
|
|
148
|
-
And I should see the Active Admin layout
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
Feature: Registering Resources
|
|
2
|
-
|
|
3
|
-
Registering resources within Active Admin
|
|
4
|
-
|
|
5
|
-
Background:
|
|
6
|
-
Given I am logged in
|
|
7
|
-
And a post with the title "Hello World" exists
|
|
8
|
-
|
|
9
|
-
Scenario: Registering a resource with the defaults
|
|
10
|
-
Given a configuration of:
|
|
11
|
-
"""
|
|
12
|
-
ActiveAdmin.register Post
|
|
13
|
-
"""
|
|
14
|
-
When I go to the dashboard
|
|
15
|
-
Then I should see "Posts"
|
|
16
|
-
When I follow "Posts"
|
|
17
|
-
Then I should see "Hello World"
|
|
18
|
-
When I follow "View"
|
|
19
|
-
Then I should see "Hello World"
|
|
20
|
-
And I should be in the resource section for Post
|
|
21
|
-
|
|
22
|
-
Scenario: Registering a resource with another name
|
|
23
|
-
Given a configuration of:
|
|
24
|
-
"""
|
|
25
|
-
ActiveAdmin.register Post, :as => "My Post"
|
|
26
|
-
"""
|
|
27
|
-
When I go to the dashboard
|
|
28
|
-
Then I should see "My Posts"
|
|
29
|
-
When I follow "My Posts"
|
|
30
|
-
Then I should see "Hello World"
|
|
31
|
-
When I follow "View"
|
|
32
|
-
Then I should see "Hello World"
|
|
33
|
-
And I should be in the resource section for My Post
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
Feature: Namespace root
|
|
2
|
-
|
|
3
|
-
As a developer
|
|
4
|
-
In order to customize the welcome page
|
|
5
|
-
I want to set it in the configuration
|
|
6
|
-
|
|
7
|
-
Scenario: Default root is the Dashboard
|
|
8
|
-
Given I am logged in with capybara
|
|
9
|
-
Then I should be on the dashboard
|
|
10
|
-
|
|
11
|
-
Scenario: Set root to "stores#index"
|
|
12
|
-
Given a configuration of:
|
|
13
|
-
"""
|
|
14
|
-
ActiveAdmin.application.root_to = 'stores#index'
|
|
15
|
-
"""
|
|
16
|
-
Given I am logged in with capybara
|
|
17
|
-
Then I should see the page title "Bookstores"
|