Sha256: 293700d8f43fc88c60694fdbb672b4bd8309d72cad6caa745d42468db1666ad5

Contents?: true

Size: 845 Bytes

Versions: 3

Compression:

Stored size: 845 Bytes

Contents

require 'spec_helper'

describe 'ShowDBExtractor' do

  first = {uuid: generate_uuid, venue: 'The Venue', city: 'Boulder', state: 'CO', country: 'US', year: 1972, month: 6, day: 12, position: 0} 
  second = {uuid: generate_uuid, venue: 'The Venue', city: 'Boulder', state: 'CO', country: 'US', year: 1972, month: 6, day: 12, position: 1} 
  third = {uuid: generate_uuid, venue: 'The Other Venue', city: 'Denver', state: 'CO', country: 'US', year: 1972, month: 6, day: 13} 
  shows =    
    [
      Show.create(first),
      Show.create(second),
      Show.create(third) do |show|
        show.show_sets.push(ShowSet.create(uuid: generate_uuid, show: show))
      end
    ] unless shows

  subject { Gdshowsdb::ShowDBExtractor.new(shows).extract }

  it { expect(subject.size).to be 3 }
  it { is_expected.to include(first, second, third) }
end

Version data entries

3 entries across 3 versions & 1 rubygems

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