27 lines
764 B
Ruby
27 lines
764 B
Ruby
RSpec.describe AdministrationMailer, type: :mailer do
|
|
describe '#invite_admin' do
|
|
let(:admin) { create(:administrateur) }
|
|
let(:token) { "Toc toc toc" }
|
|
let(:administration_id) { BizDev::PIPEDRIVE_ID }
|
|
|
|
subject { described_class.invite_admin(admin, token, administration_id) }
|
|
|
|
it { expect(subject.subject).not_to be_empty }
|
|
end
|
|
|
|
describe '#refuse_admin' do
|
|
let(:mail) { "l33t-4dm1n@h4x0r.com" }
|
|
|
|
subject { described_class.refuse_admin(mail) }
|
|
|
|
it { expect(subject.subject).not_to be_empty }
|
|
end
|
|
|
|
describe '#dubious_procedures' do
|
|
let(:procedures_and_type_de_champs) { [] }
|
|
|
|
subject { described_class.dubious_procedures(procedures_and_type_de_champs) }
|
|
|
|
it { expect(subject.subject).not_to be_empty }
|
|
end
|
|
end
|