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

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