Sha256: e20bfb70a5f476369b7d414fa32978315849923a993baa4439281cfb6747c51e

Contents?: true

Size: 601 Bytes

Versions: 3

Compression:

Stored size: 601 Bytes

Contents

require 'spec_helper'

describe 'SongRefDBExtractor' do

  let(:first_song_uuid) { generate_uuid }
  let(:second_song_uuid) { generate_uuid }
  let(:song_ref_list) do
    [
      SongRef.create(uuid: first_song_uuid, name: "Song #{first_song_uuid}"),
      SongRef.create(uuid: second_song_uuid, name: "Song #{second_song_uuid}")
    ]
  end

  subject { Gdshowsdb::SongRefDBExtractor.new(song_ref_list).extract }

  it { is_expected.to include({uuid: first_song_uuid, name: "Song #{first_song_uuid}"}) }
  it { is_expected.to include({uuid: second_song_uuid, name: "Song #{second_song_uuid}"}) }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gdshowsdb-4.0.2 spec/gdshowsdb/song_ref_db_extractor_spec.rb
gdshowsdb-4.0.1 spec/gdshowsdb/song_ref_db_extractor_spec.rb
gdshowsdb-4.0.0 spec/gdshowsdb/song_ref_db_extractor_spec.rb