mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
11 lines
285 B
Ruby
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
|