From 739f8e9c9919cda5d3f5fcd9beb2c7a16b785045 Mon Sep 17 00:00:00 2001 From: Ryan Lue Date: Wed, 16 May 2018 16:13:18 +0800 Subject: [PATCH] Reformat ticket_spec to avoid calling rubocop:disable/enable --- spec/models/ticket_spec.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spec/models/ticket_spec.rb b/spec/models/ticket_spec.rb index 3266e0997..bdb317e4f 100644 --- a/spec/models/ticket_spec.rb +++ b/spec/models/ticket_spec.rb @@ -205,13 +205,11 @@ RSpec.describe Ticket do it 'does not modify its arguments' do trigger = Trigger.new( perform: { - # rubocop:disable Lint/InterpolationCheck 'notification.email' => { - body: 'Hello #{ticket.customer.firstname} #{ticket.customer.lastname},', + body: "Hello \#{ticket.customer.firstname} \#{ticket.customer.lastname},", recipient: %w[article_last_sender ticket_owner ticket_customer ticket_agents], - subject: 'Autoclose (#{ticket.title})' + subject: "Autoclose (\#{ticket.title})" } - # rubocop:enable Lint/InterpolationCheck } )