Welcome to mirror list, hosted at ThFree Co, Russian Federation.

deploy_keys_project_spec.rb « models « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3e0e25ee39aff4d4804ce8db4da89c61959aa8e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# == 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
#

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