From 7494e2ec33a484c0bb8c9d8ca7b17cea8ed9c90c Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Sun, 26 Apr 2015 20:58:57 +0200 Subject: Use Activity.sport to select pace or speed. --- spec/ActivitySummary_spec.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'spec') 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 -- cgit v1.2.3