Sha256: 1d78bc6b19d12d375946fa94fb5cddf065dfc8fdb36159cf2c415f60a0cfeaa0
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
require 'spec_helper' describe GnipApi::Endpoints do before do configure_gem end describe '.powertrack_rules' do it 'returns URI object' do expect(GnipApi::Endpoints.powertrack_rules.kind_of?(URI)).to eq(true) end describe 'URI returned' do before do @uri = GnipApi::Endpoints.powertrack_rules end it 'contains label in path' do expect(@uri.path.include?(GnipApi.configuration.label)).to eq(true) end it 'includes account in path' do expect(@uri.path.include?(GnipApi.configuration.account)).to eq(true) end end end describe '.powertrack_stream' do it 'returns URI object' do expect(GnipApi::Endpoints.powertrack_stream.kind_of?(URI)).to eq(true) end describe 'URI returned' do before do @uri = GnipApi::Endpoints.powertrack_stream end it 'contains label in path' do expect(@uri.path.include?(GnipApi.configuration.label)).to eq(true) end it 'includes account in path' do expect(@uri.path.include?(GnipApi.configuration.account)).to eq(true) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems