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 spec
Oliver Günthera1e06605224d
diff --git a/modules/costs/spec/models/queries/time_entries/time_entry_query_integration_spec.rb b/modules/costs/spec/models/queries/time_entries/time_entry_query_integration_spec.rbindex 37c0e98b607..f98ddcfda3c 100644--- a/modules/costs/spec/models/queries/time_entries/time_entry_query_integration_spec.rb+++ b/modules/costs/spec/models/queries/time_entries/time_entry_query_integration_spec.rb@@ -55,6 +55,14 @@ RSpec.describe Queries::TimeEntries::TimeEntryQuery, 'integration' doit 'only returns the users own time entries' doexpect(subject).to contain_exactly(user_timer)end++ context 'when user has log_time permission' do+ let(:user) { create(:user, member_with_permissions: { project => %i[log_time] }) }++ it 'still returns the users own time entries' do+ expect(subject).to contain_exactly(user_timer)+ end+ endendendend