Skip to content

Commit

Permalink
fix some linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
meltheadorable committed Jun 5, 2024
1 parent 9d83bb2 commit 3d291af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/support/helpers/system_spec_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# Collection of helper methods for integration testing.
module SystemSpecHelpers
ALERT_CLASSES = {
notice: "alert-info",
Expand Down Expand Up @@ -53,7 +54,8 @@ def fill_in_token_input(id, options)
unless options[:dont_pick]
if options[:pick]
textual_numbers = %i[first second third fourth fifth]
if index = textual_numbers.index(options[:pick])
index = textual_numbers.index(options[:pick])
if index
selector = ":nth-child(#{index + 1})"
elsif options[:pick].class == String
selector = ":contains(\"#{options[:pick]}\")"
Expand Down

0 comments on commit 3d291af

Please sign in to comment.