features/belongs_to.feature in activeadmin-1.0.0.pre5 vs features/belongs_to.feature in activeadmin-1.0.0

- old
+ new

@@ -14,23 +14,23 @@ ActiveAdmin.register Post do belongs_to :user end """ When I go to the last author's posts - Then the "Posts" tab should be selected - And I should not see a menu item for "Users" + Then the "Users" tab should be selected + And I should not see a menu item for "Posts" And I should see "Displaying 1 Post" And I should see a link to "Users" in the breadcrumb And I should see a link to "Jane Doe" in the breadcrumb Scenario: Updating a child resource page Given a configuration of: """ ActiveAdmin.register User ActiveAdmin.register Post do belongs_to :user - permit_params :title, :body, :published_date if Rails::VERSION::MAJOR >= 4 + permit_params :title, :body, :published_date form do |f| f.inputs "Your Post" do f.input :title f.input :body @@ -54,11 +54,11 @@ Given a configuration of: """ ActiveAdmin.register User ActiveAdmin.register Post do belongs_to :user - permit_params :title, :body, :published_date if Rails::VERSION::MAJOR >= 4 + permit_params :title, :body, :published_date form do |f| f.inputs "Your Post" do f.input :title f.input :body @@ -91,10 +91,10 @@ end """ When I go to the last author's posts And I follow "View" Then I should be on the last author's last post page - And the "Posts" tab should be selected + And the "Users" tab should be selected Scenario: When the belongs to is optional Given a configuration of: """ ActiveAdmin.register User