Sha256: 99996a50b67b6db7c61415666529f46bca6cea210eefa66efad878a7eb9c07c2

Contents?: true

Size: 853 Bytes

Versions: 7

Compression:

Stored size: 853 Bytes

Contents

@footer
Feature: Site title

  As a developer
  In order to customize the site footer
  I want to set it in the configuration

  Background:
    Given I am logged in

  Scenario: No footer is set in the configuration (default)
    When I am on the dashboard
    And I should see the default footer

  Scenario: Set the footer in the configuration
    Given a configuration of:
    """
      ActiveAdmin.application.footer = "MyApp Revision 123"
    """
    When I am on the dashboard
    And I should see the footer "MyApp Revision 123"

  Scenario: Set the footer to a proc
    Given a configuration of:
    """
      ActiveAdmin.application.footer = proc { "Enjoy MyApp Revision 123, #{controller.current_admin_user.try(:email)}!" }
    """
    When I am on the dashboard
    And I should see the footer "Enjoy MyApp Revision 123, admin@example.com!"

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
activeadmin-rails-1.7.1 features/footer.feature
activeadmin-rails-1.7.0 features/footer.feature
activeadmin-rb-1.6.0 features/footer.feature
activeadmin-rb-1.5.2 features/footer.feature
activeadmin-rb-1.5.1 features/footer.feature
activeadmin-rb-1.5.0 features/footer.feature
activeadmin-rb-1.4.0 features/footer.feature