Created
April 8, 2012 11:58
-
-
Save beakr/2336852 to your computer and use it in GitHub Desktop.
Full date regexp.
This file contains hidden or 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 ".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