Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (24 sloc) 939 Bytes
Feature: Global Navigation
Background:
Given a configuration of:
"""
ActiveAdmin.register Post
"""
Given I am logged in
And 10 posts exist
Scenario: Viewing the current section in the global navigation
Given I am on the index page for posts
Then the "Posts" tab should be selected
Scenario: Viewing the current section in the global navigation when on new page
Given I am on the index page for posts
And I follow "New Post"
Then the "Posts" tab should be selected
Scenario: Viewing the current section in the global navigation when on show page
Given I am on the index page for posts
And I follow "View"
Then the "Posts" tab should be selected
Scenario: Viewing the current section in the global navigation when on edit page
Given I am on the index page for posts
And I follow "View"
And I follow "Edit Post"
Then the "Posts" tab should be selected
Something went wrong with that request. Please try again.