Sha256: fc7643c31355880454121cfbbdff3254373901f6015f1585f34574d39d68f175
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
Feature: Decorators Using decorators for index and show sections Background: Given a user named "John Doe" exists And a post with the title "A very unique post" exists And I am logged in Scenario: Index page with decorator Given a configuration of: """ ActiveAdmin.register Post do decorate_with PostDecorator index do column(:id) column(:title) column(:decorator_method) column(:starred) end end """ When I am on the index page for posts Then I should see "A method only available on the decorator" And I should see "A very unique post" And I should see "No" Scenario: Show page with decorator Given a configuration of: """ ActiveAdmin.register Post do decorate_with PostDecorator show do attributes_table :title, :decorator_method end end """ When I am on the index page for posts And I follow "View" And I should see the attribute "Decorator Method" with "A method only available on the decorator" And I should see the attribute "Title" with "A very unique post"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-rails-1.7.1 | features/decorators.feature |
activeadmin-rails-1.7.0 | features/decorators.feature |