Sha256: 34268a703de60259aadc33fac597f4ee16385b61d890157285c14334f3ea685d
Contents?: true
Size: 565 Bytes
Versions: 19
Compression:
Stored size: 565 Bytes
Contents
require 'spec_helper' describe Highrise::Party do it { should be_a_kind_of Highrise::Base } it ".recently_viewed" do Highrise::Party.should_receive(:find).with(:all, {:from => '/parties/recently_viewed.xml'}) Highrise::Party.recently_viewed end it ".deletions_since" do time = Time.parse("Wed Jan 14 15:43:11 -0200 2009") Highrise::Party.should_receive(:find).with(:all, {:from => '/parties/deletions.xml', :params=>{:since=>"20090114174311"}}).and_return("result") Highrise::Party.deletions_since(time).should == "result" end end
Version data entries
19 entries across 19 versions & 2 rubygems