Sha256: 725c0d1b9b381a01365867b32ba1b73afe0ec18a7222d2d5d9af880bddc6fd6c
Contents?: true
Size: 528 Bytes
Versions: 2
Compression:
Stored size: 528 Bytes
Contents
require 'helper' describe Lelylan::Client::Category do let(:lelylan) do a_client end describe '#categories' do before do stub_get('/categories').with(query: { per: 10 }).to_return(body: fixture('categories.json')) end let!(:categories) do lelylan.categories(per: 10) end it 'returns the categories' do categories.first.name.should_not be_nil end it 'sends the request' do a_get('/categories').with(query: { per: 10 }).should have_been_made end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lelylan-rb-0.1.0 | spec/lelylan/client/category_spec.rb |
lelylan-rb-0.0.5 | spec/lelylan/client/category_spec.rb |