Module: RSpec::Rails::SystemExampleGroup

Extended by:
ActiveSupport::Concern
Includes:
ActionController::TemplateAssertions, ActionDispatch::Assertions, ActionDispatch::Integration::Runner, ActionDispatch::IntegrationTest::Behavior, ActionDispatch::SystemTesting::TestHelpers::ScreenshotHelper, ActionDispatch::SystemTesting::TestHelpers::SetupAndTeardown, 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)

Methods included from Matchers::RenderTemplate

#have_rendered

Methods included from Matchers::RedirectTo

#redirect_to

Instance Method Details

- (Object) app

Delegates to Rails.application.

46
47
48
# File 'lib/rspec/rails/example/system_example_group.rb', line 46
def app
  ::Rails.application
end

- (Boolean) passed?

for the SystemTesting Screenshot situation

Returns:

  • (Boolean)
32
33
34
# File 'lib/rspec/rails/example/system_example_group.rb', line 32
def passed?
  RSpec.current_example.exception.nil?
end