diff --git a/app/models/release.rb b/app/models/release.rb index 8efc34fa28c8ddc1bca28b6e19f31e66f20e1cb0..6271d25a1662b23884d892f38256bcac62adce94 100644 --- a/app/models/release.rb +++ b/app/models/release.rb @@ -11,7 +11,7 @@ class Release < ApplicationRecord cache_markdown_field :description - belongs_to :project, touch: true + belongs_to :project belongs_to :author, class_name: 'User' has_many :links, class_name: 'Releases::Link' diff --git a/spec/models/release_spec.rb b/spec/models/release_spec.rb index 49c2d4f3c7984fcee93479e49a29eecd27855d14..38350e12aa213398a394a8db48c10ea8227a769d 100644 --- a/spec/models/release_spec.rb +++ b/spec/models/release_spec.rb @@ -11,7 +11,7 @@ it { expect(release).to be_valid } describe 'associations' do - it { is_expected.to belong_to(:project).touch(true) } + it { is_expected.to belong_to(:project) } it { is_expected.to belong_to(:author).class_name('User') } it { is_expected.to have_many(:links).class_name('Releases::Link') } it { is_expected.to have_many(:milestones) } diff --git a/spec/requests/api/tags_spec.rb b/spec/requests/api/tags_spec.rb index 403416ff6c1dc4a56a7ce26c56b15edaf4497a29..673ed6bd1b2b3f5c3381b770acda0b2f8093f198 100644 --- a/spec/requests/api/tags_spec.rb +++ b/spec/requests/api/tags_spec.rb @@ -265,14 +265,6 @@ it_behaves_like "cache expired" end - context "when release is changed" do - before do - create(:release, :legacy, project: project, tag: tag_name) - end - - it_behaves_like "cache expired" - end - context "when project is changed" do before do project.touch