Sha256: 3084654fc8915f60d6b6ca91246cd03ea99afb8366db2b93d68886e9883f003d
Contents?: true
Size: 1.16 KB
Versions: 12
Compression:
Stored size: 1.16 KB
Contents
require 'spec_helper' describe GnipApi::Endpoints do before do configure_gem @source = 'somewhere' @label = 'stream' end describe '.powertrack_rules' do it 'returns URI object' do expect(GnipApi::Endpoints.powertrack_rules(@label).kind_of?(URI)).to eq(true) end describe 'URI returned' do before do @uri = GnipApi::Endpoints.powertrack_rules(@label) end it 'contains label in path' do expect(@uri.path.include?(@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(@label).kind_of?(URI)).to eq(true) end describe 'URI returned' do before do @uri = GnipApi::Endpoints.powertrack_stream(@label) end it 'contains label in path' do expect(@uri.path.include?(@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
12 entries across 12 versions & 1 rubygems