Sha256: 4a6218fa8d49c05c96ae830c6a01bef80412db0f4fdef9df224ea3de524dd12c
Contents?: true
Size: 1.12 KB
Versions: 7
Compression:
Stored size: 1.12 KB
Contents
@dsl Feature: Configuring resource options Background: Given I am logged in And a product with sku "table" Scenario: Preview path as symbol Given a configuration of: """ class AbAdminProduct < AbAdmin::AbstractResource preview_path :product_path end """ When I am on the admin products page And I follow "Preview" Then I should see "sku - table" Scenario: Preview path as block Given a configuration of: """ class AbAdminProduct < AbAdmin::AbstractResource preview_path {|product| product_path(product) } end """ When I am on the admin products page And I follow "Preview" Then I should see "sku - table" Scenario Outline: List allowed actions Given a configuration of: """ class AbAdminProduct < AbAdmin::AbstractResource actions <config> end """ And I should not see routing error on the admin products page And I should see routing error on the new admin product page Examples: | config | | :index | | :except => :new | | :except => [:new] |
Version data entries
7 entries across 7 versions & 1 rubygems