Skip to content

Commit

Permalink
test: ๐Ÿ’ Track ใฎๅ€‹ๆ•ฐใซ้–ขใ™ใ‚‹ Spec ใ‚’่ฟฝๅŠ ใ—ใŸ (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikukyugamer authored Dec 3, 2023
1 parent 24e23a7 commit 876922e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/models/artist_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@
expect(Artist.first.albums).to be_present
expect(Artist.first.albums.first.class).to eq Album
end

it 'ใใ‚Œใžใ‚Œใฎ Album ใซ็ดใฅใ Track ใฎๅ€‹ๆ•ฐใŒๆญฃใ—ใ„ใ“ใจ' do
Album.all.each do |album|
expect(album.tracks.count).to eq album.total_tracks
end
end
end

0 comments on commit 876922e

Please sign in to comment.