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

at_timestamp: adding missing time-entries attribute in specs

Sebastian Fiedlschuster0395d2a4804f
diff --git a/spec/models/journable/timestamps_spec.rb b/spec/models/journable/timestamps_spec.rb
index cb54d598368..ebe6d8c83e8 100644
--- a/spec/models/journable/timestamps_spec.rb
+++ b/spec/models/journable/timestamps_spec.rb
@@ -206,7 +206,7 @@ describe Journable::Timestamps, type: :model do
describe "when filtering on a column of an associated table" do
before do
- @time_entry = work_package.time_entries.create! user_id: User.first.id, hours: 1, activity_id: 1, project_id: create(:project).id, spent_on: @monday
+ @time_entry = work_package.time_entries.create! user_id: User.first.id, hours: 1, activity_id: 1, project_id: create(:project).id, spent_on: @monday, logged_by_id: User.first.id
@relation = WorkPackage.joins(:time_entries).where(time_entries: {id: @time_entry.id})
end
describe "when querying with at_timestamp" do