features/action_item.feature in activeadmin-0.6.6 vs features/action_item.feature in activeadmin-1.0.0.pre1
- old
+ new
@@ -8,11 +8,11 @@
Scenario: Create an member action
Given a configuration of:
"""
ActiveAdmin.register Post do
- action_item do
+ action_item :embiggen do
link_to "Embiggen", '/'
end
end
"""
When I am on the index page for posts
@@ -30,11 +30,11 @@
Scenario: Create an member action with if clause that returns true
Given a configuration of:
"""
ActiveAdmin.register Post do
- action_item :if => proc{ !current_active_admin_user.nil? } do
+ action_item :embiggen, :if => proc{ !current_active_admin_user.nil? } do
link_to "Embiggen", '/'
end
end
"""
When I am on the index page for posts
@@ -52,10 +52,10 @@
Scenario: Create an member action with if clause that returns false
Given a configuration of:
"""
ActiveAdmin.register Post do
- action_item :if => proc{ current_active_admin_user.nil? } do
+ action_item :embiggen, :if => proc{ current_active_admin_user.nil? } do
link_to "Embiggen", '/'
end
end
"""
When I am on the index page for posts