Sha256: 1755e81db92fbca51d23c4d2f9833240b7068c281105c03d43a00fa73239f3cf
Contents?: true
Size: 618 Bytes
Versions: 15
Compression:
Stored size: 618 Bytes
Contents
require 'spec_helper' describe FitParser::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 FitParser::File::Header end it 'should have records' do expect(file.records).to be_a Array expect(file.records[0]).to be_a FitParser::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
15 entries across 15 versions & 1 rubygems