mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Retire semantic_form_for
Also a buttload of form cleanups...
This commit is contained in:
parent
350b1ebbbe
commit
81853d1ef9
136 changed files with 1825 additions and 1441 deletions
|
|
@ -6,4 +6,14 @@ describe Commercial do
|
|||
|
||||
it { should validate_presence_of(:url) }
|
||||
|
||||
it 'validates url format' do
|
||||
commercial = build(:conference_commercial, url: 'ftp://example.com')
|
||||
expect(commercial.valid?).to eq false
|
||||
expect(commercial.errors['url']).to eq ['is invalid']
|
||||
end
|
||||
|
||||
it 'validates url rendering' do
|
||||
commercial = build(:conference_commercial)
|
||||
expect(commercial.valid?).to eq true
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue