Sha256: dfd79be48cc75479312f0c02c0e6e7b5f57a1a90d5b1f4ea1b0c486be24d269e

Contents?: true

Size: 523 Bytes

Versions: 5

Compression:

Stored size: 523 Bytes

Contents

require 'spec_helper'

describe GnipApi::Adapter do
  before do
    @uri = URI('http://somwhere.com')
  end

  it 'raises error if no credentials defined' do
    GnipApi.configure do |c|
      c.user = nil
      c.password = nil
      c.account = nil
    end
    expect(Proc.new{GnipApi::Adapter.new}).to raise_error(GnipApi::Errors::MissingCredentials)
  end

  it 'does not raise error when credentials and adapter are present' do
    configure_gem
    expect(Proc.new{GnipApi::Adapter.new}).not_to raise_error
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gnip_api-1.2.4 spec/gnip_api/adapter_spec.rb
gnip_api-1.2.3 spec/gnip_api/adapter_spec.rb
gnip_api-1.2.2 spec/gnip_api/adapter_spec.rb
gnip_api-1.2.1 spec/gnip_api/adapter_spec.rb
gnip_api-1.2.0 spec/gnip_api/adapter_spec.rb