blob: 51353852a932fbd2ed24efaf64dd05829dcec4fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
require 'spec_helper'
describe ProtectedTag, models: true do
describe 'Associations' do
it { is_expected.to belong_to(:project) }
end
describe 'Validation' do
it { is_expected.to validate_presence_of(:project) }
it { is_expected.to validate_presence_of(:name) }
end
end
|