Skip to content

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

replace removed update_attributes method

ulferts7da7cfc39842
diff --git a/spec_legacy/unit/wiki_content_spec.rb b/spec_legacy/unit/wiki_content_spec.rb
index 7e94b753b00..a8fe6b80416 100644
--- a/spec_legacy/unit/wiki_content_spec.rb
+++ b/spec_legacy/unit/wiki_content_spec.rb
@@ -65,7 +65,7 @@ describe WikiContent, type: :model do
it 'should fetch history' do
wiki_content_journal = FactoryBot.create(:wiki_content_journal,
journable: @page.content)
- wiki_content_journal.data.update_attributes(page_id: @page.id, text: '')
+ wiki_content_journal.data.update(page_id: @page.id, text: '')
@page.content.journals.each do |journal|