raiseNoMethodError,"System tests cannot make direct requests via ##{method}; use #visit and #click_on instead. See http://www.rubydoc.info/github/teamcapybara/capybara/master#The_DSL for more information."
@@ -36,32 +36,37 @@ class SetHostTest < DrivenByRackTest
classUndefMethodsTest<DrivenBySeleniumWithChrome
test"get"do
assert_raiseNoMethodErrordo
exception=assert_raiseNoMethodErrordo
get"http://example.com"
end
assert_equal"System tests cannot make direct requests via #get; use #visit and #click_on instead. See http://www.rubydoc.info/github/teamcapybara/capybara/master#The_DSL for more information.",exception.message
end
test"post"do
assert_raiseNoMethodErrordo
exception=assert_raiseNoMethodErrordo
post"http://example.com"
end
assert_equal"System tests cannot make direct requests via #post; use #visit and #click_on instead. See http://www.rubydoc.info/github/teamcapybara/capybara/master#The_DSL for more information.",exception.message
end
test"put"do
assert_raiseNoMethodErrordo
exception=assert_raiseNoMethodErrordo
put"http://example.com"
end
assert_equal"System tests cannot make direct requests via #put; use #visit and #click_on instead. See http://www.rubydoc.info/github/teamcapybara/capybara/master#The_DSL for more information.",exception.message
end
test"patch"do
assert_raiseNoMethodErrordo
exception=assert_raiseNoMethodErrordo
patch"http://example.com"
end
assert_equal"System tests cannot make direct requests via #patch; use #visit and #click_on instead. See http://www.rubydoc.info/github/teamcapybara/capybara/master#The_DSL for more information.",exception.message
end
test"delete"do
assert_raiseNoMethodErrordo
exception=assert_raiseNoMethodErrordo
delete"http://example.com"
end
assert_equal"System tests cannot make direct requests via #delete; use #visit and #click_on instead. See http://www.rubydoc.info/github/teamcapybara/capybara/master#The_DSL for more information.",exception.message