Sha256: b147ef5234beb28b8c75d95d7d132f130776955b7f773dda2ffc262e5b60000a
Contents?: true
Size: 1.08 KB
Versions: 7
Compression:
Stored size: 1.08 KB
Contents
@dsl Feature: Resource action items Background: Given I am logged in And a product with sku "table" Scenario: Default resource action items Given a configuration of: """ class AbAdminProduct < AbAdmin::AbstractResource end """ When I am on the admin products page Then I should see resource action items: | Edit | Review | Remove | Scenario: Define list of resource action items Given a configuration of: """ class AbAdminProduct < AbAdmin::AbstractResource resource_action_items :show, :edit end """ When I am on the admin products page Then I should see resource action items: | Edit | Review | And I should not see resource action item "Remove" Scenario: Custom resource action item Given a configuration of: """ class AbAdminProduct < AbAdmin::AbstractResource resource_action_item do link_to icon('arrow-down'), '/', :title => 'Custom' end end """ When I am on the admin products page Then I should see resource action item "Custom"
Version data entries
7 entries across 7 versions & 1 rubygems