summaryrefslogtreecommitdiff
path: root/spec/ActivitySummary_spec.rb
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2014-08-28 20:23:38 +0200
committerChris Schlaeger <chris@linux.com>2014-08-28 20:23:38 +0200
commit3c32e378c9ffc01c1ed994483571193127a4e6a4 (patch)
treeaaf4d47e8162ca971dfb3e6d9b546f8ccc8f643b /spec/ActivitySummary_spec.rb
parenta0e09bf3c5d9f78961239cc262d12c1af8d4cff4 (diff)
downloadpostrunner-3c32e378c9ffc01c1ed994483571193127a4e6a4.zip
Adding support for metric and statute units.
Diffstat (limited to 'spec/ActivitySummary_spec.rb')
-rw-r--r--spec/ActivitySummary_spec.rb28
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/ActivitySummary_spec.rb b/spec/ActivitySummary_spec.rb
new file mode 100644
index 0000000..4e92017
--- /dev/null
+++ b/spec/ActivitySummary_spec.rb
@@ -0,0 +1,28 @@
+#!/usr/bin/env ruby -w
+# encoding: UTF-8
+#
+# = PostRunner_spec.rb -- PostRunner - Manage the data from your Garmin sport devices.
+#
+# Copyright (c) 2014 by Chris Schlaeger <cs@taskjuggler.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of version 2 of the GNU General Public License as
+# published by the Free Software Foundation.
+#
+
+require 'postrunner/ActivitySummary'
+require 'spec_helper'
+
+describe PostRunner::ActivitySummary do
+
+ before(:each) do
+ @as = PostRunner::ActivitySummary.new(
+ create_fit_activity('2014-08-26-19:00', 30), 'test', :metric)
+ end
+
+ it 'should create a metric summary' do
+ @as.to_s #TODO: Fix aggregation first
+ end
+
+end
+