Sha256: 055852787883f168a8c7a1f791c817e33d159239ff1ef5a64ec24a551443db7f

Contents?: true

Size: 1.16 KB

Versions: 20

Compression:

Stored size: 1.16 KB

Contents

Feature: Index - Page Title

  Modifying the page title on the index screen

  Scenario: Set a string as the title
    Given an index configuration of:
    """
      ActiveAdmin.register Post do
        index :title => "Awesome Title"
      end
    """
    Then I should see the page title "Awesome Title"

  Scenario: Set the title using a proc
    Given an index configuration of:
    """
      ActiveAdmin.register Post do
        index :title => proc{ 'Custom title from proc' }
      end
    """
    Then I should see the page title "Custom title from proc"

  Scenario: Set the title using a proc that uses the available resource class
    Given an index configuration of:
    """
      ActiveAdmin.register Post do
        index :title => proc{ "List of #{resource_class.model_name.plural}" }
      end
    """
    Then I should see the page title "List of posts"

  Scenario: Set the title in controller
    Given an index configuration of:
    """
      ActiveAdmin.register Post do
        controller do
          before_filter { @page_title = "List of #{resource_class.model_name.plural}" }
        end
      end
    """
    Then I should see the page title "List of posts"

Version data entries

20 entries across 20 versions & 5 rubygems

Version Path
activeadmin_addons-1.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/index/page_title.feature
activeadmin_addons-1.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/index/page_title.feature
activeadmin_addons-1.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/index/page_title.feature
activeadmin_addons-1.0.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/index/page_title.feature
activeadmin_addons-1.0.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/index/page_title.feature
yousty-activeadmin-1.0.12.pre features/index/page_title.feature
yousty-activeadmin-1.0.11.pre features/index/page_title.feature
yousty-activeadmin-1.0.10.pre features/index/page_title.feature
yousty-activeadmin-1.0.9.pre features/index/page_title.feature
yousty-activeadmin-1.0.8.pre features/index/page_title.feature
activeadmin-1.0.0.pre2 features/index/page_title.feature
activeadmin-1.0.0.pre1 features/index/page_title.feature
yousty-activeadmin-1.0.7.pre features/index/page_title.feature
yousty-activeadmin-1.0.6.pre features/index/page_title.feature
yousty-activeadmin-1.0.5.pre features/index/page_title.feature
active_administration-0.0.3 features/index/page_title.feature
activeadministration-0.0.2 features/index/page_title.feature
active_administration-0.0.2 features/index/page_title.feature
activeadministration-0.0.1 features/index/page_title.feature
active_administration-0.0.1 features/index/page_title.feature