Sha256: a02ef951efa44d55dace4768859464ab6a9095ee368695ae7969b6a760b2b9e7

Contents?: true

Size: 501 Bytes

Versions: 6

Compression:

Stored size: 501 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe Highrise::Account do
  before(:each) do
    @account = Highrise::Account.new
  end
  
  it "should be instance of Highrise::Base" do
    @account.kind_of?(Highrise::Base).should be_true
  end
  
  it "should delegate to find(:one, :from => '/account.xml') when account is called" do
    Highrise::Account.should_receive(:find).with(:one, {:from => "/account.xml"}).and_return(@account)
    Highrise::Account.me.should == @account
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
rogerio-augusto-highrise-2.0.4 spec/highrise/account_spec.rb
rogerio-augusto-highrise-2.0.3 spec/highrise/account_spec.rb
rogerio-augusto-highrise-2.0.2 spec/highrise/account_spec.rb
highrise-2.0.1 spec/highrise/account_spec.rb
highrise-2.0.0 spec/highrise/account_spec.rb
highrise-1.2.0 spec/highrise/account_spec.rb