Sha256: f9cf678e98be358c02767dcd85e1db8d42eb5d03026aaf01d27793e8350d49f0

Contents?: true

Size: 618 Bytes

Versions: 10

Compression:

Stored size: 618 Bytes

Contents

require 'spec_helper'

describe Locomotive::Steam::ExternalAPIService do

  pending 'API rate limit exceeded'

  let(:service) { described_class.new }

  describe '#consume' do

    let(:url)     { 'https://api.github.com/users/did/repos' }
    let(:options) { { format: "'json'", with_user_agent: true } }

    subject { service.consume(url, options) }

    it { expect(subject.size).to_not eq 0 }

    context 'returns the status too' do

      subject { service.consume(url, options, true) }

      it { expect(subject[:status]).to eq 200 }
      it { expect(subject[:data].size).to_not eq 0 }

    end

  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
locomotivecms_steam-1.5.0.beta2 spec/integration/services/external_api_service_spec.rb
locomotivecms_steam-1.5.0.beta1 spec/integration/services/external_api_service_spec.rb
locomotivecms_steam-1.4.1 spec/integration/services/external_api_service_spec.rb
locomotivecms_steam-1.4.0 spec/integration/services/external_api_service_spec.rb
locomotivecms_steam-1.4.0.rc2 spec/integration/services/external_api_service_spec.rb
locomotivecms_steam-1.4.0.rc1 spec/integration/services/external_api_service_spec.rb
locomotivecms_steam-1.4.0.pre.rc.1 spec/integration/services/external_api_service_spec.rb
locomotivecms_steam-1.3.0 spec/integration/services/external_api_service_spec.rb
locomotivecms_steam-1.3.0.rc2 spec/integration/services/external_api_service_spec.rb
locomotivecms_steam-1.3.0.rc1 spec/integration/services/external_api_service_spec.rb