Sha256: 0cf49c761665fb0aa625803f794fbe00dccf3e2dd0aa4469be811ee40f0e64fc

Contents?: true

Size: 457 Bytes

Versions: 1

Compression:

Stored size: 457 Bytes

Contents

# frozen_string_literal: true

RSpec.shared_context 'labels' do
  let(:client) { gimme_adwords }
  let(:configuration) do
    ROM::Configuration.new(:adwords, client: client) do |config|
      config.relation(:labels) do
        auto_struct(true)

        schema(infer: true)
      end
    end
  end
  let(:rom) { ROM.container(configuration) }
  let(:label_service) { rom.gateways[:default].dataset(:labels) }
  let(:labels) { rom.relations[:labels] }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gladwords-1.0.1 spec/shared/labels.rb