spec/support/models/model_date.rb in normalizy-1.3.0 vs spec/support/models/model_date.rb in normalizy-1.4.0

- old
+ new

@@ -1,7 +1,9 @@ # frozen_string_literal: true class ModelDate < ActiveRecord::Base - normalizy :date , with: :date - normalizy :date_format , with: { date: { format: '%y/%m/%d' } } - normalizy :date_time_zone, with: { date: { time_zone: 'Brasilia' } } + normalizy :date , with: :date + normalizy :date_format, with: { date: { format: '%y/%m/%d' } } + normalizy :date_time_begin, with: { date: { adjust: :begin } } + normalizy :date_time_end, with: { date: { adjust: :end } } + normalizy :date_time_zone, with: { date: { time_zone: 'Brasilia' } } end