notebook/spec/models/location_spec.rb
2016-10-01 11:15:09 -05:00

10 lines
287 B
Ruby

require 'rails_helper'
require 'support/privacy_example'
require 'support/public_scope_example'
RSpec.describe Location, type: :model do
it_behaves_like 'content with privacy'
it_behaves_like 'content with an is_public scope'
it { is_expected.to validate_presence_of(:name) }
end