Skip to content

Commit

Permalink
Fix Ratings Model Test To Include Score
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasUCSB committed Nov 16, 2024
1 parent effae74 commit 8c25008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/models/rating_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class RatingTest < ActiveSupport::TestCase
def setup
@user = User.create(username: "testuser", password: "password123")
@item = Item.create(name: "Test Item", description: "A test item")
@rating = Rating.new(user: @user, item: @item, comment: "Great item!")
@rating = Rating.new(user: @user, item: @item, comment: "Great item!", score: 5)
end

test "should be valid with user, item, and comment" do
Expand Down

0 comments on commit 8c25008

Please sign in to comment.