Sha256: 60cc88c394fef4064d7e2b2e8f4d44c4e3b38e9b569dfbc57fc17164f03d6056

Contents?: true

Size: 1.09 KB

Versions: 20

Compression:

Stored size: 1.09 KB

Contents

Feature: Renamed Resource

  Strong attributes for resources renamed with as: 'NewName'

  Background:
    Given a category named "Music" exists
    Given a user named "John Doe" exists
    And I am logged in
    Given a configuration of:
    """
      ActiveAdmin.register Blog::Post, as: 'Post' do
        if Rails::VERSION::MAJOR == 4
          permit_params :custom_category_id, :author_id, :title,
            :body, :position, :published_at, :starred
        end
      end
    """
    When I am on the index page for posts

  Scenario: Default form with no config
    Given I follow "New Post"
    When I fill in "Title" with "Hello World"
    And I fill in "Body" with "This is the body"
    And I select "Music" from "Category"
    And I select "John Doe" from "Author"
    And I press "Create Post"
    Then I should see "Post was successfully created."
    And I should see the attribute "Title" with "Hello World"
    And I should see the attribute "Body" with "This is the body"
    #And I should see the attribute "Category" with "Music"
    And I should see the attribute "Author" with "John Doe"

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
activeadmin_addons-1.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/renamed_resource.feature
activeadmin_addons-1.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/renamed_resource.feature
yousty-activeadmin-1.0.17.pre features/renamed_resource.feature
yousty-activeadmin-1.0.16.pre features/renamed_resource.feature
activeadmin_addons-1.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/renamed_resource.feature
activeadmin_addons-1.0.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/renamed_resource.feature
activeadmin_addons-1.0.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/renamed_resource.feature
yousty-activeadmin-1.0.15.pre features/renamed_resource.feature
yousty-activeadmin-1.0.14.pre features/renamed_resource.feature
yousty-activeadmin-1.0.13.pre features/renamed_resource.feature
yousty-activeadmin-1.0.12.pre features/renamed_resource.feature
yousty-activeadmin-1.0.11.pre features/renamed_resource.feature
yousty-activeadmin-1.0.10.pre features/renamed_resource.feature
yousty-activeadmin-1.0.9.pre features/renamed_resource.feature
yousty-activeadmin-1.0.8.pre features/renamed_resource.feature
activeadmin-1.0.0.pre2 features/renamed_resource.feature
activeadmin-1.0.0.pre1 features/renamed_resource.feature
yousty-activeadmin-1.0.7.pre features/renamed_resource.feature
yousty-activeadmin-1.0.6.pre features/renamed_resource.feature
yousty-activeadmin-1.0.5.pre features/renamed_resource.feature