Module: RSpec::Ui::UiExampleGroup
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/rspec/ui/ui_example_group.rb
Overview
Container module for routing spec functionality.
Constant Summary collapse
- DEFAULT_HOST =
Default host to be used in Rails route helpers if none is specified.
"www.example.com"
Instance Method Summary collapse
-
#visit ⇒ Object
Shim to check for presence of Capybara.
Instance Method Details
#visit ⇒ Object
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.
28 29 30 31 32 33 34 |
# File 'lib/rspec/ui/ui_example_group.rb', line 28 def visit(*) if defined?(super) super else raise "Capybara not loaded, please add it to your Gemfile:\n\ngem \"capybara\"" end end |