Sha256: 0b2cd766f54319d527dcdd7b140310ff702a3a2921145f72bb58074a865c5e72
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
require 'helper' describe Disqussion::Imports do Disqussion::Configuration::VALID_FORMATS.each do |format| context ".new(:format => '#{format}')" do before do @client = Disqussion::Client.imports end describe ".details" do before do stub_get("imports/details.json", :query => { :group => "987" }). to_return(:body => fixture("imports/details.json"), :headers => {:content_type => "application/json; charset=utf-8"}) end it "returns ." do @client.details(987) a_get("imports/details.json", :query => { :group => "987" }). should have_been_made end end describe ".list" do before do stub_get("imports/list.json", :query => { :forum => "the88" }). to_return(:body => fixture("imports/list.json"), :headers => {:content_type => "application/json; charset=utf-8"}) end it "returns ." do @client.list("the88") a_get("imports/list.json", :query => { :forum => "the88" }). should have_been_made end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
disqussion-0.0.5 | spec/disqussion/client/imports_spec.rb |
disqussion-0.0.4 | spec/disqussion/client/imports_spec.rb |