Sha256: 1be530c300e3c8225f932473b4726286042d2ab815e89746e43754cd9d575a0d
Contents?: true
Size: 533 Bytes
Versions: 1
Compression:
Stored size: 533 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe Highrise::Note do before(:each) do @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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
highrise-1.2.0 | spec/highrise/note_spec.rb |