features/index/formats.feature in activeadmin-1.0.0.pre4 vs features/index/formats.feature in activeadmin-1.0.0.pre5
- old
+ new
@@ -13,11 +13,11 @@
Scenario: View index with download_links set to false
Given an index configuration of:
"""
ActiveAdmin.register Post do
- index :download_links => false
+ index download_links: false
end
"""
And 1 post exists
When I am on the index page for posts
Then I should not see a link to download "CSV"
@@ -26,11 +26,11 @@
Scenario: View index with pdf download link set
Given an index configuration of:
"""
ActiveAdmin.register Post do
- index :download_links => [:pdf]
+ index download_links: [:pdf]
end
"""
And 1 post exists
When I am on the index page for posts
Then I should not see a link to download "CSV"
@@ -40,11 +40,11 @@
Scenario: View index with download_links block which returns false
Given an index configuration of:
"""
ActiveAdmin.register Post do
- index :download_links => proc { false }
+ index download_links: proc { false }
end
"""
And 1 post exists
When I am on the index page for posts
Then I should not see a link to download "CSV"
@@ -53,10 +53,10 @@
Scenario: View index with download_links block which returns [:csv]
Given an index configuration of:
"""
ActiveAdmin.register Post do
- index :download_links => -> { [:csv] }
+ index download_links: -> { [:csv] }
end
"""
And 1 post exists
When I am on the index page for posts
Then I should see a link to download "CSV"