Sha256: d8fa0525b6bb98fc7782915d18c6b3287f482e489142ebd3a861a8b3ac9eb61a

Contents?: true

Size: 578 Bytes

Versions: 2

Compression:

Stored size: 578 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
      expect(client).to 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
      expect(r).to eq('response')
    end

  end

end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
doomy_client-0.8.5 spec/examples/tagged_spec.rb
tumblr_client-0.8.5 spec/examples/tagged_spec.rb