demarches-normaliennes/spec/facades/invite_dossier_facades_spec.rb

15 lines
302 B
Ruby
Raw Normal View History

2016-12-15 17:58:40 +01:00
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