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

[Source]

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

[Source]

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

[Source]

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

[Validate]