From 48549dcaa29df6389da2d237ddaa561fef2cc24a Mon Sep 17 00:00:00 2001 From: Kanezoh Date: Thu, 19 Aug 2021 10:42:11 +0900 Subject: [PATCH] add area --- spec/page_spec.cr | 4 ++-- spec/spec_helper.cr | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/spec/page_spec.cr b/spec/page_spec.cr index 88b9840..d31b35e 100644 --- a/spec/page_spec.cr +++ b/spec/page_spec.cr @@ -46,9 +46,9 @@ describe "Mechanize Page test" do form.name.should eq "sample_form" end - it "return page links" do + it "return page links, links means and " do agent = Mechanize.new page = agent.get("http://example.com/link") - page.links.size.should eq 1 + page.links.size.should eq 2 end end diff --git a/spec/spec_helper.cr b/spec/spec_helper.cr index a6d8251..f3394a2 100644 --- a/spec/spec_helper.cr +++ b/spec/spec_helper.cr @@ -30,6 +30,10 @@ WebMock.stub(:get, "example.com/link").to_return(body: <<-BODY link text + + + BODY