features/sti_resource.feature in activeadmin-1.0.0.pre2 vs features/sti_resource.feature in activeadmin-1.0.0.pre3
- old
+ new
@@ -5,13 +5,13 @@
Background:
Given I am logged in
And a configuration of:
"""
ActiveAdmin.register Publisher do
- permit_params :first_name, :last_name, :username, :age if Rails::VERSION::MAJOR == 4
+ permit_params :first_name, :last_name, :username, :age if Rails::VERSION::MAJOR >= 4
end
ActiveAdmin.register User do
- permit_params :first_name, :last_name, :username, :age if Rails::VERSION::MAJOR == 4
+ permit_params :first_name, :last_name, :username, :age if Rails::VERSION::MAJOR >= 4
end
"""
Scenario: Create, update and delete a child STI resource
Given I am on the index page for publishers