Sha256: 0ade805b7244fffdeae4be43c4f8664d66907ded4ef4e79b7f8a3bac9b44cde8

Contents?: true

Size: 581 Bytes

Versions: 2

Compression:

Stored size: 581 Bytes

Contents

require 'spec_helper'

describe FitParser do
  describe 'VERSION' do
    subject{ FitParser::VERSION }

    it { is_expected.to be_a(String) }
    it { is_expected.to match(/\d{1,2}\.\d{1,2}\.\d{1,2}/) }
  end

  describe '.load_file' do
    it 'works with threads' do
      threads = []
      %w(3863374146 3110334490).each do |file|
        threads << Thread.new(file) do |el|
          data = FitParser.load_file("spec/support/examples/file/#{el}")
          expect(data.records).to_not be_nil
        end
      end
      threads.each { |thread| thread.join }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fit_parser-0.0.7 spec/fit_parser_spec.rb
fit_parser-0.0.6 spec/fit_parser_spec.rb