From fde5c1c0bb7187f6a39a86f0a394d2f196f3e670 Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Sat, 31 Oct 2015 21:34:24 +0100 Subject: New: Show event log in activity view. --- spec/PostRunner_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec') diff --git a/spec/PostRunner_spec.rb b/spec/PostRunner_spec.rb index 59c5d0e..f4dd33b 100644 --- a/spec/PostRunner_spec.rb +++ b/spec/PostRunner_spec.rb @@ -131,6 +131,14 @@ describe PostRunner::Main do list.index('Cycling').should be_a(Fixnum) end + it 'should list the events of an activity' do + postrunner(%w( events :1 )) + end + + it 'should list the data sources of an activity' do + postrunner(%w( sources :1 )) + end + it 'should fail when setting bad activity type' do lambda { postrunner(%w( set type foobar :1)) }.should raise_error Fit4Ruby::Error end -- cgit v1.2.3