Sha256: 6be62cf31e51770e45b65aff02120e44627a77e3d69c295d9cbc716c723b737f

Contents?: true

Size: 774 Bytes

Versions: 1

Compression:

Stored size: 774 Bytes

Contents

require 'spec_helper'

describe Plurky::API::Timeline do
  subject(:client) { Plurky::Client.new }

  describe "#status" do
    before do
      stub_get("/APP/Timeline/getPlurk", :plurk_id => 1001647781).
        to_return(json_response("status.json"))
    end

    it "requests the correct resource" do
      client.status(1001647781)
      expect(a_get("/APP/Timeline/getPlurk", :plurk_id => 1001647781)).to have_been_made
    end

    it "returns a correct Hashie::Mash" do
      status = client.status(1001647781)
      expect(status).to be_a Hashie::Mash
      expect(status.content_raw).to eq "http://ridiculousfish.com/shell/index.html (Finally, a command line shell for the 90s) http://emos.plurk.com/b6ebb0a088fa352ee03ed6f760fb319d_w16_h16.png"
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
plurky-0.1.2 spec/plurky/api/timeline_spec.rb