Class: Capybara::Driver::Facebook
- Inherits:
-
RackTest
- Object
- RackTest
- Capybara::Driver::Facebook
- Defined in:
- lib/capybara-facebook/driver/facebook_driver.rb
Instance Method Summary collapse
Instance Method Details
#facebook_parameters!(params = {}) ⇒ Object
13 14 15 |
# File 'lib/capybara-facebook/driver/facebook_driver.rb', line 13 def facebook_parameters!(params={}) facebook_default_params.merge!(params) end |
#visit(path, attributes = {}) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/capybara-facebook/driver/facebook_driver.rb', line 6 def visit(path, attributes = {}) return if path.gsub(/^#{current_path}/, '') =~ /^#/ get(path, facebook_default_params.merge(attributes), env) follow_redirects! cache_body end |