Module: RSpec::Rails::FeatureExampleGroup Private

Extended by:
ActiveSupport::Concern
Includes:
RailsExampleGroup
Defined in:
lib/rspec/rails/example/feature_example_group.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Container module for routing spec functionality.

Constant Summary

DEFAULT_HOST =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Default host to be used in Rails route helpers if none is specified.

"www.example.com"

Instance Method Summary (collapse)

Methods included from Matchers

#be_a_new, #be_new_record, #be_valid, #have_http_status

Instance Method Details

- (Object) visit

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

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.

26
27
28
29
30
31
32
# File 'lib/rspec/rails/example/feature_example_group.rb', line 26
def visit(*)
  if defined?(super)
    super
  else
    raise "Capybara not loaded, please add it to your Gemfile:\n\ngem \"capybara\""
  end
end