Update a test to comply with Rubocop rules
This commit is contained in:
parent
a9da6047c3
commit
a87e79ac1f
1 changed files with 2 additions and 3 deletions
|
@ -15,7 +15,6 @@ describe TagsSubstitutionConcern, type: :model do
|
|||
let(:template_concern) do
|
||||
(Class.new do
|
||||
include TagsSubstitutionConcern
|
||||
public :replace_tags
|
||||
|
||||
def initialize(p, s)
|
||||
@procedure = p
|
||||
|
@ -35,7 +34,7 @@ describe TagsSubstitutionConcern, type: :model do
|
|||
|
||||
before { Timecop.freeze(Time.now) }
|
||||
|
||||
subject { template_concern.replace_tags(template, dossier) }
|
||||
subject { template_concern.send(:replace_tags, template, dossier) }
|
||||
|
||||
after { Timecop.return }
|
||||
|
||||
|
@ -253,7 +252,7 @@ describe TagsSubstitutionConcern, type: :model do
|
|||
let(:template) { '--motivation-- --date de décision--' }
|
||||
let(:state) { Dossier.states.fetch(:en_instruction) }
|
||||
|
||||
subject { template_concern.replace_tags(template, dossier) }
|
||||
subject { template_concern.send(:replace_tags, template, dossier) }
|
||||
|
||||
it "does not treat motivation or date de décision as tags" do
|
||||
is_expected.to eq('--motivation-- --date de décision--')
|
||||
|
|
Loading…
Reference in a new issue