release_spec.rb 363 Bytes
Newer Older
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
1 2
require 'rails_helper'

3
RSpec.describe Release 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
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
16
end