From 074fd0405232a8b1cfbfb88cde5885ebb2c7a425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Fri, 21 Feb 2020 11:39:30 +0100 Subject: [PATCH] Fix more tests --- modules/bim/spec/features/bcf_export_spec.rb | 2 +- spec/features/work_packages/navigation_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/bim/spec/features/bcf_export_spec.rb b/modules/bim/spec/features/bcf_export_spec.rb index d21cbbe287..9ba5c18c3c 100644 --- a/modules/bim/spec/features/bcf_export_spec.rb +++ b/modules/bim/spec/features/bcf_export_spec.rb @@ -30,7 +30,7 @@ require 'spec_helper' describe 'work package export', type: :feature, js: true do let(:status) { FactoryBot.create(:status, name: 'New', is_default: true) } let(:closed_status) { FactoryBot.create(:closed_status, name: 'Closed') } - let(:project) { FactoryBot.create :project, enabled_module_names: [:bim] } + let(:project) { FactoryBot.create :project, enabled_module_names: [:bim, :work_package_tracking] } let!(:open_work_package) { FactoryBot.create(:work_package, project: project, subject: 'Open WP', status: status) } let!(:closed_work_package) { FactoryBot.create(:work_package, project: project, subject: 'Closed WP', status: closed_status) } diff --git a/spec/features/work_packages/navigation_spec.rb b/spec/features/work_packages/navigation_spec.rb index 44e09ebb5e..06847b50e8 100644 --- a/spec/features/work_packages/navigation_spec.rb +++ b/spec/features/work_packages/navigation_spec.rb @@ -30,7 +30,7 @@ require 'spec_helper' RSpec.feature 'Work package navigation', js: true, selenium: true do let(:user) { FactoryBot.create(:admin) } - let(:project) { FactoryBot.create(:project, name: 'Some project') } + let(:project) { FactoryBot.create(:project, name: 'Some project', enabled_module_names: [:work_package_tracking]) } let(:work_package) { FactoryBot.build(:work_package, project: project) } let(:global_html_title) { ::Components::HtmlTitle.new } let(:project_html_title) { ::Components::HtmlTitle.new project }