BigW Consortium Gitlab

deploy_key_spec.rb 306 Bytes
Newer Older
1 2
require 'spec_helper'

Douwe Maan committed
3
describe DeployKey, models: true do
4 5 6 7
  let(:project) { create(:project) }
  let(:deploy_key) { create(:deploy_key, projects: [project]) }

  describe "Associations" do
8 9
    it { is_expected.to have_many(:deploy_keys_projects) }
    it { is_expected.to have_many(:projects) }
10 11
  end
end