gitlab-org--gitlab-foss/spec/models/protected_branch_spec.rb

16 lines
334 B
Ruby
Raw Normal View History

require 'spec_helper'
2015-12-09 04:50:51 -05:00
describe ProtectedBranch, models: true do
2012-05-10 18:43:12 -04:00
describe 'Associations' do
it { is_expected.to belong_to(:project) }
2012-05-10 18:43:12 -04:00
end
describe "Mass assignment" do
end
2012-05-10 18:43:12 -04:00
describe 'Validation' do
it { is_expected.to validate_presence_of(:project) }
it { is_expected.to validate_presence_of(:name) }
2012-05-10 18:43:12 -04:00
end
end