From 378891eda7b2c8a4b0f725f06549596d98faf548 Mon Sep 17 00:00:00 2001 From: Kanezoh Date: Mon, 14 Jun 2021 23:41:36 +0900 Subject: [PATCH] delete unnecessary commentout --- spec/agent_spec.cr | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/spec/agent_spec.cr b/spec/agent_spec.cr index 11ef0fc..dc46cee 100644 --- a/spec/agent_spec.cr +++ b/spec/agent_spec.cr @@ -25,16 +25,16 @@ WebMock.stub(:post, "http://html_example.com/post_path"). to_return(body: "success") describe "Mechanize Agent test" do - #it "fill and submit form" do - # agent = Mechanize.new - # page = agent.get("http://html_example.com/") - # form = page.forms[0] - # form.field_with("name").value = "foo" - # form.field_with("email").value = "bar" - # page = agent.submit(form) - # page.not_nil!.code.should eq 200 - # page.not_nil!.body.should eq "success" - #end + it "fill and submit form" do + agent = Mechanize.new + page = agent.get("http://html_example.com/") + form = page.forms[0] + form.field_with("name").value = "foo" + form.field_with("email").value = "bar" + page = agent.submit(form) + page.not_nil!.code.should eq 200 + page.not_nil!.body.should eq "success" + end it "receive and send cookie" do agent = Mechanize.new