changed AR version constant to Rails

This commit is contained in:
Adam Meehan 2008-05-14 08:59:55 +10:00
parent d22aa94b89
commit fd8b8bad2e

View File

@ -22,7 +22,7 @@ describe ValidatesTimeliness::AttributeMethods do
@person.birth_date_and_time.should be_kind_of(Time) @person.birth_date_and_time.should be_kind_of(Time)
end end
unless ActiveRecord::VERSION::STRING < '2.1' unless Rails::VERSION::STRING < '2.1'
it "should return stored time string as Time with correct timezone" do it "should return stored time string as Time with correct timezone" do
Time.zone = TimeZone['Sydney'] # no I'm not from Sydney but there is no Melbourne timezone! Time.zone = TimeZone['Sydney'] # no I'm not from Sydney but there is no Melbourne timezone!
@person.birth_date_and_time = "1980-12-25 01:02:03" @person.birth_date_and_time = "1980-12-25 01:02:03"