Sha256: 5fddb0e99f51869c6021d8f1f8386206e9864af8269071459bdad356db442e7a
Contents?: true
Size: 768 Bytes
Versions: 1
Compression:
Stored size: 768 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 describe "#taxonomy_term" do before do stub_get("/taxonomy_term/91.json"). to_return(:status => 200, :body => fixture("taxonomy_term.json")) end it "should return the correct taxonomy term" do result = @client.taxonomy_term('91') result.name.should == "BSD" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commons-0.0.3 | spec/commons/content_spec.rb |