summaryrefslogtreecommitdiff
path: root/spec/models/application_setting/term_spec.rb
blob: 1eddf3c56ff563af200ddea4bfca6158807487ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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