Run rubocop on all files

This commit is contained in:
2023-06-08 21:57:54 +10:00
parent 6a2bc82e3b
commit 9d9d8ccf6d
65 changed files with 114 additions and 158 deletions

View File

@@ -1,15 +1,14 @@
# frozen_string_literal: true
require "spec_helper"
RSpec.describe Adamantium::Geo::GpxParser do
subject { described_class.new }
let(:gpx_file) { File.join(SPEC_ROOT, "support", "fixtures", "geo.gpx") }
let(:expected_svg) { File.read(File.join(SPEC_ROOT, "support", "fixtures", "geo.svg")) }
let(:gpx_file) { File.join(SPEC_ROOT, "support", "fixtures", "geo.gpx") }
let(:expected_svg) { File.read(File.join(SPEC_ROOT, "support", "fixtures", "geo.svg")) }
it "parses a gpx file" do
# puts gpx_file.inspect
result = subject.call(path: gpx_file).value!
parsed_svg = Nokogiri::XML::Document.parse(result[:svg])
@@ -18,4 +17,4 @@ RSpec.describe Adamantium::Geo::GpxParser do
expect(result[:distance]).to eq 3.0724966849262554
expect(result[:duration]).to eq 15237.0
end
end
end