BigW Consortium Gitlab

release_spec.rb 377 Bytes
Newer Older
1 2 3
require 'rails_helper'

RSpec.describe Release, type: :model do
4 5 6 7 8 9 10 11 12 13 14 15
  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
16
end