summaryrefslogtreecommitdiff
path: root/spec/ActivitySummary_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ActivitySummary_spec.rb')
-rw-r--r--spec/ActivitySummary_spec.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/ActivitySummary_spec.rb b/spec/ActivitySummary_spec.rb
index b09f6d3..08e2b15 100644
--- a/spec/ActivitySummary_spec.rb
+++ b/spec/ActivitySummary_spec.rb
@@ -13,11 +13,15 @@
require 'postrunner/ActivitySummary'
require 'spec_helper'
+class Activity < Struct.new(:fit_activity, :sport)
+end
+
describe PostRunner::ActivitySummary do
before(:each) do
- @as = PostRunner::ActivitySummary.new(
- create_fit_activity('2014-08-26-19:00', 30), :metric,
+ fa = create_fit_activity('2014-08-26-19:00', 30)
+ a = Activity.new(fa, 'running')
+ @as = PostRunner::ActivitySummary.new(a, :metric,
{ :name => 'test', :type => 'Running',
:sub_type => 'Street' })
end