notebook/test/models/location_test.rb
2016-07-11 18:14:29 -05:00

11 lines
285 B
Ruby

require 'test_helper'
# Tests for the Location model class
class LocationTest < ActiveSupport::TestCase
test 'location not valid without a name' do
location = build(:location, name: nil)
refute location.valid?, 'Location name is not being validated for presence'
end
end