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

Version Path
tumblr_client-0.8.4 spec/examples/tagged_spec.rb
tumblr_client-0.8.3 spec/examples/tagged_spec.rb
tumblr_client-0.8.2 spec/examples/tagged_spec.rb
tumblr_client-0.8.1 spec/examples/tagged_spec.rb
tumblr_client-0.7.5 spec/examples/tagged_spec.rb
tumblr_client-0.7.4 spec/examples/tagged_spec.rb
tumblr_client-0.7.3 spec/examples/tagged_spec.rb
tumblr_client-0.7.2 spec/examples/tagged_spec.rb
tumblr_client-0.7.1 spec/examples/tagged_spec.rb
tumblr_client-0.7.0 spec/examples/tagged_spec.rb