spec/lib/archimedes_spec.rb in archimedes-0.0.1 vs spec/lib/archimedes_spec.rb in archimedes-1.0.0

- old
+ new

@@ -64,6 +64,18 @@ it 'passes the rate along if present' do @archimedes.service.expects(:time).with('sk.time', 0.1) @archimedes.time('sk.time', 0.1) {} end end -end \ No newline at end of file + + describe '.timing' do + it 'defaults the duration to 1' do + @archimedes.service.expects(:timing).with('sk.timing', 1) + @archimedes.timing('sk.timing') + end + + it 'passes the duration along if present' do + @archimedes.service.expects(:timing).with('sk.timing', 320) + @archimedes.timing('sk.timing', 320) + end + end +end