debian-mirror-gitlab/spec/models/deploy_key_spec.rb
2016-06-02 11:05:42 +05:30

11 lines
306 B
Ruby

require 'spec_helper'
describe DeployKey, models: true do
let(:project) { create(:project) }
let(:deploy_key) { create(:deploy_key, projects: [project]) }
describe "Associations" do
it { is_expected.to have_many(:deploy_keys_projects) }
it { is_expected.to have_many(:projects) }
end
end