module RSpec::Rails::FeatureExampleGroup
@api public Container module for routing spec functionality.
Constants
- DEFAULT_HOST
-
Default host to be used in
Rails
route helpers if none is specified.
Public Instance Methods
Source
# File lib/rspec/rails/example/feature_example_group.rb, line 27 def visit(*) if defined?(super) super else raise "Capybara not loaded, please add it to your Gemfile:\n\ngem \"capybara\"" end end
Shim to check for presence of Capybara. Will delegate if present, raise if not. We assume here that in most cases ‘visit` will be the first Capybara method called in a spec.
Calls superclass method