use activemodel scoped class name in helper method to remove need for .kind override

This commit is contained in:
Adam Meehan
2011-02-24 21:12:49 +11:00
parent 9d654b1122
commit e3dea5aebd
3 changed files with 1 additions and 9 deletions

View File

@@ -7,10 +7,6 @@ describe ValidatesTimeliness::Validator do
Timecop.freeze(Time.local_time(2010, 1, 1, 0, 0, 0))
end
it 'should return validator kind as :timeliness' do
ValidatesTimeliness::Validator.kind.should == :timeliness
end
describe "Model.validates with :timeliness option" do
it 'should use plugin validator class' do
Person.validates :birth_date, :timeliness => {:is_at => Date.new(2010,1,1), :type => :date}