Sha256: 3f57230159c057aa5f7353945f0b9e413cd605c48eb07623a21bf81e543b1af3
Contents?: true
Size: 1.22 KB
Versions: 7
Compression:
Stored size: 1.22 KB
Contents
require 'spec_helper' describe 'ShowYAMLParser' do let(:first_uuid) { generate_uuid } let(:second_uuid) { generate_uuid } let(:third_uuid) { generate_uuid } let(:shows) do { '1981/02/25/0' => { uuid: first_uuid, venue: 'The Venue', city: 'Boulder', state: 'CO', country: 'US' }, '1981/02/25/1' => { uuid: second_uuid, venue: 'The Venue', city: 'Boulder', state: 'CO', country: 'US' }, '1981/02/26' => { uuid: third_uuid, venue: 'The Other Venue', city: 'Denver', state: 'CO', country: 'US', sets: [] } } end subject { Gdshowsdb::ShowYAMLParser.new(shows).parse } its(:size) { should == 3 } it { should include ( {uuid: first_uuid, venue: 'The Venue', city: 'Boulder', state: 'CO', country: 'US', year: 1981, month: 2, day: 25, position: 0 } ) } it { should include ( {uuid: second_uuid, venue: 'The Venue', city: 'Boulder', state: 'CO', country: 'US', year: 1981, month: 2, day: 25, position: 1 } ) } it { should include ( {uuid: third_uuid, venue: 'The Other Venue', city: 'Denver', state: 'CO', country: 'US', year: 1981, month: 2, day: 26} ) } end
Version data entries
7 entries across 7 versions & 1 rubygems