Sha256: 29f294a9b95fcc6b741ad3aee7c8507078d32c99e0b1d2cbf1421733f4af5245

Contents?: true

Size: 386 Bytes

Versions: 1

Compression:

Stored size: 386 Bytes

Contents

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

describe Reddit::Article do
  before do
    @article = Reddit::Article.new({"id" => "id"})
  end
  
  it "should be able to get the article's comments comments" do
    Reddit::CommentList.should_receive(:new).with("id").and_return(mock(Reddit::CommentList, :top_level => "reddit!"))
    @article.comments.should == "reddit!"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bterlson-reddit-0.3.0 spec/article_spec.rb