Sha256: 8b4077393fee49d837b4aa4254737966965fddb6ac754400c1d0cd465c514e55

Contents?: true

Size: 455 Bytes

Versions: 2

Compression:

Stored size: 455 Bytes

Contents

require 'helper'

describe Commons::Client::Content do
  before do
    @client = Commons.new
  end

  describe "#content" do
    context "get content" do
      before do
        stub_get("/node/13813.json").
          to_return(:status => 200, :body => fixture("nodes.json"))
      end

      it "should return search the correct content node" do
        node = @client.content('13813')
        node.title.should == "YouTown"
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
commons-0.0.2 spec/commons/content_spec.rb
commons-0.0.1 spec/commons/content_spec.rb