blob: 3f86347c3ae2f6a631fcdcec76463414481809c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
require 'rails_helper'
RSpec.describe Release 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
|