Sha256: 882e10a02ad8a966fa5dcfb0f61e1a4b67c32919082decaff0c5218da168e8c4

Contents?: true

Size: 1.1 KB

Versions: 28

Compression:

Stored size: 1.1 KB

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 'spec_helper'
require 'postrunner/ActivitySummary'

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

describe PostRunner::ActivitySummary do

  before(:all) do
    capture_stdio
    create_working_dirs
    create_fit_file_store
  end

  before(:each) do
    acfg = { :t => '2014-08-26T19:00', :duration => 30, :serial => 123456790 }
    fn = create_fit_activity_file(@fit_dir, acfg)
    fa = @ffs.add_fit_file(fn)
    @as = PostRunner::ActivitySummary.new(fa, :metric,
                          { :name => 'test', :type => 'Running',
                            :sub_type => 'Street' })
  end

  after(:all) do
    cleanup
  end

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

end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
postrunner-1.2.0 spec/ActivitySummary_spec.rb
postrunner-1.1.1 spec/ActivitySummary_spec.rb
postrunner-1.1.0 spec/ActivitySummary_spec.rb
postrunner-1.0.5 spec/ActivitySummary_spec.rb
postrunner-1.0.4 spec/ActivitySummary_spec.rb
postrunner-1.0.2 spec/ActivitySummary_spec.rb
postrunner-1.0.1 spec/ActivitySummary_spec.rb
postrunner-1.0.0 spec/ActivitySummary_spec.rb
postrunner-0.12.0 spec/ActivitySummary_spec.rb
postrunner-0.11.0 spec/ActivitySummary_spec.rb
postrunner-0.10.1 spec/ActivitySummary_spec.rb
postrunner-0.10.0 spec/ActivitySummary_spec.rb
postrunner-0.9.0 spec/ActivitySummary_spec.rb
postrunner-0.8.1 spec/ActivitySummary_spec.rb
postrunner-0.8.0 spec/ActivitySummary_spec.rb
postrunner-0.7.5 spec/ActivitySummary_spec.rb
postrunner-0.7.4 spec/ActivitySummary_spec.rb
postrunner-0.7.3 spec/ActivitySummary_spec.rb
postrunner-0.7.2 spec/ActivitySummary_spec.rb
postrunner-0.7.1 spec/ActivitySummary_spec.rb