Sha256: ef576dc465b25875a22d132f0298593fe371269d86c9bc3ae2146bd3e1541526
Contents?: true
Size: 600 Bytes
Versions: 5
Compression:
Stored size: 600 Bytes
Contents
require 'spec_helper' describe Fit::File do let(:file) { described_class.read( example_file('file/full_file_with_wrong_crc.fit') ) } it 'should have a header' do expect(file.header).to be_a Fit::File::Header end it 'should have records' do expect(file.records).to be_a Array expect(file.records[0]).to be_a Fit::File::Record end it 'should have a CRC' do # warning this file is not having a consistent CRC compare to # its content. To be used only for test. expect(file.crc).to be_a String expect(BinData::Uint16le.read(file.crc)).to be == 34100 end end
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
fit-parser-0.0.3 | spec/file_spec.rb |
fit-parser-0.0.2 | spec/file_spec.rb |
fit-parser-0.0.1 | spec/file_spec.rb |
fit_parser-0.0.2 | spec/file_spec.rb |
fit_parser-0.0.1 | spec/file_spec.rb |