mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
15 lines
267 B
Ruby
15 lines
267 B
Ruby
require 'test_helper'
|
|
|
|
class MatTest < ActiveSupport::TestCase
|
|
# test "the truth" do
|
|
# assert true
|
|
# end
|
|
|
|
test "Mat validations" do
|
|
mat = Mat.new
|
|
assert_not mat.valid?
|
|
assert_equal [:tournament, :name], mat.errors.attribute_names
|
|
end
|
|
|
|
end
|