debian-mirror-gitlab/spec/models/application_setting/term_spec.rb

16 lines
306 B
Ruby
Raw Normal View History

2018-10-15 14:42:47 +05:30
require 'spec_helper'
describe ApplicationSetting::Term do
describe 'validations' do
it { is_expected.to validate_presence_of(:terms) }
end
describe '.latest' do
it 'finds the latest terms' do
terms = create(:term)
expect(described_class.latest).to eq(terms)
end
end
end