features/edit_page.feature in activeadmin-1.0.0.pre2 vs features/edit_page.feature in activeadmin-1.0.0.pre3
- old
+ new
@@ -8,11 +8,11 @@
And a post with the title "Hello World" written by "John Doe" exists
And I am logged in
Given a configuration of:
"""
ActiveAdmin.register Post do
- if Rails::VERSION::MAJOR == 4
+ if Rails::VERSION::MAJOR >= 4
permit_params :custom_category_id, :author_id, :title,
:body, :position, :published_at, :starred
end
end
"""
@@ -32,11 +32,11 @@
Scenario: Generating a custom form
Given a configuration of:
"""
ActiveAdmin.register Post do
- permit_params :category, :author, :title, :body, :published_at, :starred if Rails::VERSION::MAJOR == 4
+ permit_params :category, :author, :title, :body, :published_at, :starred if Rails::VERSION::MAJOR >= 4
form do |f|
f.inputs "Your Post" do
f.input :title
f.input :body
@@ -61,11 +61,11 @@
Scenario: Generating a custom form with :html set, visiting the new page first (bug probing issue #109)
Given a configuration of:
"""
ActiveAdmin.register Post do
- permit_params :category, :author, :title, :body, :published_at, :starred if Rails::VERSION::MAJOR == 4
+ permit_params :category, :author, :title, :body, :published_at, :starred if Rails::VERSION::MAJOR >= 4
form :html => {} do |f|
f.inputs "Your Post" do
f.input :title
f.input :body
@@ -100,10 +100,10 @@
end %>
"""
Given a configuration of:
"""
ActiveAdmin.register Post do
- permit_params :category, :author, :title, :body, :published_at, :starred if Rails::VERSION::MAJOR == 4
+ permit_params :category, :author, :title, :body, :published_at, :starred if Rails::VERSION::MAJOR >= 4
form :partial => "form"
end
"""
Given I follow "Edit"