Sha256: 0d0fa4c037fd86f89832709aacb4b001aa335effa7903a1bad0c1d18044168eb
Contents?: true
Size: 632 Bytes
Versions: 28
Compression:
Stored size: 632 Bytes
Contents
require "action_controller" require "action_controller/integration" module ActionController #:nodoc: IntegrationTest.class_eval do include Webrat::Methods include Webrat::Matchers # The Rails version of within supports passing in a model and Webrat # will apply a scope based on Rails' dom_id for that model. # # Example: # within User.last do # click_link "Delete" # end def within(selector_or_object, &block) if selector_or_object.is_a?(String) super else super('#' + RecordIdentifier.dom_id(selector_or_object), &block) end end end end
Version data entries
28 entries across 28 versions & 14 rubygems