22 lines
458 B
Ruby
22 lines
458 B
Ruby
require 'spec_helper'
|
|
|
|
describe DeployKey, models: true do
|
|
include EmailHelpers
|
|
|
|
describe "Associations" do
|
|
it { is_expected.to have_many(:deploy_keys_projects) }
|
|
it { is_expected.to have_many(:projects) }
|
|
end
|
|
|
|
describe 'notification' do
|
|
let(:user) { create(:user) }
|
|
|
|
it 'does not send a notification' do
|
|
perform_enqueued_jobs do
|
|
create(:deploy_key, user: user)
|
|
end
|
|
|
|
should_not_email(user)
|
|
end
|
|
end
|
|
end
|