Skip to content

Commit

Permalink
Ran linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuji3000 committed Dec 28, 2024
1 parent eab4d66 commit 700e7cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/pet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class Pet < ApplicationRecord

# Returns an array of unique species of an organization
scope :unique_species, -> { distinct.pluck(:species) }

attr_writer :toggle

# check if pet has any applications with adoption pending status
Expand Down
4 changes: 2 additions & 2 deletions test/models/pet_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ class PetTest < ActiveSupport::TestCase
create(:pet, species: "Dog")
create(:pet, species: "Cat")
create(:pet, species: "Dog")

unique_species = Pet.unique_species

assert_equal ["Cat", "Dog"], unique_species.sort
assert_equal 1, unique_species.count("Dog")
end
Expand Down

0 comments on commit 700e7cc

Please sign in to comment.