Sha256: 3667a6237a37c0e273fffca9cbe74be175b64c2157298e267eea781e082aa0b1
Contents?: true
Size: 892 Bytes
Versions: 7
Compression:
Stored size: 892 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 } its(:size) { should == 3 } it { should include first } it { should include second } it { should include third } end
Version data entries
7 entries across 7 versions & 1 rubygems