features/dsl/form.feature in ab_admin-0.2.3 vs features/dsl/form.feature in ab_admin-0.3.0

- old
+ new

@@ -12,11 +12,11 @@ group :base do field :sku field :price end field :is_visible - field :collection, :as => :association + field :collection, as: :association locale_tabs do field :name field :description end end @@ -41,11 +41,11 @@ """ And "app/views/admin/products/_form.html.slim" contains: """ = admin_form_for @product do |f| = input_set 'My custom fields' do - = f.input :sku, :label => 'Identifier' + = f.input :sku, label: 'Identifier' = f.save_buttons """ When I am on the new admin product page And I fill in "Identifier" with "pid-1" @@ -55,17 +55,17 @@ Scenario: Rendering custom form template Given a configuration of: """ class AbAdminProduct < AbAdmin::AbstractResource - form :partial => 'admin/products/form_custom' + form partial: 'admin/products/form_custom' end """ And "app/views/admin/products/_form_custom.html.slim" contains: """ = admin_form_for @product do |f| = input_set 'My custom fields' do - = f.input :sku, :label => 'Identifier' + = f.input :sku, label: 'Identifier' = f.save_buttons """ When I am on the new admin product page And I fill in "Identifier" with "pid-1"