diff options
Diffstat (limited to 'spec/models/release_spec.rb')
-rw-r--r-- | spec/models/release_spec.rb | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/spec/models/release_spec.rb b/spec/models/release_spec.rb index 5ed4eb7d233..880fb21b7af 100644 --- a/spec/models/release_spec.rb +++ b/spec/models/release_spec.rb @@ -71,25 +71,12 @@ RSpec.describe Release do subject { build(:release, project: project, name: 'Release 1.0') } it { is_expected.to validate_presence_of(:author_id) } - - context 'when feature flag is disabled' do - before do - stub_feature_flags(validate_release_with_author: false) - end - - it { is_expected.not_to validate_presence_of(:author_id) } - end end - # Mimic releases created before 11.7 - # See: https://gitlab.com/gitlab-org/gitlab/-/blob/8e5a110b01f842d8b6a702197928757a40ce9009/app/models/release.rb#L14 + # Deleting user along with their contributions, nullifies releases author_id. context 'when updating existing release without author' do let(:release) { create(:release, :legacy) } - before do - stub_feature_flags(validate_release_with_author: false) - end - it 'updates successfully' do release.description += 'Update' |