Sha256: 434242d7405bdbc464c3d4de15d51a2a7c34ff7b83ef0410382e3a0f74d52695

Contents?: true

Size: 498 Bytes

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
fit_parser-0.0.5 spec/file/record_header_spec.rb
fit_parser-0.0.4 spec/file/record_header_spec.rb