gitlab-org--gitlab-foss/spec/models/protected_branch_spec.rb
Dmitriy Zaporozhets 0f550aa386
Remove mass assgnment specs
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-26 23:57:55 +03:00

26 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