summaryrefslogtreecommitdiff
path: root/spec/PostRunner_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/PostRunner_spec.rb')
-rw-r--r--spec/PostRunner_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/PostRunner_spec.rb b/spec/PostRunner_spec.rb
index cd21f7c..06a8a66 100644
--- a/spec/PostRunner_spec.rb
+++ b/spec/PostRunner_spec.rb
@@ -18,16 +18,16 @@ describe PostRunner::Main do
a.timestamp = Time.parse(date)
a.total_timer_time = 30 * 60
0.upto(30) do |mins|
- r = a.new_record
+ r = a.new_record('record')
r.timestamp = a.timestamp + mins * 60
r.distance = 200.0 * mins
r.cadence = 75
if mins > 0 && mins % 5 == 0
- s = a.new_lap
+ s = a.new_record('laps')
end
end
- a.new_session
+ a.new_record('session')
a.aggregate
Fit4Ruby.write(name, a)
end