Sha256: 373898eb1250f24bd3fe53bf1a686e62d69e96ea06920a93a96bd81a5e43639d
Contents?: true
Size: 648 Bytes
Versions: 1
Compression:
Stored size: 648 Bytes
Contents
require 'spec_helper' describe Quorable do describe '.feed' do before do stub_request(:get, "http://www.quora.com/Music"). with(:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Ruby'}). to_return(:status => 200, :body => "", :headers => {}) end it 'returns an array of 10 or fewer paths to the Quora topic provided' do expect(Quorable.feed('music')).to eq [] end end describe '.parameterize' do it 'parameterizes a word' do result = Quorable.parameterize('happy days') expect(result).to eq 'Happy-Days' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quorable-0.1.7 | spec/quorable_spec.rb |