Skip to content

Commit

Permalink
Remove redundant position sequence from Track factory
Browse files Browse the repository at this point in the history
This sequence pre-dates the use of `acts_as_list` on `Track` and is no
longer necessary. Furthermore it was actually giving unrealistic data in
tests, because the sequence is *global* rather than per album.
  • Loading branch information
floehopper committed Dec 22, 2023
1 parent c4f63fe commit df0e12e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/factories/tracks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
factory :track do
album
sequence(:title) { |n| "Never gonna give you up #{n}" }
sequence(:position) { |n| n }

after(:build) do |track|
track.original.attach(
Expand Down

0 comments on commit df0e12e

Please sign in to comment.