1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-24 17:04:43 +00:00
Files
wrestlingdev.com/test/models/wrestler_test.rb

15 lines
326 B
Ruby

require 'test_helper'
class WrestlerTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
test "Wrestler validations" do
wrestler = Wrestler.new
assert_not wrestler.valid?
assert_equal [:school, :weight, :name, :weight_id, :school_id], wrestler.errors.attribute_names
end
end