Sha256: f34a8466ada9e01bf0fe3d1722af56e37f5e1ed7f38912230ad597505841cb83

Contents?: true

Size: 583 Bytes

Versions: 3

Compression:

Stored size: 583 Bytes

Contents

require 'spec_helper'
require 'uri'
require 'socket'

describe Uploadcare::Api do
  subject(:api) { Uploadcare::Api.new(CONFIG) }

  it "should initialize api" do
    is_expected.to be_an_instance_of(Uploadcare::Api)
  end

  it 'should respond to request methods' do
    is_expected.to respond_to :request
    is_expected.to respond_to :get
    is_expected.to respond_to :post
    is_expected.to respond_to :put
    is_expected.to respond_to :delete
  end

  context 'when performing requests' do
    subject(:request) { api.request }

    it { is_expected.to be_a Hash }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
uploadcare-ruby-2.1.2 spec/api/raw_api_spec.rb
uploadcare-ruby-2.1.1 spec/api/raw_api_spec.rb
uploadcare-ruby-2.0.0 spec/api/raw_api_spec.rb