Sha256: 77abc8035decdaf33b421d4b08caddef3d1ad4d5bf110e81321eb42cba535e7d

Contents?: true

Size: 1.22 KB

Versions: 62

Compression:

Stored size: 1.22 KB

Contents

Feature: Show - Page Title

  Modifying the page title on the show screen

  Background:
    Given a post with the title "Hello World" written by "Jane Doe" exists

  Scenario: Set a method to be called on the resource as the title
    Given a show configuration of:
    """
      ActiveAdmin.register Post do
        show :title => :title
      end
    """
    Then I should see the page title "Hello World"

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

  Scenario: Set a proc as the title
    Given a show configuration of:
    """
      ActiveAdmin.register Post do
        show :title => proc{|post| "Title: " + post.title }
      end
    """
    Then I should see the page title "Title: Hello World"

  Scenario: Default title
    Given a show configuration of:
    """
      ActiveAdmin.register Post
    """
    Then I should see the page title "Hello World"

  Scenario: Default title with no display name method candidate
    Given a show configuration of:
    """
      ActiveAdmin.register Tag
    """
    Then I should see the page title "Tag #"

Version data entries

62 entries across 62 versions & 4 rubygems

Version Path
activeadmin-0.6.6 features/show/page_title.feature
activeadmin-0.6.5 features/show/page_title.feature
activeadmin-0.6.4 features/show/page_title.feature
yousty-activeadmin-1.0.4.pre features/show/page_title.feature
yousty-activeadmin-1.0.3.pre features/show/page_title.feature
yousty-activeadmin-1.0.2.pre features/show/page_title.feature
activeadmin-0.6.3 features/show/page_title.feature
yousty-activeadmin-1.0.1.pre features/show/page_title.feature
yousty-activeadmin-1.0.0.pre features/show/page_title.feature
activeadmin-0.6.2 features/show/page_title.feature
activeadmin-0.6.1 features/show/page_title.feature
aa-rails4-0.6.0 features/show/page_title.feature
lalala-4.0.0.dev.141 vendor/deps/active_admin/features/show/page_title.feature
lalala-4.0.0.dev.136 vendor/deps/active_admin/features/show/page_title.feature
lalala-4.0.0.dev.135 vendor/deps/active_admin/features/show/page_title.feature
lalala-4.0.0.dev.134 vendor/deps/active_admin/features/show/page_title.feature
lalala-4.0.0.dev.133 vendor/deps/active_admin/features/show/page_title.feature
lalala-4.0.0.dev.132 vendor/deps/active_admin/features/show/page_title.feature
lalala-4.0.0.dev.131 vendor/deps/active_admin/features/show/page_title.feature
lalala-4.0.0.dev.129 vendor/deps/active_admin/features/show/page_title.feature