osem-fcy/spec/models/sponsor_spec.rb
Henne Vogelsang 0104671e01
Stop validating factories in specs
We do validate all of them in a before(:suite) already.
2021-08-18 14:03:14 +02:00

15 lines
305 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
describe Sponsor do
describe 'validations' do
it 'is not valid without a name' do
should validate_presence_of(:name)
end
it 'is not valid without a website url' do
should validate_presence_of(:website_url)
end
end
end