Skip to content

Instantly share code, notes, and snippets.

@thilo
Created March 14, 2009 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thilo/79180 to your computer and use it in GitHub Desktop.
Save thilo/79180 to your computer and use it in GitHub Desktop.
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