mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
Spec helper validate method setup in test models not needed
This commit is contained in:
parent
2b53d713bc
commit
1faf0efa4b
@ -49,9 +49,7 @@ class Person
|
|||||||
attribute :birth_date, :date
|
attribute :birth_date, :date
|
||||||
attribute :birth_time, :time
|
attribute :birth_time, :time
|
||||||
attribute :birth_datetime, :datetime
|
attribute :birth_datetime, :datetime
|
||||||
validates_date :birth_date
|
|
||||||
validates_time :birth_time
|
|
||||||
validates_datetime :birth_datetime
|
|
||||||
define_attribute_methods model_attributes.keys
|
define_attribute_methods model_attributes.keys
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -73,9 +71,6 @@ ActiveRecord::Schema.define(:version => 1) do
|
|||||||
end
|
end
|
||||||
|
|
||||||
class Employee < ActiveRecord::Base
|
class Employee < ActiveRecord::Base
|
||||||
validates_date :birth_date
|
|
||||||
validates_time :birth_time
|
|
||||||
validates_datetime :birth_datetime
|
|
||||||
define_attribute_methods
|
define_attribute_methods
|
||||||
|
|
||||||
attr_accessor :redefined_birth_date_called
|
attr_accessor :redefined_birth_date_called
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user