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 408
408:     def follow
409:       path = self.href
410:       @testcase.make_request(request_method, path)
411:     end

[Source]

     # File lib/form_test_helper.rb, line 414
414:     def href
415:       self["href"]
416:     end

[Source]

     # File lib/form_test_helper.rb, line 418
418:     def request_method
419:       if self["onclick"] && self["onclick"] =~ /'_method'.*'value', '(\w+)'/
420:         $1.to_sym
421:       else
422:         :get
423:       end
424:     end

[Source]

     # File lib/form_test_helper.rb, line 426
426:     def testcase=(testcase)
427:       @testcase = testcase
428:       self
429:     end

[Validate]