Sha256: 00786a0313905f376a4c1ccf98a4cfa396f44f7067b208ad939ecc8731d4d3ee

Contents?: true

Size: 626 Bytes

Versions: 4

Compression:

Stored size: 626 Bytes

Contents

require 'spec_helper'

describe FeedlyApi::Client do
  let(:auth_token) { ENV['FEEDLY_TOKEN']   || 'GREATE_AUTH_TOKEN' }
  let(:user_id)    { ENV['FEEDLY_USER_ID'] || '00000000-000-NOT-VALID-a29b6679bb3c' }
  let(:client)     { FeedlyApi::Client.new(auth_token) }
  let(:feed_data)  { {website: 'https://www.eff.org/rss/updates.xml', subscribers: 2443,
    title: 'Deeplinks', velocity: 15.2,
    id: 'feed/https://www.eff.org/rss/updates.xml' }
  }

  describe '#feed' do
    it 'returns Feed object with given feed_id' do
      feed = client.feed(feed_data[:id])
      expect(feed.id).to eq feed_data[:id]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
feedly_api-0.6.3 spec/lib/feedly_api/client_spec.rb
feedly_api-0.6.2 spec/lib/feedly_api/client_spec.rb
feedly_api-0.6.1 spec/lib/feedly_api/client_spec.rb
feedly_api-0.6.0 spec/lib/feedly_api/client_spec.rb