Add InviteDossierFacade tests
This commit is contained in:
parent
067097825f
commit
3dc26bd9aa
1 changed files with 15 additions and 0 deletions
15
spec/facades/invite_dossier_facades_spec.rb
Normal file
15
spec/facades/invite_dossier_facades_spec.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe InviteDossierFacades do
|
||||
|
||||
let(:dossier) { create :dossier }
|
||||
let(:email) { 'email@octo.com' }
|
||||
|
||||
subject { described_class.new dossier.id, email }
|
||||
|
||||
before do
|
||||
create :invite, email: email, dossier: dossier
|
||||
end
|
||||
|
||||
it { expect(subject.dossier).to eq dossier }
|
||||
end
|
Loading…
Reference in a new issue