Skip to content

Commit

Permalink
AO3-6211 Fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilka2 committed Oct 15, 2024
1 parent 9e7f7bd commit 9a0f2b4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions app/models/tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1050,15 +1050,15 @@ def unwrangled?
#################################

def unwrangled_query(tag_type, options = {})
self_type = %w(Character Fandom Media).include?(self.type) ? self.type.downcase : "fandom"
self_type = %w[Character Fandom Media].include?(self.type) ? self.type.downcase : "fandom"
TagQuery.new(options.merge(
type: tag_type,
unwrangleable: false,
wrangled: false,
has_posted_works: true,
"pre_#{self_type}_ids": [self.id],
per_page: Tag.per_page
))
type: tag_type,
unwrangleable: false,
wrangled: false,
has_posted_works: true,
"pre_#{self_type}_ids": [self.id],
per_page: Tag.per_page
))
end

def unwrangled_tags(tag_type, options = {})
Expand Down
2 changes: 1 addition & 1 deletion features/step_definitions/tag_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@
visit wrangle_tag_path(Tag.find_by(name: tag), show: type.pluralize, status: status)
end

When /^I view the (character|relationship|freeform|fandom) mass bin$/ do |type|
When /^I view the (character|relationship|freeform|fandom) mass bin$/ do |type| # rubocop:disable Cucumber/RegexStepName
visit tag_wranglings_path(show: type.pluralize)
end

Expand Down
4 changes: 2 additions & 2 deletions features/tags_and_wrangling/tag_wrangling.feature
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Feature: Tag wrangling
And I am logged in as a tag wrangler
When I go to my wrangling page
Then I should see "Wrangling Home"
And I should see "Fandoms by media (3)"
And I should see "Fandoms by media (2)"
And I should see "Characters by fandom (2)"
And I should see "Relationships by fandom (1)"
When I follow <link_text>
Expand All @@ -40,7 +40,7 @@ Feature: Tag wrangling
| "Wrangling Tools" | "Tag Wrangling" |
| "Characters by fandom (2)" | "Mass Wrangle New/Unwrangled Tags" |
| "Relationships by fandom (1)" | "Mass Wrangle New/Unwrangled Tags" |
| "Fandoms by media (3)" | "Mass Wrangle New/Unwrangled Tags" |
| "Fandoms by media (2)" | "Mass Wrangle New/Unwrangled Tags" |

Scenario: Edit tag page
Given the tag wrangling setup
Expand Down

0 comments on commit 9a0f2b4

Please sign in to comment.