Sha256: ed813522e4b7690bc16b67dc08ec6be953573b8fc8f776172237c9f34d0453df

Contents?: true

Size: 929 Bytes

Versions: 1

Compression:

Stored size: 929 Bytes

Contents

#!/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'

class Activity < Struct.new(:fit_activity, :sport)
end

describe PostRunner::ActivitySummary do

  before(:each) do
    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

  it 'should create a metric summary' do
    puts @as.to_s #TODO: Fix aggregation first
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
postrunner-0.0.9 spec/ActivitySummary_spec.rb