features/edit_page.feature in activeadmin-0.6.6 vs features/edit_page.feature in activeadmin-1.0.0.pre1

- old
+ new

@@ -7,11 +7,16 @@ And a user named "John Doe" exists 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 + ActiveAdmin.register Post do + if Rails::VERSION::MAJOR == 4 + permit_params :custom_category_id, :author_id, :title, + :body, :position, :published_at, :starred + end + end """ When I am on the index page for posts Scenario: Default form with no config Given I follow "Edit" @@ -27,10 +32,12 @@ 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 + form do |f| f.inputs "Your Post" do f.input :title f.input :body end @@ -54,10 +61,12 @@ 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 + form :html => {} do |f| f.inputs "Your Post" do f.input :title f.input :body end @@ -91,9 +100,11 @@ end %> """ Given a configuration of: """ ActiveAdmin.register Post do + permit_params :category, :author, :title, :body, :published_at, :starred if Rails::VERSION::MAJOR == 4 + form :partial => "form" end """ Given I follow "Edit" Then the "Title" field should contain "Hello World"