spec/file/definition_spec.rb in fit_parser-0.0.6 vs spec/file/definition_spec.rb in fit_parser-0.0.7

- old
+ new

@@ -8,19 +8,19 @@ end its(:architecture) { should == 0 } its(:global_message_number) { should == 0 } its(:field_count) { should == 6 } - it { expect(subject.fields.size).to eq(subject.field_count) } + it { expect(subject.fields_arr.size).to eq(subject.field_count) } its(:record_type) { should == :definition } it 'returns the real type for fields' do - expect(subject.fields[0].real_type).to be == :uint32z - expect(subject.fields[1].real_type).to be == :date_time - expect(subject.fields[2].real_type).to be == :manufacturer - expect(subject.fields[3].real_type).to be == :uint16 # product - expect(subject.fields[4].real_type).to be == :uint16 # number - expect(subject.fields[5].real_type).to be == :file + expect(subject.fields_arr[0].real_type).to be == :uint32z + expect(subject.fields_arr[1].real_type).to be == :date_time + expect(subject.fields_arr[2].real_type).to be == :manufacturer + expect(subject.fields_arr[3].real_type).to be == :uint16 # product + expect(subject.fields_arr[4].real_type).to be == :uint16 # number + expect(subject.fields_arr[5].real_type).to be == :file end end end end