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
Add specs
Klaus Zandersb9aa2610e6f5
diff --git a/modules/meeting/spec/models/meeting_spec.rb b/modules/meeting/spec/models/meeting_spec.rbindex f076290e1f8..38344bfb2e4 100644--- a/modules/meeting/spec/models/meeting_spec.rb+++ b/modules/meeting/spec/models/meeting_spec.rb@@ -148,7 +148,7 @@ RSpec.describe Meeting domeeting.save!end- it { expect(meeting.watchers.collect(&:user)).to match_array([user1, user2]) }+ it { expect(meeting.watchers.collect(&:user)).to contain_exactly(user1, user2) }enddescribe '#close_agenda_and_copy_to_minutes' do@@ -235,4 +235,18 @@ RSpec.describe Meeting doendendend++ describe 'acts_as_watchable' do+ it 'is watchable' do+ expect(described_class).to include(Redmine::Acts::Watchable::InstanceMethods)+ end++ it 'uses the :view_meetings permission' do+ expect(described_class.acts_as_watchable_permission).to eq(:view_meetings)+ end++ it 'uses the :view_meetings permission in STI classes' do+ expect(StructuredMeeting.acts_as_watchable_permission).to eq(:view_meetings)+ end+ endend