From fd8b8bad2e560f095343f701a41a3bd2b3abc384 Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Wed, 14 May 2008 08:59:55 +1000 Subject: [PATCH] changed AR version constant to Rails --- spec/attribute_methods_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/attribute_methods_spec.rb b/spec/attribute_methods_spec.rb index 8226e0b..8540a11 100644 --- a/spec/attribute_methods_spec.rb +++ b/spec/attribute_methods_spec.rb @@ -22,7 +22,7 @@ describe ValidatesTimeliness::AttributeMethods do @person.birth_date_and_time.should be_kind_of(Time) 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 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"