describe '#method' rather than describe '.method' for instance methods
This commit is contained in:
parent
5c9e5018f1
commit
13d251d970
16 changed files with 32 additions and 32 deletions
|
@ -33,14 +33,14 @@ describe MailTemplateConcern do
|
|||
end
|
||||
end
|
||||
|
||||
describe '.subject_for_dossier' do
|
||||
describe '#subject_for_dossier' do
|
||||
before { initiated_mail.subject = template }
|
||||
subject { initiated_mail.subject_for_dossier(dossier) }
|
||||
|
||||
it_behaves_like "can replace tokens in template"
|
||||
end
|
||||
|
||||
describe '.body_for_dossier' do
|
||||
describe '#body_for_dossier' do
|
||||
before { initiated_mail.body = template }
|
||||
subject { initiated_mail.body_for_dossier(dossier) }
|
||||
|
||||
|
@ -63,7 +63,7 @@ describe MailTemplateConcern do
|
|||
end
|
||||
end
|
||||
|
||||
describe '.replace_tags' do
|
||||
describe '#replace_tags' do
|
||||
before { initiated_mail.body = "n --numéro du dossier--" }
|
||||
it "avoids side effects" do
|
||||
expect(initiated_mail.body_for_dossier(dossier)).to eq("n #{dossier.id}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue