school_test.rb 279 B

1234567891011121314151617
  1. require 'test_helper'
  2. class SchoolTest < ActiveSupport::TestCase
  3. def setup
  4. @school = schools(:one)
  5. end
  6. test "should be valid" do
  7. assert @school.valid?
  8. end
  9. test "name should be present" do
  10. @school.name = " "
  11. assert_not @school.valid?
  12. end
  13. end