Sha256: e9adda70e752771107dd05719fa67d71995a822d92687170cfdae57c02dbc6ca

Contents?: true

Size: 499 Bytes

Versions: 7

Compression:

Stored size: 499 Bytes

Contents

require 'spec_helper'

describe 'SongRefYamlParser' do
  
  let(:first_song_uuid) { generate_uuid }
  let(:second_song_uuid) { generate_uuid }
  let(:song_ref_list) do
    [
      {"Song A" => first_song_uuid},
      {"Song B" => second_song_uuid}
    ]
  end

  subject { Gdshowsdb::SongRefYAMLParser.new(song_ref_list).parse }

  its(:size) { should == 2 } 
  it { should include ( {uuid: first_song_uuid, name: 'Song A'}) } 
  it { should include ( {uuid: second_song_uuid, name: 'Song B'}) }
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gdshowsdb-2.0.0 spec/gdshowsdb/song_ref_yaml_parser_spec.rb
gdshowsdb-1.0.3 spec/gdshowsdb/song_ref_yaml_parser_spec.rb
gdshowsdb-1.0.2 spec/gdshowsdb/song_ref_yaml_parser_spec.rb
gdshowsdb-1.0.1 spec/gdshowsdb/song_ref_yaml_parser_spec.rb
gdshowsdb-1.0.0 spec/gdshowsdb/song_ref_yaml_parser_spec.rb
gdshowsdb-0.9.1 spec/gdshowsdb/song_ref_yaml_parser_spec.rb
gdshowsdb-0.9.0 spec/gdshowsdb/song_ref_yaml_parser_spec.rb