Sha256: 75133219ba0bc02cbc7704ec5449307ade5dd321f0eef73b1b228d92284302f2
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
require 'helper' describe Disqussion::Users do Disqussion::Configuration::VALID_FORMATS.each do |format| context ".new(:format => '#{format}')" do before do @client = Disqussion::Client.users end describe ".details" do it "get the correct resource" do stub_get("users/details.json"). to_return(:body => fixture("users/details.json"), :headers => {:content_type => "application/json; charset=utf-8"}) @client.details a_get("users/details.json").should have_been_made end end describe ".follow" do it "get the correct resource" do stub_post("users/follow.json", :body => { :target => "12345678" }). to_return(:body => fixture("users/follow.json"), :headers => {:content_type => "application/json; charset=utf-8"}) @client.follow(12345678) a_post("users/follow.json", :body => { :target => "12345678"}).should have_been_made end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
disqussion-0.0.2 | spec/disqussion/client/users_spec.rb |
disqussion-0.0.1 | spec/disqussion/client/users_spec.rb |