gitlab-org--gitlab-foss/spec/models/deploy_key_spec.rb

12 lines
306 B
Ruby
Raw Normal View History

2013-05-06 08:09:26 -04:00
require 'spec_helper'
2015-12-09 04:50:51 -05:00
describe DeployKey, models: true do
2013-05-06 08:09:26 -04:00
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) }
2013-05-06 08:09:26 -04:00
end
end