2013-06-19 08:40:33 -04: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
|
2014-04-09 08:05:03 -04:00
|
|
|
# created_at :datetime
|
|
|
|
# updated_at :datetime
|
2013-06-19 08:40:33 -04:00
|
|
|
#
|
|
|
|
|
2013-05-06 08:09:26 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe DeployKeysProject do
|
|
|
|
describe "Associations" do
|
|
|
|
it { should belong_to(:deploy_key) }
|
|
|
|
it { should belong_to(:project) }
|
|
|
|
end
|
|
|
|
|
|
|
|
describe "Validation" do
|
|
|
|
it { should validate_presence_of(:project_id) }
|
|
|
|
it { should validate_presence_of(:deploy_key_id) }
|
|
|
|
end
|
|
|
|
end
|