test/test_bookscan.rb in bookscan-0.5.2 vs test/test_bookscan.rb in bookscan-0.5.3

- old
+ new

@@ -1,7 +1,14 @@ +# -*- coding: utf-8 -*- require 'helper' - +require 'bookscan/agent' +require 'pp' class TestBookscan < Test::Unit::TestCase - should "probably rename this file and start testing for real" do - flunk "hey buddy, you should probably rename this file and start testing for real" + context "Bookscan::Agent" do + should "access to bookscan" do + Bookscan::Agent.new {|agent| + agent.getr("/") + assert(/ブックスキャン/ =~ agent.page.body,"access to top") + } + end end end