summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2014-08-03 22:11:15 +0200
committerChris Schlaeger <chris@linux.com>2014-08-03 22:11:15 +0200
commit180144a4b3228018213a8cd25c667690e7f66d75 (patch)
treef48a10b49f5333d46305e73b0ef1716452759588
parentb9eaf5d4bc366e2f13921bac49017801ce4d6449 (diff)
downloadpostrunner-180144a4b3228018213a8cd25c667690e7f66d75.zip
API changes in fit4ruby
-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