mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 17:23:34 +02:00
Revert "Registry 569"
This commit is contained in:
parent
9565f23e68
commit
4786dbb943
50 changed files with 323 additions and 2463 deletions
|
@ -1,17 +0,0 @@
|
|||
# https://en.wikipedia.org/wiki/ISO_8601
|
||||
|
||||
RSpec.shared_examples 'iso8601' do
|
||||
describe 'validation' do
|
||||
it 'rejects invalid' do
|
||||
model.send("#{attribute}=", '2010-07-0')
|
||||
model.validate
|
||||
expect(model.errors).to be_added(attribute, :invalid_iso8601_date)
|
||||
end
|
||||
|
||||
it 'accepts valid' do
|
||||
model.send("#{attribute}=", '2010-07-05')
|
||||
model.validate
|
||||
expect(model.errors).to_not be_added(attribute, :invalid_iso8601_date)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue