Sha256: 83b693501f150f5e7bb34094072baba2d8f516afa666ed9b865077e6ab8045bd
Contents?: true
Size: 569 Bytes
Versions: 10
Compression:
Stored size: 569 Bytes
Contents
require 'spec_helper' describe Tumblr::Tagged do let(:client) { Tumblr::Client.new } let(:consumer_key) { 'consumer' } let(:tag) { 'helloworld' } before do Tumblr.configure do |c| c.consumer_key = consumer_key end end describe :tagged do before do client.should_receive(:get).once.with('v2/tagged', { :tag => tag, :api_key => consumer_key }).and_return('response') end it 'should setup the request properly' do r = client.tagged tag r.should == 'response' end end end
Version data entries
10 entries across 10 versions & 1 rubygems