<commit_before>Feature: Renamed Resource

  Strong attributes for resources renamed with as: 'NewName'

  Scenario: Default form with no config
    Given a category named "Music" exists
    And a user named "<NAME>" exists
    And I am logged in
    And a configuration of:
    """
      ActiveAdmin.register Blog::Post, as: 'Post' do
        permit_params :custom_category_id, :author_id, :title,
          :body, :position, :published_date, :starred
      end
    """
    When I am on the index page for posts

    And I follow "New Post"
    And 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 "<NAME>" 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 "<NAME>"<commit_msg>Uncomment commented out step<commit_after>Feature: Renamed Resource

  Strong attributes for resources renamed with as: 'NewName'

  Scenario: Default form with no config
    Given a category named "Music" exists
    And a user named "<NAME>" exists
    And I am logged in
    And a configuration of:
    """
      ActiveAdmin.register Blog::Post, as: 'Post' do
        permit_params :custom_category_id, :author_id, :title,
          :body, :position, :published_date, :starred
      end
    """
    When I am on the index page for posts

    And I follow "New Post"
    And 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 "<NAME>" 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 "<NAME>"
{'fraction_non_alphanumeric': 0.07934272300469483, 'fraction_numerical': 0.0, 'mean_word_length': 3.0513307984790874, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3931431', 'n_tokens_mistral': 594, 'n_tokens_neox': 589, 'n_words': 300}