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

25 lines
609 B
Ruby
Raw Normal View History

2013-06-19 12:40:33 +00:00
# == Schema Information
#
# Table name: deploy_keys_projects
#
# id :integer not null, primary key
# deploy_key_id :integer not null
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
2013-06-19 12:40:33 +00:00
#
2013-05-06 12:09:26 +00:00
require 'spec_helper'
describe DeployKeysProject do
describe "Associations" do
it { is_expected.to belong_to(:deploy_key) }
it { is_expected.to belong_to(:project) }
2013-05-06 12:09:26 +00:00
end
describe "Validation" do
it { is_expected.to validate_presence_of(:project_id) }
it { is_expected.to validate_presence_of(:deploy_key_id) }
2013-05-06 12:09:26 +00:00
end
end