features/model.feature in katapult-0.1.2 vs features/model.feature in katapult-0.2.0

- old
+ new

@@ -61,14 +61,17 @@ person.attr :age, type: :integer person.attr :nick, type: :string person.attr :hobby # string is default # Special types - person.attr :email # type is detected as email + person.attr :email # type is auto-detected as email person.attr :income, type: :money person.attr :homepage, type: :url, default: 'http://www.makandra.de' person.attr :locked, type: :flag, default: false + person.attr :hobbies, type: :text + person.attr :indexable_json, type: :json + person.attr :plain_json, type: :plain_json end """ And I successfully transform the application model Then the file "app/models/person.rb" should contain exactly: """ @@ -92,10 +95,13 @@ t.string :hobby t.string :email t.decimal :income, precision: 10, scale: 2 t.string :homepage t.boolean :locked + t.text :hobbies + t.jsonb :indexable_json + t.json :plain_json t.timestamps null: false end end end @@ -221,27 +227,17 @@ And I successfully transform the application model Then the file named "config/routes.rb" should contain: """ Rails.application.routes.draw do root 'cars#index' - resources :cars, only: [:index, :show, :new, :create, :edit, :update, :destroy] do - member do - end - collection do - end - end + resources :cars """ And I successfully transform the application model Then the file named "config/routes.rb" should contain: """ Rails.application.routes.draw do root 'cars#index' - resources :cars, only: [:index, :show, :new, :create, :edit, :update, :destroy] do - member do - end - collection do - end - end + resources :cars """ And the file named "config/routes.rb" should contain "root 'cars#index'" exactly once And the file named "config/routes.rb" should contain "resources :cars" exactly once And the output should contain "Routes for :cars already exist! Not updated."