require 'spec_helper' describe Fit::File::Data do describe ".generate" do let(:definition) do Fit::File::Definition.read example_file('record/message/definition') end subject { described_class.generate(definition) } its(:ancestors) { should include(BinData::Record) } its("new.record_type") { should eq(:file_id) } end end