Sha256: f1de4418ace08f3d9694f0542c6f69834d3438852cffe0b1ce531e0243036189

Contents?: true

Size: 498 Bytes

Versions: 13

Compression:

Stored size: 498 Bytes

Contents

require 'spec_helper'

describe FitParser::File::RecordHeader do
  context 'given a sample normal header' do
    subject do
      described_class.read example_file('record/normal_header')
    end

    its(:header_type) { should == 0 }
    its(:message_type) { should == 1 }
    its(:local_message_type) { should == 0 }

    it { is_expected.to be_normal }
    it { is_expected.not_to be_a_compressed_timestamp }
  end

  context 'given a sample compressed timestamp header' do
    # TODO
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fit_parser-1.0.9 spec/file/record_header_spec.rb
fit_parser-1.0.8 spec/file/record_header_spec.rb
fit_parser-1.0.7 spec/file/record_header_spec.rb
fit_parser-1.0.6 spec/file/record_header_spec.rb
fit_parser-1.0.5 spec/file/record_header_spec.rb
fit_parser-1.0.4 spec/file/record_header_spec.rb
fit_parser-1.0.3 spec/file/record_header_spec.rb
fit_parser-1.0.2 spec/file/record_header_spec.rb
fit_parser-1.0.1 spec/file/record_header_spec.rb
fit_parser-1.0.0 spec/file/record_header_spec.rb
fit_parser-0.0.8 spec/file/record_header_spec.rb
fit_parser-0.0.7 spec/file/record_header_spec.rb
fit_parser-0.0.6 spec/file/record_header_spec.rb