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,126 +0,0 @@
|
|
|
1
|
-
Feature: Commenting
|
|
2
|
-
|
|
3
|
-
As a user
|
|
4
|
-
In order to document changes and have a discussion
|
|
5
|
-
I want to store and view comments on a resource
|
|
6
|
-
|
|
7
|
-
Background:
|
|
8
|
-
Given a post with the title "Hello World" written by "Jane Doe" exists
|
|
9
|
-
|
|
10
|
-
Scenario: View a resource with no comments
|
|
11
|
-
Given a show configuration of:
|
|
12
|
-
"""
|
|
13
|
-
ActiveAdmin.register Post
|
|
14
|
-
"""
|
|
15
|
-
Then I should see "Comments (0)"
|
|
16
|
-
And I should see "No comments yet."
|
|
17
|
-
|
|
18
|
-
Scenario: Create a new comment
|
|
19
|
-
Given a show configuration of:
|
|
20
|
-
"""
|
|
21
|
-
ActiveAdmin.register Post
|
|
22
|
-
"""
|
|
23
|
-
When I add a comment "Hello from Comment"
|
|
24
|
-
Then I should see a flash with "Comment was successfully created"
|
|
25
|
-
And I should be in the resource section for posts
|
|
26
|
-
And I should see "Comments (1)"
|
|
27
|
-
And I should see "Hello from Comment"
|
|
28
|
-
And I should see a comment by "admin@example.com"
|
|
29
|
-
|
|
30
|
-
Scenario: View resource with comments turned off
|
|
31
|
-
Given a show configuration of:
|
|
32
|
-
"""
|
|
33
|
-
ActiveAdmin.register Post do
|
|
34
|
-
config.comments = false
|
|
35
|
-
end
|
|
36
|
-
"""
|
|
37
|
-
Then I should not see "Comments"
|
|
38
|
-
|
|
39
|
-
Scenario: View a resource in a namespace that doesn't have comments
|
|
40
|
-
Given a configuration of:
|
|
41
|
-
"""
|
|
42
|
-
post_config = ActiveAdmin.register Post, :namespace => :new_namespace
|
|
43
|
-
post_config.namespace.allow_comments = false
|
|
44
|
-
"""
|
|
45
|
-
Given I am logged in
|
|
46
|
-
When I am on the index page for posts in the new_namespace namespace
|
|
47
|
-
And I follow "View"
|
|
48
|
-
Then I should not see "Comments"
|
|
49
|
-
|
|
50
|
-
Scenario: Creating a comment in one namespace does not create it in another
|
|
51
|
-
Given a show configuration of:
|
|
52
|
-
"""
|
|
53
|
-
ActiveAdmin.register Post
|
|
54
|
-
ActiveAdmin.register Post, :namespace => :public
|
|
55
|
-
"""
|
|
56
|
-
When I add a comment "Hello world in admin namespace"
|
|
57
|
-
Then I should see "Hello world in admin namespace"
|
|
58
|
-
|
|
59
|
-
When I am on the index page for posts in the public namespace
|
|
60
|
-
And I follow "View"
|
|
61
|
-
Then I should not see "Hello world in admin namespace"
|
|
62
|
-
And I should see "Comments (0)"
|
|
63
|
-
|
|
64
|
-
When I add a comment "Hello world in public namespace"
|
|
65
|
-
Then I should see "Hello world in public namespace"
|
|
66
|
-
When I am on the index page for posts in the admin namespace
|
|
67
|
-
And I follow "View"
|
|
68
|
-
Then I should not see "Hello world in public namespace"
|
|
69
|
-
And I should see "Comments (1)"
|
|
70
|
-
|
|
71
|
-
Scenario: Creating a comment on an aliased resource
|
|
72
|
-
Given a configuration of:
|
|
73
|
-
"""
|
|
74
|
-
ActiveAdmin.register Post, :as => "Article"
|
|
75
|
-
"""
|
|
76
|
-
Given I am logged in
|
|
77
|
-
When I am on the index page for articles
|
|
78
|
-
And I follow "View"
|
|
79
|
-
When I add a comment "Hello from Comment"
|
|
80
|
-
Then I should see a flash with "Comment was successfully created"
|
|
81
|
-
And I should be in the resource section for articles
|
|
82
|
-
|
|
83
|
-
Scenario: Create an empty comment
|
|
84
|
-
Given a show configuration of:
|
|
85
|
-
"""
|
|
86
|
-
ActiveAdmin.register Post
|
|
87
|
-
"""
|
|
88
|
-
When I add a comment ""
|
|
89
|
-
Then I should see a flash with "Comment wasn't saved, text was empty."
|
|
90
|
-
And I should see "Comments (0)"
|
|
91
|
-
|
|
92
|
-
Scenario: Viewing all comments for a namespace
|
|
93
|
-
Given a show configuration of:
|
|
94
|
-
"""
|
|
95
|
-
ActiveAdmin.register Post
|
|
96
|
-
"""
|
|
97
|
-
When I add a comment "Hello from Comment"
|
|
98
|
-
When I am on the index page for comments
|
|
99
|
-
Then I should see a table header with "Body"
|
|
100
|
-
And I should see "Hello from Comment"
|
|
101
|
-
|
|
102
|
-
Scenario: Commenting on a STI subclass
|
|
103
|
-
Given a configuration of:
|
|
104
|
-
"""
|
|
105
|
-
ActiveAdmin.register User
|
|
106
|
-
"""
|
|
107
|
-
Given I am logged in
|
|
108
|
-
And a publisher named "Pragmatic Publishers" exists
|
|
109
|
-
When I am on the index page for users
|
|
110
|
-
And I follow "View"
|
|
111
|
-
When I add a comment "Hello World"
|
|
112
|
-
Then I should see a flash with "Comment was successfully created"
|
|
113
|
-
And I should be in the resource section for users
|
|
114
|
-
|
|
115
|
-
Scenario: Commenting on a class with string id
|
|
116
|
-
Given a tag with the name "coolness" exists
|
|
117
|
-
Given a configuration of:
|
|
118
|
-
"""
|
|
119
|
-
ActiveAdmin.register Tag
|
|
120
|
-
"""
|
|
121
|
-
Given I am logged in
|
|
122
|
-
When I am on the index page for tags
|
|
123
|
-
And I follow "View"
|
|
124
|
-
When I add a comment "Tag Comment"
|
|
125
|
-
Then I should see a flash with "Comment was successfully created"
|
|
126
|
-
And I should be in the resource section for tags
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Feature: Viewing Index of Comments
|
|
2
|
-
|
|
3
|
-
Background:
|
|
4
|
-
Given a post with the title "Hello World" written by "Jane Doe" exists
|
|
5
|
-
Given a show configuration of:
|
|
6
|
-
"""
|
|
7
|
-
ActiveAdmin.register Post
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
Scenario: Viewing all commments for a namespace
|
|
11
|
-
When I add a comment "Hello from Comment"
|
|
12
|
-
When I am on the index page for comments
|
|
13
|
-
Then I should see a table header with "Body"
|
|
14
|
-
And I should see a table header with "Resource"
|
|
15
|
-
And I should see a table header with "Author"
|
|
16
|
-
And I should see "Hello from Comment"
|
|
17
|
-
And I should see a link to "Hello World"
|
|
18
|
-
And I should see "admin@example.com"
|
|
19
|
-
And I should not see an action item button "New Comment"
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
Feature: Dashboard
|
|
2
|
-
|
|
3
|
-
@dashboard
|
|
4
|
-
Scenario: With default configuration
|
|
5
|
-
Given a configuration of:
|
|
6
|
-
"""
|
|
7
|
-
ActiveAdmin.register_page "Dashboard" do
|
|
8
|
-
content do
|
|
9
|
-
para "Hello world from the dashboard page"
|
|
10
|
-
end
|
|
11
|
-
end
|
|
12
|
-
"""
|
|
13
|
-
Given I am logged in
|
|
14
|
-
When I go to the dashboard
|
|
15
|
-
Then I should see the Active Admin layout
|
|
16
|
-
And I should not see the default welcome message
|
|
17
|
-
And I should see "Hello world from the dashboard page"
|
|
18
|
-
|
|
19
|
-
@dashboard
|
|
20
|
-
Scenario: DEPRECATED - With default configuration
|
|
21
|
-
Given a configuration of:
|
|
22
|
-
"""
|
|
23
|
-
ActiveAdmin::Dashboards.build do
|
|
24
|
-
end
|
|
25
|
-
"""
|
|
26
|
-
Given I am logged in
|
|
27
|
-
When I go to the dashboard
|
|
28
|
-
Then I should see the Active Admin layout
|
|
29
|
-
And I should see the default welcome message
|
|
30
|
-
|
|
31
|
-
@dashboard
|
|
32
|
-
Scenario: DEPRECATED - Displaying a dashboard widget
|
|
33
|
-
Given a configuration of:
|
|
34
|
-
"""
|
|
35
|
-
ActiveAdmin::Dashboards.build do
|
|
36
|
-
section 'Hello World' do
|
|
37
|
-
para "Hello world from the content"
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
"""
|
|
41
|
-
Given I am logged in
|
|
42
|
-
When I go to the dashboard
|
|
43
|
-
Then I should see the Active Admin layout
|
|
44
|
-
And I should not see the default welcome message
|
|
45
|
-
And I should see a dashboard widget "Hello World"
|
|
46
|
-
And I should see "Hello world from the content"
|
|
47
|
-
|
|
48
|
-
@dashboard
|
|
49
|
-
Scenario: DEPRECATED - Displaying a dashboard widget using the ':if' option
|
|
50
|
-
Given a configuration of:
|
|
51
|
-
"""
|
|
52
|
-
ActiveAdmin::Dashboards.build do
|
|
53
|
-
section 'Hello World', :if => proc{ current_admin_user } do
|
|
54
|
-
"Hello world from the content"
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
section 'Hidden by If', :if => proc{ false } do
|
|
58
|
-
"Hello world from the content"
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
"""
|
|
62
|
-
Given I am logged in
|
|
63
|
-
When I go to the dashboard
|
|
64
|
-
Then I should see the Active Admin layout
|
|
65
|
-
And I should not see the default welcome message
|
|
66
|
-
And I should see a dashboard widget "Hello World"
|
|
67
|
-
And I should not see a dashboard widget "Hidden by If"
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
Feature: Decorators
|
|
2
|
-
|
|
3
|
-
Using decorators for index and show sections
|
|
4
|
-
|
|
5
|
-
Background:
|
|
6
|
-
Given a user named "John Doe" exists
|
|
7
|
-
Given a post with the title "A very unique post" exists
|
|
8
|
-
And I am logged in
|
|
9
|
-
|
|
10
|
-
Scenario: Index page with decorator
|
|
11
|
-
Given a configuration of:
|
|
12
|
-
"""
|
|
13
|
-
ActiveAdmin.register Post do
|
|
14
|
-
decorate_with PostDecorator
|
|
15
|
-
|
|
16
|
-
index do
|
|
17
|
-
column(:id)
|
|
18
|
-
column(:title)
|
|
19
|
-
column(:decorator_method)
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
"""
|
|
23
|
-
When I am on the index page for posts
|
|
24
|
-
Then I should see "A method only available on the decorator"
|
|
25
|
-
And I should see "A very unique post"
|
|
26
|
-
|
|
27
|
-
Scenario: Show page with decorator
|
|
28
|
-
Given a configuration of:
|
|
29
|
-
"""
|
|
30
|
-
ActiveAdmin.register Post do
|
|
31
|
-
decorate_with PostDecorator
|
|
32
|
-
|
|
33
|
-
show do
|
|
34
|
-
attributes_table :title, :decorator_method
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
"""
|
|
38
|
-
When I am on the index page for posts
|
|
39
|
-
And I follow "View"
|
|
40
|
-
And I should see the attribute "Decorator Method" with "A method only available on the decorator"
|
|
41
|
-
And I should see the attribute "Title" with "A very unique post"
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
Feature: Development Reloading
|
|
2
|
-
|
|
3
|
-
In order to quickly develop applications
|
|
4
|
-
As a developer
|
|
5
|
-
I want the application to reload itself in development
|
|
6
|
-
|
|
7
|
-
@requires-reloading
|
|
8
|
-
Scenario: Reloading an updated model that a resource points to
|
|
9
|
-
Given "app/admin/posts.rb" contains:
|
|
10
|
-
"""
|
|
11
|
-
ActiveAdmin.register Post
|
|
12
|
-
"""
|
|
13
|
-
And I am logged in with capybara
|
|
14
|
-
And I create a new post with the title ""
|
|
15
|
-
Then I should see a successful create flash
|
|
16
|
-
Given I add "validates_presence_of :title" to the "post" model
|
|
17
|
-
And I create a new post with the title ""
|
|
18
|
-
Then I should not see a successful create flash
|
|
19
|
-
And I should see a validation error "can't be blank"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
# TODO: Create a scenario that reloads one of the active admin
|
|
23
|
-
# configuration files.
|
|
24
|
-
#
|
|
25
|
-
# @requires-reloading
|
|
26
|
-
# Scenario: Reloading an updated model that a resource points to
|
|
27
|
-
# Given "app/admin/posts.rb" contains:
|
|
28
|
-
# """
|
|
29
|
-
# ActiveAdmin.register Post
|
|
30
|
-
# ActiveAdmin.register User
|
|
31
|
-
# """
|
|
32
|
-
# And I am logged in
|
|
33
|
-
# Then I should see a menu item for "Posts"
|
|
34
|
-
|
|
35
|
-
# Given "app/admin/posts.rb" contains:
|
|
36
|
-
# """
|
|
37
|
-
# ActiveAdmin.register Post, :as => "Blog"
|
|
38
|
-
# ActiveAdmin.register User
|
|
39
|
-
# """
|
|
40
|
-
# When I follow "Users"
|
|
41
|
-
# Then show me the page
|
|
42
|
-
# Then I should see a menu item for "Blogs"
|
|
43
|
-
# Then I should not see a menu item for "Posts"
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
Feature: Edit Page
|
|
2
|
-
|
|
3
|
-
Customizing the form to edit resources
|
|
4
|
-
|
|
5
|
-
Background:
|
|
6
|
-
Given a category named "Music" exists
|
|
7
|
-
And a user named "John Doe" exists
|
|
8
|
-
And a post with the title "Hello World" written by "John Doe" exists
|
|
9
|
-
And I am logged in
|
|
10
|
-
Given a configuration of:
|
|
11
|
-
"""
|
|
12
|
-
ActiveAdmin.register Post
|
|
13
|
-
"""
|
|
14
|
-
When I am on the index page for posts
|
|
15
|
-
|
|
16
|
-
Scenario: Default form with no config
|
|
17
|
-
Given I follow "Edit"
|
|
18
|
-
Then the "Title" field should contain "Hello World"
|
|
19
|
-
And the "Body" field should contain ""
|
|
20
|
-
And the "Category" field should contain ""
|
|
21
|
-
And the "Author" field should contain the option "John Doe"
|
|
22
|
-
When I fill in "Title" with "Hello World from update"
|
|
23
|
-
When I press "Update Post"
|
|
24
|
-
Then I should see "Post was successfully updated."
|
|
25
|
-
And I should see the attribute "Title" with "Hello World from update"
|
|
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 "Edit"
|
|
45
|
-
Then I should see a fieldset titled "Your Post"
|
|
46
|
-
And I should see a fieldset titled "Publishing"
|
|
47
|
-
And the "Title" field should contain "Hello World"
|
|
48
|
-
And the "Body" field should contain ""
|
|
49
|
-
When I fill in "Title" with "Hello World from update"
|
|
50
|
-
When I press "Update Post"
|
|
51
|
-
Then I should see "Post was successfully updated."
|
|
52
|
-
And I should see the attribute "Title" with "Hello World from update"
|
|
53
|
-
And I should see the attribute "Author" with "John Doe"
|
|
54
|
-
|
|
55
|
-
Scenario: Generating a custom form with :html set, visiting the new page first (bug probing issue #109)
|
|
56
|
-
Given a configuration of:
|
|
57
|
-
"""
|
|
58
|
-
ActiveAdmin.register Post do
|
|
59
|
-
form :html => {} do |f|
|
|
60
|
-
f.inputs "Your Post" do
|
|
61
|
-
f.input :title
|
|
62
|
-
f.input :body
|
|
63
|
-
end
|
|
64
|
-
f.inputs "Publishing" do
|
|
65
|
-
f.input :published_at
|
|
66
|
-
end
|
|
67
|
-
f.actions
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
"""
|
|
71
|
-
Given I follow "New"
|
|
72
|
-
Then I follow "Posts"
|
|
73
|
-
Then I follow "Edit"
|
|
74
|
-
Then I should see a fieldset titled "Your Post"
|
|
75
|
-
And I should see a fieldset titled "Publishing"
|
|
76
|
-
And the "Title" field should contain "Hello World"
|
|
77
|
-
And the "Body" field should contain ""
|
|
78
|
-
When I fill in "Title" with "Hello World from update"
|
|
79
|
-
When I press "Update Post"
|
|
80
|
-
Then I should see "Post was successfully updated."
|
|
81
|
-
And I should see the attribute "Title" with "Hello World from update"
|
|
82
|
-
And I should see the attribute "Author" with "John Doe"
|
|
83
|
-
|
|
84
|
-
Scenario: Generating a form from a partial
|
|
85
|
-
Given "app/views/admin/posts/_form.html.erb" contains:
|
|
86
|
-
"""
|
|
87
|
-
<% url = @post.new_record? ? admin_posts_path : admin_post_path(@post) %>
|
|
88
|
-
<%= active_admin_form_for @post, :url => url do |f|
|
|
89
|
-
f.inputs :title, :body
|
|
90
|
-
f.actions
|
|
91
|
-
end %>
|
|
92
|
-
"""
|
|
93
|
-
Given a configuration of:
|
|
94
|
-
"""
|
|
95
|
-
ActiveAdmin.register Post do
|
|
96
|
-
form :partial => "form"
|
|
97
|
-
end
|
|
98
|
-
"""
|
|
99
|
-
Given I follow "Edit"
|
|
100
|
-
Then the "Title" field should contain "Hello World"
|
|
101
|
-
And the "Body" field should contain ""
|
|
102
|
-
When I fill in "Title" with "Hello World from update"
|
|
103
|
-
When I press "Update Post"
|
|
104
|
-
Then I should see "Post was successfully updated."
|
|
105
|
-
And I should see the attribute "Title" with "Hello World from update"
|
|
106
|
-
And I should see the attribute "Author" with "John Doe"
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
Feature: First Boot
|
|
2
|
-
|
|
3
|
-
As a developer
|
|
4
|
-
In order to ensure I have a great first experience
|
|
5
|
-
I want Active Admin to just work on install
|
|
6
|
-
|
|
7
|
-
Scenario: Visiting /admin and logging in with no configurations
|
|
8
|
-
Given a configuration of:
|
|
9
|
-
"""
|
|
10
|
-
"""
|
|
11
|
-
And an admin user "admin@example.com" exists
|
|
12
|
-
When I go to the dashboard
|
|
13
|
-
When I fill in "Email" with "admin@example.com"
|
|
14
|
-
And I fill in "Password" with "password"
|
|
15
|
-
And I press "Login"
|
|
16
|
-
Then I should be on the the dashboard
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
Feature: Global Navigation
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Background:
|
|
5
|
-
Given a configuration of:
|
|
6
|
-
"""
|
|
7
|
-
ActiveAdmin.register Post
|
|
8
|
-
"""
|
|
9
|
-
Given I am logged in
|
|
10
|
-
And 10 posts exist
|
|
11
|
-
|
|
12
|
-
Scenario: Viewing the current section in the global navigation
|
|
13
|
-
Given I am on the index page for posts
|
|
14
|
-
Then the "Posts" tab should be selected
|
|
15
|
-
|
|
16
|
-
Scenario: Viewing the current section in the global navigation when on new page
|
|
17
|
-
Given I am on the index page for posts
|
|
18
|
-
And I follow "New Post"
|
|
19
|
-
Then the "Posts" tab should be selected
|
|
20
|
-
|
|
21
|
-
Scenario: Viewing the current section in the global navigation when on show page
|
|
22
|
-
Given I am on the index page for posts
|
|
23
|
-
And I follow "View"
|
|
24
|
-
Then the "Posts" tab should be selected
|
|
25
|
-
|
|
26
|
-
Scenario: Viewing the current section in the global navigation when on edit page
|
|
27
|
-
Given I am on the index page for posts
|
|
28
|
-
And I follow "View"
|
|
29
|
-
And I follow "Edit Post"
|
|
30
|
-
Then the "Posts" tab should be selected
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
Feature: Internationalization
|
|
2
|
-
|
|
3
|
-
ActiveAdmin should use the translations provided by the host app.
|
|
4
|
-
|
|
5
|
-
Scenario: Store's model name was translated to "Bookstore"
|
|
6
|
-
Given I am logged in
|
|
7
|
-
And a store named "Hello words" exists
|
|
8
|
-
When I go to the dashboard
|
|
9
|
-
Then I should see "Bookstores"
|
|
10
|
-
When I follow "Bookstores"
|
|
11
|
-
Then I should see "Hello words"
|
|
12
|
-
When I follow "View"
|
|
13
|
-
Then I should see "Bookstore Details"
|
|
14
|
-
And I should see "Hello words"
|
|
15
|
-
And I should see a link to "Delete Bookstore"
|
|
16
|
-
When I follow "Edit Bookstore"
|
|
17
|
-
Then I should see "Edit Bookstore"
|
|
18
|
-
When I press "Update Bookstore"
|
|
19
|
-
Then I should see a flash with "Bookstore was successfully updated."
|
|
20
|
-
|
|
21
|
-
Scenario: Switching language at runtime
|
|
22
|
-
Given I am logged in
|
|
23
|
-
And a configuration of:
|
|
24
|
-
"""
|
|
25
|
-
ActiveAdmin.register Store
|
|
26
|
-
"""
|
|
27
|
-
When I set my locale to "fr"
|
|
28
|
-
And I go to the dashboard
|
|
29
|
-
Then I should see "Store"
|
|
30
|
-
Then I should see "Déconnexion"
|
|
31
|
-
|
|
32
|
-
When I set my locale to "en"
|
|
33
|
-
And I go to the dashboard
|
|
34
|
-
Then I should see "Bookstore"
|
|
35
|
-
Then I should see "Logout"
|
|
36
|
-
|
|
37
|
-
Scenario: Overriding translations
|
|
38
|
-
Given I am logged in
|
|
39
|
-
And a store named "Hello words" exists
|
|
40
|
-
When I go to the dashboard
|
|
41
|
-
When I follow "Bookstores"
|
|
42
|
-
Then I should see "Download this:"
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
Feature: Batch Actions
|
|
2
|
-
|
|
3
|
-
Scenario: Use default (destroy) batch action
|
|
4
|
-
Given 10 posts exist
|
|
5
|
-
And an index configuration of:
|
|
6
|
-
"""
|
|
7
|
-
ActiveAdmin.register Post
|
|
8
|
-
"""
|
|
9
|
-
Then I should see the batch action button
|
|
10
|
-
And I should see that the batch action button is disabled
|
|
11
|
-
And I should see the batch action popover exists
|
|
12
|
-
And I should see 10 posts in the table
|
|
13
|
-
|
|
14
|
-
When I check the 1st record
|
|
15
|
-
When I check the 2nd record
|
|
16
|
-
And I follow "Batch Actions"
|
|
17
|
-
Then I should see the batch action :destroy "Delete Selected"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Given I submit the batch action form with "destroy"
|
|
21
|
-
Then I should see a flash with "Successfully destroyed 1 post"
|
|
22
|
-
And I should see 9 posts in the table
|
|
23
|
-
|
|
24
|
-
Scenario: Using a custom batch action
|
|
25
|
-
Given 10 posts exist
|
|
26
|
-
And an index configuration of:
|
|
27
|
-
"""
|
|
28
|
-
ActiveAdmin.register Post do
|
|
29
|
-
batch_action(:flag) do
|
|
30
|
-
redirect_to collection_path, :notice => "Successfully flagged 10 posts"
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
"""
|
|
34
|
-
When I check the 1st record
|
|
35
|
-
Given I submit the batch action form with "flag"
|
|
36
|
-
Then I should see a flash with "Successfully flagged 10 posts"
|
|
37
|
-
|
|
38
|
-
Scenario: Disabling batch actions for a resource
|
|
39
|
-
Given 10 posts exist
|
|
40
|
-
And an index configuration of:
|
|
41
|
-
"""
|
|
42
|
-
ActiveAdmin.register Post do
|
|
43
|
-
config.batch_actions = false
|
|
44
|
-
end
|
|
45
|
-
"""
|
|
46
|
-
Then I should not see the batch actions selector
|
|
47
|
-
And I should not see checkboxes in the table
|
|
48
|
-
|
|
49
|
-
Scenario: Disabling the default destroy batch action
|
|
50
|
-
Given 10 posts exist
|
|
51
|
-
And an index configuration of:
|
|
52
|
-
"""
|
|
53
|
-
ActiveAdmin.register Post do
|
|
54
|
-
batch_action :destroy, false
|
|
55
|
-
batch_action(:flag) {}
|
|
56
|
-
end
|
|
57
|
-
"""
|
|
58
|
-
Then I should see the batch action "Flag Selected"
|
|
59
|
-
And I should not see the batch action "Delete Selected"
|
|
60
|
-
|
|
61
|
-
Scenario: Optional display of batch actions
|
|
62
|
-
Given 10 posts exist
|
|
63
|
-
And an index configuration of:
|
|
64
|
-
"""
|
|
65
|
-
ActiveAdmin.register Post do
|
|
66
|
-
batch_action(:flag, :if => proc { true }) {}
|
|
67
|
-
batch_action(:unflag, :if => proc { false }) {}
|
|
68
|
-
end
|
|
69
|
-
"""
|
|
70
|
-
Then I should see the batch action "Flag Selected"
|
|
71
|
-
And I should not see the batch action "Unflag Selected"
|
|
72
|
-
|
|
73
|
-
Scenario: Sort order priority
|
|
74
|
-
Given 10 posts exist
|
|
75
|
-
And an index configuration of:
|
|
76
|
-
"""
|
|
77
|
-
ActiveAdmin.register Post do
|
|
78
|
-
batch_action(:test, :priority => 3) {}
|
|
79
|
-
batch_action(:flag, :priority => 2) {}
|
|
80
|
-
batch_action(:unflag, :priority => 1) {}
|
|
81
|
-
end
|
|
82
|
-
"""
|
|
83
|
-
Then the 4th batch action should be "Delete Selected"
|
|
84
|
-
And the 3rd batch action should be "Test Selected"
|
|
85
|
-
And the 2nd batch action should be "Flag Selected"
|
|
86
|
-
And the 1st batch action should be "Unflag Selected"
|
|
87
|
-
|
|
88
|
-
Scenario: Complex naming
|
|
89
|
-
Given 10 posts exist
|
|
90
|
-
And an index configuration of:
|
|
91
|
-
"""
|
|
92
|
-
ActiveAdmin.register Post do
|
|
93
|
-
batch_action("Very Complex and Time Consuming") {}
|
|
94
|
-
batch_action(:passing_a_symbol) {}
|
|
95
|
-
end
|
|
96
|
-
"""
|
|
97
|
-
Then I should see the batch action :very_complex_and_time_consuming "Very Complex and Time Consuming Selected"
|
|
98
|
-
And I should see the batch action :passing_a_symbol "Passing A Symbol Selected"
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
Feature: Index Filtering
|
|
2
|
-
|
|
3
|
-
Scenario: Default Resources Filters
|
|
4
|
-
Given 3 posts exist
|
|
5
|
-
And an index configuration of:
|
|
6
|
-
"""
|
|
7
|
-
ActiveAdmin.register Post
|
|
8
|
-
"""
|
|
9
|
-
When I am on the index page for posts
|
|
10
|
-
Then I should see "Displaying all 3 Posts"
|
|
11
|
-
And I should see the following filters:
|
|
12
|
-
| Author | select |
|
|
13
|
-
| Category | select |
|
|
14
|
-
| Title | string |
|
|
15
|
-
| Body | string |
|
|
16
|
-
| Published at | date range |
|
|
17
|
-
| Created at | date range |
|
|
18
|
-
| Updated at | date range |
|
|
19
|
-
|
|
20
|
-
When I fill in "Search Title" with "Hello World 2"
|
|
21
|
-
And I press "Filter"
|
|
22
|
-
And I should see 1 posts in the table
|
|
23
|
-
And I should see "Hello World 2" within ".index_table"
|
|
24
|
-
|
|
25
|
-
Scenario: Filtering posts with no results
|
|
26
|
-
Given 3 posts exist
|
|
27
|
-
And an index configuration of:
|
|
28
|
-
"""
|
|
29
|
-
ActiveAdmin.register Post
|
|
30
|
-
"""
|
|
31
|
-
When I am on the index page for posts
|
|
32
|
-
Then I should see "Displaying all 3 Posts"
|
|
33
|
-
|
|
34
|
-
When I fill in "Search Title" with "THIS IS NOT AN EXISTING TITLE!!"
|
|
35
|
-
And I press "Filter"
|
|
36
|
-
Then I should not see ".index_table"
|
|
37
|
-
And I should not see a sortable table header
|
|
38
|
-
And I should not see pagination
|
|
39
|
-
And I should see "No Posts found"
|
|
40
|
-
|
|
41
|
-
Scenario: Filtering posts while not on the first page
|
|
42
|
-
Given 9 posts exist
|
|
43
|
-
And an index configuration of:
|
|
44
|
-
"""
|
|
45
|
-
ActiveAdmin.register Post do
|
|
46
|
-
config.per_page = 5
|
|
47
|
-
end
|
|
48
|
-
"""
|
|
49
|
-
When I follow "2"
|
|
50
|
-
Then I should see "Displaying Posts 6 - 9 of 9 in total"
|
|
51
|
-
|
|
52
|
-
When I fill in "Search Title" with "Hello World 2"
|
|
53
|
-
And I press "Filter"
|
|
54
|
-
And I should see 1 posts in the table
|
|
55
|
-
And I should see "Hello World 2" within ".index_table"
|
|
56
|
-
|
|
57
|
-
Scenario: Checkboxes - Filtering posts written by anyone
|
|
58
|
-
Given 1 post exists
|
|
59
|
-
And a post with the title "Hello World" written by "Jane Doe" exists
|
|
60
|
-
And an index configuration of:
|
|
61
|
-
"""
|
|
62
|
-
ActiveAdmin.register Post do
|
|
63
|
-
filter :author, :as => :check_boxes
|
|
64
|
-
end
|
|
65
|
-
"""
|
|
66
|
-
When I press "Filter"
|
|
67
|
-
Then I should see 2 posts in the table
|
|
68
|
-
And I should see "Hello World" within ".index_table"
|
|
69
|
-
And the "jane_doe" checkbox should not be checked
|
|
70
|
-
|
|
71
|
-
Scenario: Checkboxes - Filtering posts written by Jane Doe
|
|
72
|
-
Given 1 post exists
|
|
73
|
-
And a post with the title "Hello World" written by "Jane Doe" exists
|
|
74
|
-
And an index configuration of:
|
|
75
|
-
"""
|
|
76
|
-
ActiveAdmin.register Post do
|
|
77
|
-
filter :author, :as => :check_boxes
|
|
78
|
-
end
|
|
79
|
-
"""
|
|
80
|
-
When I check "jane_doe"
|
|
81
|
-
And I press "Filter"
|
|
82
|
-
Then I should see 1 posts in the table
|
|
83
|
-
And I should see "Hello World" within ".index_table"
|
|
84
|
-
And the "jane_doe" checkbox should be checked
|
|
85
|
-
|
|
86
|
-
Scenario: Disabling filters
|
|
87
|
-
Given an index configuration of:
|
|
88
|
-
"""
|
|
89
|
-
ActiveAdmin.register Post do
|
|
90
|
-
config.filters = false
|
|
91
|
-
end
|
|
92
|
-
"""
|
|
93
|
-
Then I should not see a sidebar titled "Filters"
|
|
94
|
-
|