debian-mirror-gitlab/spec/models/protected_branch_spec.rb
2016-06-02 11:05:42 +05:30

15 lines
334 B
Ruby

require 'spec_helper'
describe ProtectedBranch, models: true do
describe 'Associations' do
it { is_expected.to belong_to(:project) }
end
describe "Mass assignment" do
end
describe 'Validation' do
it { is_expected.to validate_presence_of(:project) }
it { is_expected.to validate_presence_of(:name) }
end
end