From 3c20481e472d0cb05a635d53de14159a0c5f98f6 Mon Sep 17 00:00:00 2001 From: Scott Date: Sat, 14 Dec 2024 22:17:30 -0800 Subject: [PATCH] AO3-6587 Fix justifiable spec, cucumber feature and Rubocop style guidance --- app/models/concerns/justifiable.rb | 3 +-- features/other_a/pseuds.feature | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/models/concerns/justifiable.rb b/app/models/concerns/justifiable.rb index a465685088..a6f4e8df49 100644 --- a/app/models/concerns/justifiable.rb +++ b/app/models/concerns/justifiable.rb @@ -9,8 +9,7 @@ module Justifiable validates :ticket_number, presence: true, numericality: { only_integer: true, - message: "may begin with an # and otherwise contain only numbers." - }, + message: "may begin with an # and otherwise contain only numbers." }, if: :enabled? validate :ticket_number_exists_in_tracker, if: :enabled? diff --git a/features/other_a/pseuds.feature b/features/other_a/pseuds.feature index 8b6005b366..37826b9d43 100644 --- a/features/other_a/pseuds.feature +++ b/features/other_a/pseuds.feature @@ -268,8 +268,7 @@ Scenario: Change details as an admin When I fill in "Ticket ID" with "#4798454#331" And I press "Update" Then I should see "may begin with an # and otherwise contain only numbers" - And the field labeled "Ticket ID" should contain "4798454#331` -s" + And the field labeled "Ticket ID" should contain "4798454#331" When I fill in "Ticket ID" with "47" And I press "Update" Then I should see "Pseud was successfully updated."