Module FormTestHelper::Link
In: lib/form_test_helper.rb

Methods

click   follow   href   request_method   testcase=  

Public Instance methods

click()

Alias for follow

[Source]

     # File lib/form_test_helper.rb, line 448
448:     def follow
449:       path = self.href
450:       @testcase.make_request(request_method, path)
451:     end

[Source]

     # File lib/form_test_helper.rb, line 454
454:     def href
455:       self["href"]
456:     end

[Source]

     # File lib/form_test_helper.rb, line 458
458:     def request_method
459:       if self["onclick"] && self["onclick"] =~ /'_method'.*'value', '(\w+)'/
460:         $1.to_sym
461:       else
462:         :get
463:       end
464:     end

[Source]

     # File lib/form_test_helper.rb, line 466
466:     def testcase=(testcase)
467:       @testcase = testcase
468:       self
469:     end

[Validate]