Sha256: 90d1628486ea36bec42b65d664428f87eeb75189c18d26b9084dfeddb3b347f4
Contents?: true
Size: 813 Bytes
Versions: 1
Compression:
Stored size: 813 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') module WhosGotDirt::Requests::List RSpec.describe LittleSis do describe '#to_s' do it 'should return the URL to request' do expect(LittleSis.new(name: 'forbes').to_s).to eq('https://api.littlesis.org/lists.xml?q=forbes') end end describe '#convert' do context 'when given a name' do include_examples 'match', 'q', 'name', ['forbes', 'forbe'] end context 'when given a limit' do include_examples 'equal', 'num', 'limit', 5 end context 'when given a page' do include_examples 'equal', 'page', 'page', 2 end context 'when given an API key' do include_examples 'equal', '_key', 'little_sis_api_key', 123 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whos_got_dirt-0.0.5 | spec/requests/list/little_sis_spec.rb |