Sha256: 99f0b5bc62c6f086133e7e678dd0d0bde47dbf77d98ad421b0840cb000e280fd
Contents?: true
Size: 670 Bytes
Versions: 16
Compression:
Stored size: 670 Bytes
Contents
require 'spec_helper' describe ActionKitRest::Response::Wrapper do describe 'initialization' do it "should be kind 'object' for objects" do body = double response = double(:body => body) wrapper = ActionKitRest::Response::Wrapper.new(response) wrapper.object?.should be_truthy wrapper.collection?.should be_falsey end it "should be kind 'collection' for collections" do body = double(:meta => '', :objects => []) response = double(:body => body) wrapper = ActionKitRest::Response::Wrapper.new(response) wrapper.object?.should be_falsey wrapper.collection?.should be_truthy end end end
Version data entries
16 entries across 16 versions & 1 rubygems