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

26 lines
594 B
Ruby
Raw Normal View History

2013-05-06 08:09:26 -04:00
# == Schema Information
#
# Table name: keys
#
2013-08-21 05:34:02 -04:00
# id :integer not null, primary key
# user_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# key :text
# title :string(255)
# type :string(255)
# fingerprint :string(255)
2013-05-06 08:09:26 -04:00
#
require 'spec_helper'
describe DeployKey do
let(:project) { create(:project) }
let(:deploy_key) { create(:deploy_key, projects: [project]) }
describe "Associations" do
it { should have_many(:deploy_keys_projects) }
it { should have_many(:projects) }
end
end