Sha256: fc63a4a24c62d44a21d2948f6f89072f8991429e4adb71e97a2d4742e7d71587

Contents?: true

Size: 1.11 KB

Versions: 6

Compression:

Stored size: 1.11 KB

Contents

Fabricator(:poms_broadcast, class_name: :"Poms::Broadcast") do
  initialize_with do
    Poms::Builder.process_hash(
      JSON.parse File.read('spec/fixtures/poms_broadcast.json')
    )
  end
end

Fabricator(:poms_broadcast_pippi_langkous, class_name: :"Poms::Broadcast") do
  initialize_with do
    Poms::Builder.process_hash(
      JSON.parse File.read('spec/fixtures/poms_broadcast_pippi.json')
    )
  end
end

Fabricator(:poms_broadcast_multiple_schedule_events,
           class_name: :"Poms::Broadcast") do
  initialize_with do
    Poms::Builder.process_hash(
      JSON.parse(
        File.read('spec/fixtures/poms_broadcast_multiple_schedule_events.json')
      )
    )
  end
end

Fabricator(:poms_series, class_name: :"Poms::Series") do
  initialize_with do
    Poms::Builder.process_hash(
      JSON.parse File.read('spec/fixtures/poms_series.json')
    )
  end
end

Fabricator(:zapp_broadcasts, class_name: :array) do
  initialize_with do
    hash = JSON.parse File.read('spec/fixtures/poms_zapp.json')
    array = hash['rows'].take(10).map do |item|
      Poms::Builder.process_hash item['doc']
    end
    array
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
poms-1.2.2 spec/fabricators/poms_fabricator.rb
poms-1.2.1 spec/fabricators/poms_fabricator.rb
poms-1.2.0 spec/fabricators/poms_fabricator.rb
poms-1.1.0 spec/fabricators/poms_fabricator.rb
poms-1.0.1 spec/fabricators/poms_fabricator.rb
poms-1.0.0 spec/fabricators/poms_fabricator.rb