Module: RSpec::Rails::SystemExampleGroup
- Extended by:
- ActiveSupport::Concern
- Includes:
- ActionController::TemplateAssertions, ActionDispatch::Assertions, ActionDispatch::Integration::Runner, Matchers::RedirectTo, Matchers::RenderTemplate, RailsExampleGroup
- Defined in:
- lib/rspec/rails/example/system_example_group.rb
Overview
Container class for system tests
Instance Method Summary collapse
-
#app ⇒ Object
Delegates to
Rails.application
. -
#passed? ⇒ Boolean
for the SystemTesting Screenshot situation.
Methods included from Matchers::RenderTemplate
Methods included from Matchers::RedirectTo
Instance Method Details
#app ⇒ Object
Delegates to Rails.application
.
42 43 44 |
# File 'lib/rspec/rails/example/system_example_group.rb', line 42 def app ::Rails.application end |
#passed? ⇒ Boolean
for the SystemTesting Screenshot situation
22 23 24 25 26 27 28 29 30 |
# File 'lib/rspec/rails/example/system_example_group.rb', line 22 def passed? return false if RSpec.current_example.exception return true unless defined?(::RSpec::Expectations::FailureAggregator) failure_notifier = ::RSpec::Support.failure_notifier return true unless failure_notifier.is_a?(::RSpec::Expectations::FailureAggregator) failure_notifier.failures.empty? && failure_notifier.other_errors.empty? end |