Reformat ticket_spec to avoid calling rubocop:disable/enable

This commit is contained in:
Ryan Lue 2018-05-16 16:13:18 +08:00
parent f086b30957
commit 739f8e9c99

View file

@ -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
}
)