Skip to content

Commit

Permalink
AO3-6587 Fix justifiable spec, cucumber feature and Rubocop style gui…
Browse files Browse the repository at this point in the history
…dance
  • Loading branch information
scottsds committed Dec 15, 2024
1 parent 492d5be commit 3c20481
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/models/concerns/justifiable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
3 changes: 1 addition & 2 deletions features/other_a/pseuds.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 3c20481

Please sign in to comment.