mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 15:22:58 +00:00
changed rails version detection to be tighter to avoid rails RC problem
added rspec on rails validate_timeliness_of matcher
This commit is contained in:
@@ -22,7 +22,7 @@ describe ValidatesTimeliness::AttributeMethods do
|
||||
@person.birth_date_and_time.should be_kind_of(Time)
|
||||
end
|
||||
|
||||
unless Rails::VERSION::STRING < '2.1'
|
||||
unless Rails::VERSION::STRING <= '2.0.2'
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user