Sha256: e86ece9c5989fd550ec944f98a3f951c1b26ac12331b60b918b61b3a03c2c0e5
Contents?: true
Size: 1.95 KB
Versions: 8
Compression:
Stored size: 1.95 KB
Contents
@breadcrumb Feature: Breadcrumb Background: Given I am logged in Scenario: Default breadcrumb links Given a configuration of: """ ActiveAdmin.register Post do end """ When I am on the new post page Then I should see a link to "Post" in the breadcrumb Scenario: Rewritten breadcrumb links Given a configuration of: """ ActiveAdmin.register Post do breadcrumb do [ link_to('test', '/admin/test/url') ] end end """ When I am on the new post page Then I should see a link to "test" in the breadcrumb Scenario: No Breadcrumbs configuration Given a configuration of: """ ActiveAdmin.application.breadcrumb = false ActiveAdmin.register Post do end """ When I am on the new post page Then I should see "Post" And I should not see the element ".breadcrumb" Scenario: Application config of false and a resource config of true Given a configuration of: """ ActiveAdmin.application.breadcrumb = false ActiveAdmin.register Post do config.breadcrumb = true end """ When I am on the new post page Then I should see a link to "Post" in the breadcrumb Scenario: Application config of false and rewritten breadcrumb links Given a configuration of: """ ActiveAdmin.application.breadcrumb = false ActiveAdmin.register Post do breadcrumb do [ link_to('test', '/admin/test/url') ] end end """ When I am on the new post page Then I should see a link to "test" in the breadcrumb Scenario: Application config of true and a resource config of false Given a configuration of: """ ActiveAdmin.application.breadcrumb = true ActiveAdmin.register Post do config.breadcrumb = false end """ When I am on the new post page Then I should not see the element ".breadcrumb"
Version data entries
8 entries across 8 versions & 2 rubygems