Sha256: 45a8b3a765f0b50367995775c6ec7c500ec5d0a1ea91e631e4a5c3db5704f1da
Contents?: true
Size: 1.92 KB
Versions: 1
Compression:
Stored size: 1.92 KB
Contents
require 'spec_helper' describe Disqussion::Reactions do Disqussion::Configuration::VALID_FORMATS.each do |format| context ".new(:format => '#{format}')" do before do @client = Disqussion::Client.reactions end describe ".domains" do before do stub_get("reactions/domains.json", :query => { }). to_return(:body => fixture("reactions/domains.json"), :headers => {:content_type => "application/json; charset=utf-8"}) end it "returns ???" do @client.domains a_get("reactions/domains.json", :query => { }). should have_been_made end end describe ".ips" do before do stub_get("reactions/ips.json", :query => { }). to_return(:body => fixture("reactions/ips.json"), :headers => {:content_type => "application/json; charset=utf-8"}) end it "returns ???" do @client.ips a_get("reactions/ips.json", :query => { }). should have_been_made end end describe ".threads" do before do stub_get("reactions/threads.json", :query => { }). to_return(:body => fixture("reactions/threads.json"), :headers => {:content_type => "application/json; charset=utf-8"}) end it "returns ???" do @client.threads a_get("reactions/threads.json", :query => { }). should have_been_made end end describe ".users" do before do stub_get("reactions/users.json", :query => { }). to_return(:body => fixture("reactions/users.json"), :headers => {:content_type => "application/json; charset=utf-8"}) end it "returns ???" do @client.users a_get("reactions/users.json", :query => { }). should have_been_made end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
disqussion-0.0.6 | spec/disqussion/client/reactions_spec.rb |