spec/search_spec.rb in meme-0.2.1 vs spec/search_spec.rb in meme-0.3.0

- old
+ new

@@ -8,9 +8,13 @@ query = "SELECT * FROM meme.search WHERE query='meme rocks'" fake_web(query, 'meme_search.json') @results = Meme::Post.find('meme rocks') end + Meme::Post::VARS.each do |attr| + it { @results.first.should respond_to(attr) } + end + it "should return pubid" do @results.first.pubid.should == "yC8nqOd" end it "should return guid" do