Sha256: 2e6c2930d8a1fe370887ce03cad71be3a7e484ce745b123e60c9ffa372732688

Contents?: true

Size: 862 Bytes

Versions: 2

Compression:

Stored size: 862 Bytes

Contents

require 'spec_helper'

describe 'ShowDBExtractor' do

  let(:first) { {uuid: generate_uuid, venue: 'The Venue', city: 'Boulder', state: 'CO', country: 'US', year: 1981, month: 2, day: 25, position: 0} }
  let(:second) { {uuid: generate_uuid, venue: 'The Venue', city: 'Boulder', state: 'CO', country: 'US', year: 1981, month: 2, day: 25, position: 1} }
  let(:third) { {uuid: generate_uuid, venue: 'The Other Venue', city: 'Denver', state: 'CO', country: 'US', year: 1981, month: 2, day: 26} }
  let(:shows) do
    [
      Show.create(first),
      Show.create(second),
      Show.create(third) do |show|
        show.show_sets.push(ShowSet.create(uuid: generate_uuid, show: show))
      end
    ]
  end

  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

2 entries across 2 versions & 1 rubygems

Version Path
gdshowsdb-3.0.0 spec/gdshowsdb/show_db_extractor_spec.rb
gdshowsdb-2.1.0 spec/gdshowsdb/show_db_extractor_spec.rb