features/edit_page.feature in activeadmin-1.0.0.pre4 vs features/edit_page.feature in activeadmin-1.0.0.pre5

- old
+ new

@@ -10,11 +10,11 @@ Given a configuration of: """ ActiveAdmin.register Post do if Rails::VERSION::MAJOR >= 4 permit_params :custom_category_id, :author_id, :title, - :body, :position, :published_at, :starred + :body, :position, :published_date, :starred end end """ When I am on the index page for posts @@ -32,19 +32,19 @@ 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_date, :starred if Rails::VERSION::MAJOR >= 4 form do |f| f.inputs "Your Post" do f.input :title f.input :body end f.inputs "Publishing" do - f.input :published_at + f.input :published_date end f.actions end end """ @@ -61,19 +61,19 @@ 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_date, :starred if Rails::VERSION::MAJOR >= 4 - form :html => {} do |f| + form html: {} do |f| f.inputs "Your Post" do f.input :title f.input :body end f.inputs "Publishing" do - f.input :published_at + f.input :published_date end f.actions end end """ @@ -92,20 +92,20 @@ Scenario: Generating a form from a partial Given "app/views/admin/posts/_form.html.erb" contains: """ <% url = @post.new_record? ? admin_posts_path : admin_post_path(@post) %> - <%= active_admin_form_for @post, :url => url do |f| + <%= active_admin_form_for @post, url: url do |f| f.inputs :title, :body f.actions 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_date, :starred if Rails::VERSION::MAJOR >= 4 - form :partial => "form" + form partial: "form" end """ Given I follow "Edit" Then the "Title" field should contain "Hello World" And the "Body" field should contain ""