spec/article_spec.rb in bterlson-reddit-0.2.1 vs spec/article_spec.rb in bterlson-reddit-0.3.0

- old
+ new

@@ -4,9 +4,9 @@ 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("reddit!") + Reddit::CommentList.should_receive(:new).with("id").and_return(mock(Reddit::CommentList, :top_level => "reddit!")) @article.comments.should == "reddit!" end end \ No newline at end of file