Skip to content

Instantly share code, notes, and snippets.

@beakr
Created April 8, 2012 11:58
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 beakr/2336852 to your computer and use it in GitHub Desktop.
Save beakr/2336852 to your computer and use it in GitHub Desktop.
Full date regexp.
describe ".full_date" do
it 'returns a full date' do
d.full_date.should =~ /^[A-Z]\w+ \d{1,2} \d{4}$/
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment