This commit is contained in:
Jens Kraemer
2020-07-24 07:50:43 +08:00
parent ff8fdf7d40
commit 1ed6942f0c

View File

@@ -29,7 +29,7 @@ class StartTimerTest < ActiveSupport::TestCase
@time_entry.reload
assert_equal hours, @time_entry.hours
another = TimeEntry.new(@time_entry.attributes)
another = TimeEntry.new(@time_entry.attributes.except('id'))
another.user = @user
r = Stopwatch::StartTimer.new(another, user: @user).call
assert r.success?