Sha256: e0dfa03b7386f8c0bd9ec89a915f9c8226ee13c1efcdde1009f765f87a1b63ef
Contents?: true
Size: 975 Bytes
Versions: 1
Compression:
Stored size: 975 Bytes
Contents
require 'spec_helper' describe Fit::File::Definition do context "given a sample definition message" do describe ".read" do subject do described_class.read example_file('record/message/definition') end its(:architecture) { should == 0 } its(:global_message_number) { should == 0 } its(:field_count) { should == 6 } it { expect(subject.fit_fields.size).to eq(subject.field_count) } its(:record_type) { should == :definition } it 'returns the real type for fields' do expect(subject.fit_fields[0].real_type).to be == :uint32z expect(subject.fit_fields[1].real_type).to be == :date_time expect(subject.fit_fields[2].real_type).to be == :manufacturer expect(subject.fit_fields[3].real_type).to be == :uint16 # product expect(subject.fit_fields[4].real_type).to be == :uint16 # number expect(subject.fit_fields[5].real_type).to be == :file end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fit-parser-0.0.3 | spec/file/definition_spec.rb |