Sha256: e92b416243f9c168838ef242756455f5cee09b70f0a99d36c15edd5a963d09b9

Contents?: true

Size: 587 Bytes

Versions: 5

Compression:

Stored size: 587 Bytes

Contents

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

describe Highrise::Note do

  before(:each) do
    Highrise::Base.site = 'http://example.com.i:3000'
    @note = Highrise::Note.new(:id => 1)
  end
  
  it "should be instance of Highrise::Base" do
    @note.kind_of?(Highrise::Base).should be_true
  end
  
  describe "comments" do

    it "should delegate to Highrise::Comment.find with correct params" do
      Highrise::Comment.should_receive(:find).with(:all, {:from=>"/notes/1/comments.xml"}).and_return("comments")
      @note.comments.should == "comments"
    end

  end
  
end

Version data entries

5 entries across 5 versions & 2 rubygems

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