Sha256: d92dcbd6a50e65d114cecf9a781dd6c734f560d4ea9ea1165f193c2dba374426

Contents?: true

Size: 476 Bytes

Versions: 12

Compression:

Stored size: 476 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

describe DHS::Data do
  before do
    class Record < DHS::Record
      endpoint '{+datastore}/v2/{campaign_id}/feedbacks'
      endpoint '{+datastore}/v2/feedbacks'
    end
  end

  let(:json) do
    load_json(:feedbacks)
  end

  let(:data) do
    DHS::Data.new(json, nil, Record)
  end

  let(:item) do
    data[0]
  end

  it 'does not respond to to_ary' do
    expect(item.respond_to?(:to_ary)).to eq false
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dhs-1.6.0 spec/data/to_ary_spec.rb
dhs-1.5.0 spec/data/to_ary_spec.rb
dhs-1.4.2 spec/data/to_ary_spec.rb
dhs-1.4.1 spec/data/to_ary_spec.rb
dhs-1.4.0 spec/data/to_ary_spec.rb
dhs-1.3.0 spec/data/to_ary_spec.rb
dhs-1.2.0 spec/data/to_ary_spec.rb
dhs-1.1.0 spec/data/to_ary_spec.rb
dhs-1.0.3 spec/data/to_ary_spec.rb
dhs-1.0.2 spec/data/to_ary_spec.rb
dhs-1.0.1 spec/data/to_ary_spec.rb
dhs-1.0.0 spec/data/to_ary_spec.rb