summaryrefslogtreecommitdiff
path: root/spec/models/release_spec.rb
blob: 527005b2b698adae9c53e09ae84bcd81b6ebc18a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'rails_helper'

RSpec.describe Release, type: :model do
  let(:release) { create(:release) }

  it { expect(release).to be_valid }

  describe 'associations' do
    it { is_expected.to belong_to(:project) }
  end

  describe 'validation' do
    it { is_expected.to validate_presence_of(:project) }
    it { is_expected.to validate_presence_of(:description) }
  end
end