Sha256: 6e1965b20d76a75ded4f9a12a4690e8d20c26f0908a0fc73d09668acc0bd8ea5
Contents?: true
Size: 1 KB
Versions: 13
Compression:
Stored size: 1 KB
Contents
@dsl Feature: Export Background: Given I am logged in And products exists with attributes: | sku | price | name | | t-12 | 234 | Table | | dc_1 | 12 | Chair | And a configuration of: """ class AbAdminProduct < AbAdmin::AbstractResource export do field :sku field(:price) { |item| "$#{item.price}" } field :name field :is_visible field :collection field :created_at end end """ Scenario: Export to csv format When I am on the admin products page And I follow "export_csv" Then should see "t-12" And should see "$234" And should see "Chair" Scenario: Export to json format When I am on the admin products page And I follow "export_json" Then should see "t-12" And should see "234" And should see "Chair" Scenario: Export to xls format When I am on the admin products page And I follow "export_xls" Then I should not see an error
Version data entries
13 entries across 13 versions & 1 rubygems