debian-mirror-gitlab/spec/models/release_spec.rb

17 lines
363 B
Ruby
Raw Normal View History

2015-11-26 14:37:03 +05:30
require 'rails_helper'
2017-09-10 17:25:29 +05:30
RSpec.describe Release do
2015-11-26 14:37:03 +05:30
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