From 13fcc32a834e2db540bff1879c06ffc10f42d058 Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Sun, 14 May 2017 20:12:36 +1000 Subject: [PATCH] Test model had wrong validation method --- spec/spec_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a1fc8bc..a75afd2 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -71,8 +71,8 @@ end class Employee < ActiveRecord::Base attr_accessor :redefined_birth_date_called validates_date :birth_date, :allow_nil => true - validates_date :birth_time, :allow_nil => true - validates_date :birth_datetime, :allow_nil => true + validates_time :birth_time, :allow_nil => true + validates_datetime :birth_datetime, :allow_nil => true def birth_date=(value) self.redefined_birth_date_called = true