features/action_item.feature in activeadmin-0.6.0 vs features/action_item.feature in activeadmin-0.6.1
- old
+ new
@@ -8,13 +8,13 @@
Scenario: Create an member action
Given a configuration of:
"""
ActiveAdmin.register Post do
- action_item do
+ action_item do
link_to "Embiggen", '/'
- end
+ end
end
"""
When I am on the index page for posts
Then I should not see a member link to "Embiggen"
@@ -30,13 +30,13 @@
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 :if => proc{ !current_active_admin_user.nil? } do
link_to "Embiggen", '/'
- end
+ end
end
"""
When I am on the index page for posts
Then I should not see a member link to "Embiggen"
@@ -52,12 +52,12 @@
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 :if => proc{ current_active_admin_user.nil? } do
link_to "Embiggen", '/'
- end
+ end
end
"""
When I am on the index page for posts
Then I should not see a member link to "Embiggen"