require 'spec_helper'
# more tests to come... 
describe Biffbot do
	before :each do 
		@token = "82c8e24620efbee588aebded9a0a74a1"
		@biffbot = Biffbot::Base.new(@token)		
	end

	describe "#get_huffinton_post_article" do
		it "not nil" do
		  @biffbot.parse("http://www.huffingtonpost.ca/2012/10/11/amanda-todd-teen-bullying-suicide-youtube_n_1959668.html").size.should_not be_nil
		end
	end
  
	describe "#batch" do
		it "not nil" do
		  @biffbot.batch(["http://www.huffingtonpost.ca/2012/10/11/amanda-todd-teen-bullying-suicide-youtube_n_1959668.html", "http://www.nytimes.com/2013/02/08/business/asset-sales-help-quarterly-profit-at-times-company.html"]).size.should == 2
		end
	end
end