# frozen_string_literal: true

require 'spec_helper'

describe TrackSerializer, type: :serializer do
  let(:track) { create(:track) }
  let(:serializer) { TrackSerializer.new(track) }

  it 'sets guild, name, color' do
    expected_json = {
      guid:  track.guid,
      name:  track.name,
      color: track.color
    }.to_json

    expect(serializer.to_json).to eq expected_json
  end
end
