Sha256: 4f6067b4e169ede5544e433d704349dd2f558b42527217b930fdfd58267ef0d0

Contents?: true

Size: 810 Bytes

Versions: 5

Compression:

Stored size: 810 Bytes

Contents

Feature: User Logging out

  Logging out of the system as an admin user

  Scenario: Logging out successfully
    Given a configuration of:
    """
      ActiveAdmin.setup do |config|
        config.logout_link_method = :get
      end
    """
    And I am logged in
    When I go to the dashboard
    Then I should see the element "a[data-method='get']:contains('Logout')"
    And I follow "Logout"
    Then I should see "Login"

  Scenario: Logging out sucessfully with delete method
    Given a configuration of:
    """
      ActiveAdmin.setup do |config|
        config.logout_link_method = :delete
      end
    """
    And I am logged in
    When I am on the dashboard
    Then I should see the element "a[data-method='delete']:contains('Logout')"
    And I follow "Logout"
    Then I should see "Login"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activeadmin-rb-1.6.0 features/users/logging_out.feature
activeadmin-rb-1.5.2 features/users/logging_out.feature
activeadmin-rb-1.5.1 features/users/logging_out.feature
activeadmin-rb-1.5.0 features/users/logging_out.feature
activeadmin-rb-1.4.0 features/users/logging_out.feature