deploy_key_spec.rb 634 Bytes
Newer Older
1 2 3 4
# == Schema Information
#
# Table name: keys
#
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
5 6
#  id          :integer          not null, primary key
#  user_id     :integer
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
7 8
#  created_at  :datetime
#  updated_at  :datetime
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
9 10 11 12
#  key         :text
#  title       :string(255)
#  type        :string(255)
#  fingerprint :string(255)
Stan Hu's avatar
Stan Hu committed
13
#  public      :boolean          default(FALSE), not null
14 15 16 17 18 19 20 21 22
#

require 'spec_helper'

describe DeployKey do
  let(:project) { create(:project) }
  let(:deploy_key) { create(:deploy_key, projects: [project]) }

  describe "Associations" do
23 24
    it { is_expected.to have_many(:deploy_keys_projects) }
    it { is_expected.to have_many(:projects) }
25 26
  end
end