From 3dc26bd9aa959a11db26fcac1524824bed58e1c7 Mon Sep 17 00:00:00 2001 From: Xavier J Date: Thu, 15 Dec 2016 17:58:40 +0100 Subject: [PATCH] Add InviteDossierFacade tests --- spec/facades/invite_dossier_facades_spec.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 spec/facades/invite_dossier_facades_spec.rb diff --git a/spec/facades/invite_dossier_facades_spec.rb b/spec/facades/invite_dossier_facades_spec.rb new file mode 100644 index 000000000..63093b2e9 --- /dev/null +++ b/spec/facades/invite_dossier_facades_spec.rb @@ -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 \ No newline at end of file