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