Sha256: 95d01d06c9577fe0d32ab4ea4cac1551f1fa07ec9e6a949273455c9bfb54e905

Contents?: true

Size: 492 Bytes

Versions: 4

Compression:

Stored size: 492 Bytes

Contents

require 'spec_helper'

describe Fit::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

4 entries across 4 versions & 2 rubygems

Version Path
fit-parser-0.0.2 spec/file/record_header_spec.rb
fit-parser-0.0.1 spec/file/record_header_spec.rb
fit_parser-0.0.2 spec/file/record_header_spec.rb
fit_parser-0.0.1 spec/file/record_header_spec.rb