Created
March 14, 2009 20:44
-
-
Save thilo/79180 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "store localized date strings" do | |
class User < ActiveRecord::Base | |
end | |
it "should store a german date string" do #failing | |
user = User.create! :date_of_birth => '20.12.1980' | |
user.date_of_birth.should == Date.parse('1980-12-20') | |
end | |
it "should store a international date string" do | |
user = User.create! :date_of_birth => '1980-12-20' | |
user.date_of_birth.should == Date.parse('1980-12-20') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment