mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
17 lines
446 B
Ruby
17 lines
446 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe Points::GpxSerializer do
|
|
describe '#call' do
|
|
subject(:serializer) { described_class.new(points).call }
|
|
|
|
let(:points) { create_list(:point, 3) }
|
|
let(:geojson_data) { Points::GeojsonSerializer.new(points).call }
|
|
let(:gpx) { GPX::GeoJSON.convert_to_gpx(geojson_data:) }
|
|
|
|
it 'returns JSON' do
|
|
expect(serializer).to be_a(GPX::GPXFile)
|
|
end
|
|
end
|
|
end
|