On Tue, Jul 14, 2009 at 4:49 AM, Zhenning Guan wrote:
> before(:each) do
> @myinstance = GetHtml.new
> end
>
> it "should be a Hyricot" do
> hy = open('test.html') {|f| Hpricot f}
>
> �...@myinstance.should_receive(:find_html).with("file:///test_url").and_return(hy)
>
> end
>
before(:each) do
@myinstance = GetHtml.new
end
it "should be a Hyricot" do
hy = open('test.html') {|f| Hpricot f}
@myinstance.should_receive(:find_html).with("file:///test_url").and_return(hy)
end
++
it "should be a Hyricot" do
hy = o