mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
14 lines
312 B
Ruby
14 lines
312 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 [:name, :weight_id, :school_id], wrestler.errors.attribute_names
|
|
end
|
|
end
|