Don’t use alias_method_chain, use a proxy method
This commit is contained in:
parent
bc7fc2634e
commit
ec69086ebc
7 changed files with 38 additions and 41 deletions
|
@ -33,7 +33,7 @@ describe Admin::MailTemplatesController, type: :controller do
|
|||
it { expect(response).to redirect_to admin_procedure_mail_templates_path(procedure) }
|
||||
|
||||
context 'the mail template' do
|
||||
subject { procedure.reload ; procedure.initiated_mail }
|
||||
subject { procedure.reload ; procedure.initiated_mail_template }
|
||||
|
||||
it { expect(subject.object).to eq(object) }
|
||||
it { expect(subject.body).to eq(body) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue