Sha256: 87f11f88c95dd7b5311db94cff136b4d3ffbca4c314e88e4b6985e4584dec721

Contents?: true

Size: 762 Bytes

Versions: 3

Compression:

Stored size: 762 Bytes

Contents

require 'spec_helper'

describe 'Download' do

  it '#new' do
    p = Puree::Download.new
    expect(p).to be_an_instance_of Puree::Download
  end

  describe 'data retrieval' do
    before(:all) do
      base_url = ENV['PURE_BASE_URL']
      username = ENV['PURE_USERNAME']
      password = ENV['PURE_PASSWORD']
      @p = Puree::Download.new(base_url: base_url,
                              username: username,
                              password: password,
                              basic_auth: true)
      @metadata = @p.find resource: :dataset,
                          limit:    10
    end

    it '#find' do
      expect(@metadata).to be_an_instance_of(Array)
    end

    it '#find' do
      expect(@metadata).not_to be_empty
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
puree-0.20.0 spec/download_spec.rb
puree-0.19.2 spec/download.rb
puree-0.19.1 spec/download.rb