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,43 +0,0 @@
|
|
|
1
|
-
Feature: Show - Default Content
|
|
2
|
-
|
|
3
|
-
Viewing the show page for a resource
|
|
4
|
-
|
|
5
|
-
Background:
|
|
6
|
-
Given a post with the title "Hello World" written by "Jane Doe" exists
|
|
7
|
-
|
|
8
|
-
Scenario: Viewing the default show page
|
|
9
|
-
Given a show configuration of:
|
|
10
|
-
"""
|
|
11
|
-
ActiveAdmin.register Post
|
|
12
|
-
"""
|
|
13
|
-
Then I should see the attribute "Title" with "Hello World"
|
|
14
|
-
And I should see the attribute "Body" with "Empty"
|
|
15
|
-
And I should see the attribute "Created At" with a nicely formatted datetime
|
|
16
|
-
And I should see the attribute "Author" with "jane_doe"
|
|
17
|
-
And I should see an action item button "Delete Post"
|
|
18
|
-
And I should see an action item button "Edit Post"
|
|
19
|
-
|
|
20
|
-
Scenario: Attributes should link when linked resource is registered
|
|
21
|
-
Given a show configuration of:
|
|
22
|
-
"""
|
|
23
|
-
ActiveAdmin.register Post
|
|
24
|
-
ActiveAdmin.register User
|
|
25
|
-
"""
|
|
26
|
-
Then I should see the attribute "Author" with "jane_doe"
|
|
27
|
-
And I should see a link to "jane_doe"
|
|
28
|
-
|
|
29
|
-
Scenario: Customizing the attributes table with a set of attributes
|
|
30
|
-
Given a show configuration of:
|
|
31
|
-
"""
|
|
32
|
-
ActiveAdmin.register Post do
|
|
33
|
-
|
|
34
|
-
show do
|
|
35
|
-
attributes_table :title, :body, :created_at, :updated_at
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
end
|
|
39
|
-
"""
|
|
40
|
-
Then I should see the attribute "Title" with "Hello World"
|
|
41
|
-
And I should see the attribute "Body" with "Empty"
|
|
42
|
-
And I should see the attribute "Created At" with a nicely formatted datetime
|
|
43
|
-
And I should not see the attribute "Author"
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
Feature: Show - Page Title
|
|
2
|
-
|
|
3
|
-
Modifying the page title on the show screen
|
|
4
|
-
|
|
5
|
-
Background:
|
|
6
|
-
Given a post with the title "Hello World" written by "Jane Doe" exists
|
|
7
|
-
|
|
8
|
-
Scenario: Set a method to be called on the resource as the title
|
|
9
|
-
Given a show configuration of:
|
|
10
|
-
"""
|
|
11
|
-
ActiveAdmin.register Post do
|
|
12
|
-
show :title => :title
|
|
13
|
-
end
|
|
14
|
-
"""
|
|
15
|
-
Then I should see the page title "Hello World"
|
|
16
|
-
|
|
17
|
-
Scenario: Set a string as the title
|
|
18
|
-
Given a show configuration of:
|
|
19
|
-
"""
|
|
20
|
-
ActiveAdmin.register Post do
|
|
21
|
-
show :title => "Title From String"
|
|
22
|
-
end
|
|
23
|
-
"""
|
|
24
|
-
Then I should see the page title "Title From String"
|
|
25
|
-
|
|
26
|
-
Scenario: Set a proc as the title
|
|
27
|
-
Given a show configuration of:
|
|
28
|
-
"""
|
|
29
|
-
ActiveAdmin.register Post do
|
|
30
|
-
show :title => proc{|post| "Title: " + post.title }
|
|
31
|
-
end
|
|
32
|
-
"""
|
|
33
|
-
Then I should see the page title "Title: Hello World"
|
|
34
|
-
|
|
35
|
-
Scenario: Default title
|
|
36
|
-
Given a show configuration of:
|
|
37
|
-
"""
|
|
38
|
-
ActiveAdmin.register Post
|
|
39
|
-
"""
|
|
40
|
-
Then I should see the page title "Hello World"
|
|
41
|
-
|
|
42
|
-
Scenario: Default title with no display name method candidate
|
|
43
|
-
Given a show configuration of:
|
|
44
|
-
"""
|
|
45
|
-
ActiveAdmin.register Tag
|
|
46
|
-
"""
|
|
47
|
-
Then I should see the page title "Tag #"
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
Feature: Sidebar Sections
|
|
2
|
-
|
|
3
|
-
Creating and Configuring sidebar sections
|
|
4
|
-
|
|
5
|
-
Background:
|
|
6
|
-
Given I am logged in
|
|
7
|
-
And a post with the title "Hello World" exists
|
|
8
|
-
|
|
9
|
-
Scenario: Create a sidebar for all actions
|
|
10
|
-
Given a configuration of:
|
|
11
|
-
"""
|
|
12
|
-
ActiveAdmin.register Post do
|
|
13
|
-
sidebar :help do
|
|
14
|
-
"Need help? Email us at help@example.com"
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
"""
|
|
18
|
-
When I am on the index page for posts
|
|
19
|
-
Then I should see a sidebar titled "Help"
|
|
20
|
-
Then I should see /Need help/ within the "Help" sidebar
|
|
21
|
-
|
|
22
|
-
When I follow "View"
|
|
23
|
-
Then I should see a sidebar titled "Help"
|
|
24
|
-
|
|
25
|
-
When I follow "Edit Post"
|
|
26
|
-
Then I should see a sidebar titled "Help"
|
|
27
|
-
|
|
28
|
-
When I am on the index page for posts
|
|
29
|
-
When I follow "New Post"
|
|
30
|
-
Then I should see a sidebar titled "Help"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
Scenario: Create a sidebar for only one action
|
|
34
|
-
Given a configuration of:
|
|
35
|
-
"""
|
|
36
|
-
ActiveAdmin.register Post do
|
|
37
|
-
sidebar :help, :only => :index do
|
|
38
|
-
"Need help? Email us at help@example.com"
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
"""
|
|
42
|
-
When I am on the index page for posts
|
|
43
|
-
Then I should see a sidebar titled "Help"
|
|
44
|
-
Then I should see /Need help/ within the "Help" sidebar
|
|
45
|
-
|
|
46
|
-
When I follow "View"
|
|
47
|
-
Then I should not see a sidebar titled "Help"
|
|
48
|
-
|
|
49
|
-
When I follow "Edit Post"
|
|
50
|
-
Then I should not see a sidebar titled "Help"
|
|
51
|
-
|
|
52
|
-
When I am on the index page for posts
|
|
53
|
-
When I follow "New Post"
|
|
54
|
-
Then I should not see a sidebar titled "Help"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
Scenario: Create a sidebar for all except one action
|
|
58
|
-
Given a configuration of:
|
|
59
|
-
"""
|
|
60
|
-
ActiveAdmin.register Post do
|
|
61
|
-
sidebar :help, :except => :index do
|
|
62
|
-
"Need help? Email us at help@example.com"
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
"""
|
|
66
|
-
When I am on the index page for posts
|
|
67
|
-
Then I should not see a sidebar titled "Help"
|
|
68
|
-
|
|
69
|
-
When I follow "View"
|
|
70
|
-
Then I should see a sidebar titled "Help"
|
|
71
|
-
|
|
72
|
-
When I follow "Edit Post"
|
|
73
|
-
Then I should see a sidebar titled "Help"
|
|
74
|
-
|
|
75
|
-
When I am on the index page for posts
|
|
76
|
-
When I follow "New Post"
|
|
77
|
-
Then I should see a sidebar titled "Help"
|
|
78
|
-
|
|
79
|
-
Scenario: Create a sidebar for only one action with if clause that returns false
|
|
80
|
-
Given a configuration of:
|
|
81
|
-
"""
|
|
82
|
-
ActiveAdmin.register Post do
|
|
83
|
-
sidebar :help, :only => :index, :if => proc{ current_active_admin_user.nil? } do
|
|
84
|
-
"Need help? Email us at help@example.com"
|
|
85
|
-
end
|
|
86
|
-
end
|
|
87
|
-
"""
|
|
88
|
-
When I am on the index page for posts
|
|
89
|
-
Then I should not see a sidebar titled "Help"
|
|
90
|
-
|
|
91
|
-
When I follow "View"
|
|
92
|
-
Then I should not see a sidebar titled "Help"
|
|
93
|
-
|
|
94
|
-
When I follow "Edit Post"
|
|
95
|
-
Then I should not see a sidebar titled "Help"
|
|
96
|
-
|
|
97
|
-
When I am on the index page for posts
|
|
98
|
-
When I follow "New Post"
|
|
99
|
-
Then I should not see a sidebar titled "Help"
|
|
100
|
-
|
|
101
|
-
Scenario: Create a sidebar for only one action with if clause with method symbol
|
|
102
|
-
Given a configuration of:
|
|
103
|
-
"""
|
|
104
|
-
module SidebarHelper
|
|
105
|
-
def can_sidebar?; false; end
|
|
106
|
-
end
|
|
107
|
-
ActiveAdmin.register Post do
|
|
108
|
-
controller { helper SidebarHelper }
|
|
109
|
-
sidebar :help, :only => :index, :if => :can_sidebar? do
|
|
110
|
-
"Need help? Email us at help@example.com"
|
|
111
|
-
end
|
|
112
|
-
end
|
|
113
|
-
"""
|
|
114
|
-
When I am on the index page for posts
|
|
115
|
-
Then I should not see a sidebar titled "Help"
|
|
116
|
-
|
|
117
|
-
When I follow "View"
|
|
118
|
-
Then I should not see a sidebar titled "Help"
|
|
119
|
-
|
|
120
|
-
When I follow "Edit Post"
|
|
121
|
-
Then I should not see a sidebar titled "Help"
|
|
122
|
-
|
|
123
|
-
When I am on the index page for posts
|
|
124
|
-
When I follow "New Post"
|
|
125
|
-
Then I should not see a sidebar titled "Help"
|
|
126
|
-
|
|
127
|
-
Scenario: Create a sidebar for only one action with if clause that returns true
|
|
128
|
-
Given a configuration of:
|
|
129
|
-
"""
|
|
130
|
-
ActiveAdmin.register Post do
|
|
131
|
-
sidebar :help, :only => :show, :if => proc{ !current_active_admin_user.nil? } do
|
|
132
|
-
"Need help? Email us at help@example.com"
|
|
133
|
-
end
|
|
134
|
-
end
|
|
135
|
-
"""
|
|
136
|
-
When I am on the index page for posts
|
|
137
|
-
Then I should not see a sidebar titled "Help"
|
|
138
|
-
|
|
139
|
-
When I follow "View"
|
|
140
|
-
Then I should see a sidebar titled "Help"
|
|
141
|
-
Then I should see /Need help/ within the "Help" sidebar
|
|
142
|
-
|
|
143
|
-
When I follow "Edit Post"
|
|
144
|
-
Then I should not see a sidebar titled "Help"
|
|
145
|
-
|
|
146
|
-
When I am on the index page for posts
|
|
147
|
-
When I follow "New Post"
|
|
148
|
-
Then I should not see a sidebar titled "Help"
|
|
149
|
-
|
|
150
|
-
Scenario: Create a sidebar with deep content
|
|
151
|
-
Given a configuration of:
|
|
152
|
-
"""
|
|
153
|
-
ActiveAdmin.register Post do
|
|
154
|
-
sidebar :help do
|
|
155
|
-
ul do
|
|
156
|
-
li "First List First Item"
|
|
157
|
-
li "First List Second Item"
|
|
158
|
-
end
|
|
159
|
-
ul do
|
|
160
|
-
li "Second List First Item"
|
|
161
|
-
li "Second List Second Item"
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
end
|
|
165
|
-
"""
|
|
166
|
-
When I am on the index page for posts
|
|
167
|
-
Then I should see a sidebar titled "Help"
|
|
168
|
-
And I should see "First List First Item" within the "Help" sidebar
|
|
169
|
-
And I should see "Second List Second Item" within the "Help" sidebar
|
|
170
|
-
|
|
171
|
-
Scenario: Rendering sidebar by default without a block or partial name
|
|
172
|
-
Given "app/views/admin/posts/_help_sidebar.html.erb" contains:
|
|
173
|
-
"""
|
|
174
|
-
<p>Hello World from a partial</p>
|
|
175
|
-
"""
|
|
176
|
-
Given a configuration of:
|
|
177
|
-
"""
|
|
178
|
-
ActiveAdmin.register Post do
|
|
179
|
-
sidebar :help
|
|
180
|
-
end
|
|
181
|
-
"""
|
|
182
|
-
When I am on the index page for posts
|
|
183
|
-
Then I should see "Hello World from a partial" within the "Help" sidebar
|
|
184
|
-
|
|
185
|
-
Scenario: Rendering a partial as the sidebar content
|
|
186
|
-
Given "app/views/admin/posts/_custom_help_partial.html.erb" contains:
|
|
187
|
-
"""
|
|
188
|
-
<p>Hello World from a custom partial</p>
|
|
189
|
-
"""
|
|
190
|
-
Given a configuration of:
|
|
191
|
-
"""
|
|
192
|
-
ActiveAdmin.register Post do
|
|
193
|
-
sidebar :help, :partial => "custom_help_partial"
|
|
194
|
-
end
|
|
195
|
-
"""
|
|
196
|
-
When I am on the index page for posts
|
|
197
|
-
Then I should see "Hello World from a custom partial" within the "Help" sidebar
|
|
198
|
-
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
Feature: Site title
|
|
2
|
-
|
|
3
|
-
As a developer
|
|
4
|
-
In order to customize the site title
|
|
5
|
-
I want to set it in the configuration
|
|
6
|
-
|
|
7
|
-
Background:
|
|
8
|
-
Given I am logged in
|
|
9
|
-
|
|
10
|
-
Scenario: Set the site title and site title link
|
|
11
|
-
Given a configuration of:
|
|
12
|
-
"""
|
|
13
|
-
ActiveAdmin.application.site_title = "My Great Site"
|
|
14
|
-
ActiveAdmin.application.site_title_link = "/"
|
|
15
|
-
"""
|
|
16
|
-
When I am on the dashboard
|
|
17
|
-
And I should see the site title "My Great Site"
|
|
18
|
-
When I follow "My Great Site"
|
|
19
|
-
Then I should see "Ruby on Rails: Welcome aboard"
|
|
20
|
-
|
|
21
|
-
Scenario: Set the site title image
|
|
22
|
-
Given a configuration of:
|
|
23
|
-
"""
|
|
24
|
-
ActiveAdmin.application.site_title_image = "http://railscasts.com/assets/episodes/stills/284-active-admin.png?1316476106"
|
|
25
|
-
"""
|
|
26
|
-
When I am on the dashboard
|
|
27
|
-
And I should not see the site title "My Great Site"
|
|
28
|
-
And I should see the site title image "http://railscasts.com/assets/episodes/stills/284-active-admin.png?1316476106"
|
|
29
|
-
|
|
30
|
-
Scenario: Set the site title image with link
|
|
31
|
-
Given a configuration of:
|
|
32
|
-
"""
|
|
33
|
-
ActiveAdmin.application.site_title_link = "http://www.google.com"
|
|
34
|
-
ActiveAdmin.application.site_title_image = "http://railscasts.com/assets/episodes/stills/284-active-admin.png?1316476106"
|
|
35
|
-
"""
|
|
36
|
-
When I am on the dashboard
|
|
37
|
-
And I should see the site title image "http://railscasts.com/assets/episodes/stills/284-active-admin.png?1316476106"
|
|
38
|
-
And I should see the site title image linked to "http://www.google.com"
|
|
39
|
-
|
|
40
|
-
Scenario: Set the site title to a proc
|
|
41
|
-
Given a configuration of:
|
|
42
|
-
"""
|
|
43
|
-
ActiveAdmin.application.site_title_image = nil # Configuration is not reset between scenarios
|
|
44
|
-
ActiveAdmin.application.site_title = proc { "Hello #{controller.current_admin_user.try(:email) || 'you!'}" }
|
|
45
|
-
"""
|
|
46
|
-
When I am on the dashboard
|
|
47
|
-
And I should see the site title "Hello admin@example.com"
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
Feature: Specifying Actions
|
|
2
|
-
|
|
3
|
-
Specifying which actions to allow on my resource
|
|
4
|
-
|
|
5
|
-
Scenario: Only creating the index action
|
|
6
|
-
Given a configuration of:
|
|
7
|
-
"""
|
|
8
|
-
ActiveAdmin.register Post do
|
|
9
|
-
actions :index
|
|
10
|
-
index do
|
|
11
|
-
column do |post|
|
|
12
|
-
link_to "View", "/admin/posts/1"
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
"""
|
|
17
|
-
And I am logged in
|
|
18
|
-
And a post with the title "Hello World" exists
|
|
19
|
-
When I am on the index page for posts
|
|
20
|
-
Then an "ActionController::RoutingError" exception should be raised when I follow "View"
|
|
21
|
-
|
|
22
|
-
Scenario: Specify a custom collection action with template
|
|
23
|
-
Given a configuration of:
|
|
24
|
-
"""
|
|
25
|
-
ActiveAdmin.register Post do
|
|
26
|
-
action_item(:only => :index) do
|
|
27
|
-
link_to('Import Posts', import_admin_posts_path)
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
collection_action :import
|
|
31
|
-
end
|
|
32
|
-
"""
|
|
33
|
-
Given "app/views/admin/posts/import.html.arb" contains:
|
|
34
|
-
"""
|
|
35
|
-
para "We are currently working on this feature..."
|
|
36
|
-
"""
|
|
37
|
-
And I am logged in
|
|
38
|
-
When I am on the index page for posts
|
|
39
|
-
And I follow "Import"
|
|
40
|
-
Then I should see "We are currently working on this feature"
|
|
41
|
-
|
|
42
|
-
Scenario: Specify a custom member action with template
|
|
43
|
-
Given a configuration of:
|
|
44
|
-
"""
|
|
45
|
-
ActiveAdmin.register Post do
|
|
46
|
-
action_item(:only => :show) do
|
|
47
|
-
link_to('Review', review_admin_post_path)
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
member_action :review do
|
|
51
|
-
@post = Post.find(params[:id])
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
"""
|
|
55
|
-
Given "app/views/admin/posts/review.html.erb" contains:
|
|
56
|
-
"""
|
|
57
|
-
<h1>Review: <%= @post.title %></h1>
|
|
58
|
-
"""
|
|
59
|
-
And I am logged in
|
|
60
|
-
And a post with the title "Hello World" exists
|
|
61
|
-
When I am on the index page for posts
|
|
62
|
-
And I follow "View"
|
|
63
|
-
And I follow "Review"
|
|
64
|
-
Then I should see "Review: Hello World"
|
|
65
|
-
And I should see the page title "Review"
|
|
66
|
-
And I should see the Active Admin layout
|
|
67
|
-
|
|
68
|
-
Scenario: Specify a custom member action with template using arb
|
|
69
|
-
Given a configuration of:
|
|
70
|
-
"""
|
|
71
|
-
ActiveAdmin.register Post do
|
|
72
|
-
action_item(:only => :show) do
|
|
73
|
-
link_to('Review', review_admin_post_path)
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
member_action :review do
|
|
77
|
-
@post = Post.find(params[:id])
|
|
78
|
-
end
|
|
79
|
-
end
|
|
80
|
-
"""
|
|
81
|
-
Given "app/views/admin/posts/review.html.arb" contains:
|
|
82
|
-
"""
|
|
83
|
-
h1 "Review: #{@post.title}"
|
|
84
|
-
"""
|
|
85
|
-
And I am logged in
|
|
86
|
-
And a post with the title "Hello World" exists
|
|
87
|
-
When I am on the index page for posts
|
|
88
|
-
And I follow "View"
|
|
89
|
-
And I follow "Review"
|
|
90
|
-
Then I should see "Review: Hello World"
|
|
91
|
-
And I should see the page title "Review"
|
|
92
|
-
And I should see the Active Admin layout
|
|
93
|
-
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
Then /^I should see a table header with "([^"]*)"$/ do |content|
|
|
2
|
-
page.should have_xpath('//th', :text => content)
|
|
3
|
-
end
|
|
4
|
-
|
|
5
|
-
Then /^I should not see a table header with "([^"]*)"$/ do |content|
|
|
6
|
-
page.should_not have_xpath('//th', :text => content)
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
Then /^I should see a sortable table header with "([^"]*)"$/ do |content|
|
|
10
|
-
page.should have_css('th.sortable', :text => content)
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
Then /^I should not see a sortable table header with "([^"]*)"$/ do |content|
|
|
14
|
-
page.should_not have_css('th.sortable', :text => content)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
Then /^I should not see a sortable table header$/ do
|
|
18
|
-
step "I should not see \"th.sortable\""
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
Then /^the table "([^"]*)" should have (\d+) rows/ do |selector, count|
|
|
22
|
-
table = page.find(selector)
|
|
23
|
-
table.all(:css, 'tr').size.should == count.to_i
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
Then /^the table "([^"]*)" should have (\d+) columns/ do |selector, count|
|
|
27
|
-
table = page.find(selector)
|
|
28
|
-
row = table.find('tr:first')
|
|
29
|
-
row.all(:css, "td").size.should == count.to_i
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
Then /^there should be (\d+) "([^"]*)" tags$/ do |count, tag|
|
|
33
|
-
page.all(:css, tag).size.should == count.to_i
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
Then /^I should see a link to "([^"]*)"$/ do |link|
|
|
37
|
-
if page.respond_to? :should
|
|
38
|
-
page.should have_xpath('//a', :text => link)
|
|
39
|
-
else
|
|
40
|
-
assert page.has_xpath?('//a', :text => link)
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
Then /^I should see a link to \/([^\/]*)\/$/ do |regexp|
|
|
45
|
-
regexp = Regexp.new(regexp)
|
|
46
|
-
if page.respond_to? :should
|
|
47
|
-
page.should have_xpath('//a', :text => regexp)
|
|
48
|
-
else
|
|
49
|
-
assert page.has_xpath?('//a', :text => regexp)
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
Then /^an "([^"]*)" exception should be raised when I follow "([^"]*)"$/ do |error, link|
|
|
54
|
-
lambda {
|
|
55
|
-
step "I follow \"#{link}\""
|
|
56
|
-
}.should raise_error(error.constantize)
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
Then /^I should be in the resource section for (.+)$/ do |resource_name|
|
|
60
|
-
current_url.should include(resource_name.gsub(' ', '').underscore.pluralize)
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
Then /^I should wait and see "([^"]*)"(?: within "([^"]*)")?$/ do |text, selector|
|
|
64
|
-
sleep 1
|
|
65
|
-
step 'show me the page'
|
|
66
|
-
selector ||= "*"
|
|
67
|
-
locate(:xpath, "//#{selector}[text()='#{text}']")
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
Then /^I should see the page title "([^"]*)"$/ do |title|
|
|
71
|
-
within('h2#page_title') do
|
|
72
|
-
page.should have_content(title)
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
Then /^I should see a fieldset titled "([^"]*)"$/ do |title|
|
|
77
|
-
page.should have_css('fieldset legend', :text => title)
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
Then /^the "([^"]*)" field should contain the option "([^"]*)"$/ do |field, option|
|
|
81
|
-
field = find_field(field)
|
|
82
|
-
field.should have_css("option", :text => option)
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
Then /^I should see the content "([^"]*)"$/ do |content|
|
|
86
|
-
page.should have_css("#active_admin_content", :text => content)
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
Then /^I should see a validation error "([^"]*)"$/ do |error_message|
|
|
90
|
-
page.should have_css(".inline-errors", :text => error_message)
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
Then /^I should see a table with id "([^"]*)"$/ do |dom_id|
|
|
94
|
-
page.should have_css('table', :id => dom_id)
|
|
95
|
-
end
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Then /^I should see the css file "([^"]*)"$/ do |path|
|
|
2
|
-
step %{I should see the css file "#{path}" of media "screen"}
|
|
3
|
-
end
|
|
4
|
-
|
|
5
|
-
Then /^I should see the css file "([^"]*)" of media "([^"]*)"$/ do |path, media|
|
|
6
|
-
page.should have_xpath("//link[contains(@href, /stylesheets/#{path}) and contains(@media, #{media})]")
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
Then /^I should see the js file "([^"]*)"$/ do |path|
|
|
10
|
-
page.should have_xpath("//script[contains(@src, /javascripts/#{path})]")
|
|
11
|
-
end
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Then /^I should see the attribute "([^"]*)" with "([^"]*)"$/ do |title, value|
|
|
2
|
-
page.should have_css('.attributes_table th', :text => title)
|
|
3
|
-
page.should have_css('.attributes_table td', :text => value)
|
|
4
|
-
end
|
|
5
|
-
|
|
6
|
-
Then /^I should see the attribute "([^"]*)" with a nicely formatted datetime$/ do |title|
|
|
7
|
-
th = page.find('.attributes_table th', :text => title)
|
|
8
|
-
page.find(:xpath, th.path.gsub(/th$/, 'td')).text.should =~ /\w+ \d{1,2}, \d{4} \d{2}:\d{2}/
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
Then /^I should not see the attribute "([^"]*)"$/ do |title|
|
|
12
|
-
page.should_not have_css('.attributes_table th', :text => title)
|
|
13
|
-
end
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
Then /^I (should|should not) see the batch action "([^"]*)"$/ do |maybe, title|
|
|
2
|
-
%{Then I #{maybe} see the batch action :#{title.gsub(' ','').gsub(" Selected", "").underscore} "#{title}"}
|
|
3
|
-
end
|
|
4
|
-
|
|
5
|
-
Then /^I (should|should not) be asked to confirm "([^"]*)" for "([^"]*)"$/ do |maybe, confirmation, title|
|
|
6
|
-
within "#batch_actions_popover" do
|
|
7
|
-
unless maybe == "should not"
|
|
8
|
-
link = page.find "a.batch_action", :text => title
|
|
9
|
-
link["data-confirm"].should match( confirmation )
|
|
10
|
-
else
|
|
11
|
-
page.should_not have_css("a.batch_action", :text => title)
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
Then /^I (should|should not) see the batch action :([^\s]*) "([^"]*)"$/ do |maybe, sym, title|
|
|
17
|
-
within "#batch_actions_selector" do
|
|
18
|
-
unless maybe == "should not"
|
|
19
|
-
link = page.find "a.batch_action", :text => title
|
|
20
|
-
link["data-action"].should match( sym )
|
|
21
|
-
link[:href].should match( "#" )
|
|
22
|
-
else
|
|
23
|
-
page.should_not have_css("a.batch_action", :text => title)
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
Then /^the (\d+)(?:st|nd|rd|th) batch action should be "([^"]*)"$/ do |index, title|
|
|
29
|
-
within "#batch_actions_selector" do
|
|
30
|
-
page.all( "a.batch_action" )[index.to_i - 1].text.should match( title )
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
When /^I check the (\d+)(?:st|nd|rd|th) record$/ do |index|
|
|
35
|
-
page.all( "table.index_table input[type=checkbox]" )[index.to_i].set( true )
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
When /^I uncheck the (\d+)(?:st|nd|rd|th) record$/ do |index|
|
|
39
|
-
page.all( "table.index_table input[type='checkbox']" )[index.to_i].set( false )
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
When /^I toggle the collection selection$/ do
|
|
43
|
-
toggle_box = page.find( "#collection_selection_toggle_all" )
|
|
44
|
-
toggle_box.click
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
Then /^I should see (\d+) record(?:s)? selected$/ do |count|
|
|
48
|
-
within "table.index_table" do
|
|
49
|
-
unless count.to_i == 0
|
|
50
|
-
page.should have_xpath(".//input[@type='checkbox' and @checked='checked']", :count => count)
|
|
51
|
-
else
|
|
52
|
-
page.should have_no_xpath(".//input[@type='checkbox' and @checked='checked']")
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
Then /^I should see that the batch action button is disabled$/ do
|
|
58
|
-
page.should have_css("#batch_actions_selector .dropdown_menu_button.disabled")
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
Then /^I (should|should not) see the batch action button$/ do |maybe|
|
|
62
|
-
if maybe == "should not"
|
|
63
|
-
page.should_not have_css("div.table_tools #batch_actions_selector .dropdown_menu_button")
|
|
64
|
-
else
|
|
65
|
-
page.should have_css("div.table_tools #batch_actions_selector .dropdown_menu_button")
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
Then "I should not see the batch actions selector" do
|
|
70
|
-
page.should_not have_css("div.table_tools #batch_actions_selector")
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
Then /^I should see the batch action popover exists$/ do
|
|
74
|
-
page.should have_css("#batch_actions_selector")
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
Given /^I submit the batch action form with "([^"]*)"$/ do |action|
|
|
78
|
-
page.find(:css, "#batch_action").set(action)
|
|
79
|
-
|
|
80
|
-
within("#main_content") do
|
|
81
|
-
@params = page.all("input").reduce({}) do |acc, input|
|
|
82
|
-
acc.store(input['name'], input['value'])
|
|
83
|
-
acc
|
|
84
|
-
end
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
form = page.find("#collection_selection")
|
|
88
|
-
|
|
89
|
-
page.driver.submit(form['method'].to_sym, form['action'], @params)
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
Then /^I should not see checkboxes in the table$/ do
|
|
93
|
-
page.should_not have_css( ".paginated_collection table input[type=checkbox]" )
|
|
94
|
-
end
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Then /^I should see a comment by "([^"]*)"$/ do |name|
|
|
2
|
-
step %{I should see "#{name}" within ".active_admin_comment_author"}
|
|
3
|
-
end
|
|
4
|
-
|
|
5
|
-
When /^I add a comment "([^"]*)"$/ do |comment|
|
|
6
|
-
step %{I fill in "active_admin_comment_body" with "#{comment}"}
|
|
7
|
-
step %{I press "Add Comment"}
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Given /^a tag with the name "([^"]*)" exists$/ do |tag_name|
|
|
12
|
-
Tag.create(:name => tag_name)
|
|
13
|
-
end
|