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

Version Path
highrise-3.2.3 spec/highrise/party_spec.rb
highrise-3.2.1 spec/highrise/party_spec.rb
highrise-3.1.6 spec/highrise/party_spec.rb
highrise-3.1.5 spec/highrise/party_spec.rb
highrise-3.1.2 spec/highrise/party_spec.rb
highrise-3.1.1 spec/highrise/party_spec.rb
highrise-3.1.0 spec/highrise/party_spec.rb
highrise-3.1.0.pre spec/highrise/party_spec.rb
highrise-3.0.5 spec/highrise/party_spec.rb
highrise-3.0.4 spec/highrise/party_spec.rb
highrise-3.0.3 spec/highrise/party_spec.rb
peterosullivan-highrise-3.0.7 spec/highrise/party_spec.rb
peterosullivan-highrise-3.0.6 spec/highrise/party_spec.rb
peterosullivan-highrise-3.0.5 spec/highrise/party_spec.rb
peterosullivan-highrise-3.0.4 spec/highrise/party_spec.rb
peterosullivan-highrise-3.0.3 spec/highrise/party_spec.rb
peterosullivan-highrise-3.0.2 spec/highrise/party_spec.rb
highrise-3.0.1 spec/highrise/party_spec.rb
highrise-3.0.0 spec/highrise/party_spec.rb