mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 13:46:11 +10:00
27 lines
544 B
Ruby
27 lines
544 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: protected_branches
|
|
#
|
|
# id :integer not null, primary key
|
|
# project_id :integer not null
|
|
# name :string(255) not null
|
|
# created_at :datetime
|
|
# updated_at :datetime
|
|
#
|
|
|
|
require 'spec_helper'
|
|
|
|
describe ProtectedBranch do
|
|
describe 'Associations' do
|
|
it { should belong_to(:project) }
|
|
end
|
|
|
|
describe "Mass assignment" do
|
|
end
|
|
|
|
describe 'Validation' do
|
|
it { should validate_presence_of(:project) }
|
|
it { should validate_presence_of(:name) }
|
|
end
|
|
end
|