Class: Capybara::Mechanize::Driver
- Inherits:
-
RackTest::Driver
- Object
- RackTest::Driver
- Capybara::Mechanize::Driver
- Defined in:
- lib/capybara/mechanize/driver.rb
Instance Method Summary collapse
- #browser ⇒ Object
-
#initialize(app, options = {}) ⇒ Driver
constructor
A new instance of Driver.
- #remote?(url) ⇒ Boolean
Constructor Details
#initialize(app, options = {}) ⇒ Driver
Returns a new instance of Driver.
5 6 7 8 9 |
# File 'lib/capybara/mechanize/driver.rb', line 5 def initialize(app, = {}) raise ArgumentError, "mechanize requires a rack application, but none was given" unless app super end |