Sha256: d395f36131a2b747e423df2bab34d70d7030d80a923efef4c62d44f95286f4b6

Contents?: true

Size: 657 Bytes

Versions: 2

Compression:

Stored size: 657 Bytes

Contents

require 'spec_helper'

describe StackExchange::StackOverflow::Comment do
  it 'should return a comment identified by its id' do 
    response = StackOverflow::Comment.find_by_id(1)

    response.total.should == 1
    response.page.should == 1
    response.pagesize.should == 30
    
    comment = response.comments.first
    comment.id.should == 1
    comment.creation_date.should == 1220688430
    comment.post_id.should == 35314
    comment.post_type.should == "answer"
    comment.score.should == 7
    comment.body.should == "not sure why this is getting downvoted -- it is correct! Double check it in your compiler if you don't believe him!"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pilha-0.1.3 spec/pilha/stack_overflow/comment_spec.rb
pilha-0.1.2 spec/pilha/stack_overflow/comment_spec.rb