OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
remove legacy spec covered by current ones already
ulferts7d83309bd4a1
diff --git a/spec_legacy/unit/journal_spec.rb b/spec_legacy/unit/journal_spec.rbindex 220728b6e5a..6f5ef8c4cd0 100644--- a/spec_legacy/unit/journal_spec.rb+++ b/spec_legacy/unit/journal_spec.rb@@ -31,33 +31,9 @@ require_relative '../legacy_spec_helper'describe Journal,type: :model,- with_settings: { notified_events: %w(work_package_updated) } do+ with_settings: { notified_events: %w(work_package_added work_package_updated) } dofixtures :all- it 'create should send email notification' do- issue = WorkPackage.first- if issue.journals.empty?- issue.add_journal(User.current, 'This journal represents the creationa of journal version 1')- issue.save- end-- issue.reload- issue.update_attribute(:subject, 'New subject to trigger automatic journal entry')- assert_equal 2, ActionMailer::Base.deliveries.size- end-- it 'create should not send email notification if told not to' do- issue = WorkPackage.first- user = User.first- issue.add_journal(user, 'A note')- JournalManager.send_notification = false-- assert_difference('Journal.count') do- assert issue.save- end- assert_equal 0, ActionMailer::Base.deliveries.size- end-specify 'creating a journal should update the updated_on value of the parent record (touch)' do@user = FactoryBot.create(:user)@project = FactoryBot.create(:project)