Sha256: 844be72fb1d4862a5a17d3995bcbb2b86c00dfd69405d544f4285ab7c05fd28c

Contents?: true

Size: 877 Bytes

Versions: 5

Compression:

Stored size: 877 Bytes

Contents

# Temporary workaround to resolve circular dependency between rspec-rails' spec
# suite and ammeter.
require 'rspec/rails/matchers'

if ::Rails::VERSION::MAJOR >= 7
  require 'active_support/current_attributes/test_helper'
  require 'active_support/execution_context/test_helper'
end

module RSpec
  module Rails
    # @api public
    # Common rails example functionality.
    module RailsExampleGroup
      extend ActiveSupport::Concern
      include RSpec::Rails::SetupAndTeardownAdapter
      include RSpec::Rails::MinitestLifecycleAdapter
      include RSpec::Rails::MinitestAssertionAdapter
      include RSpec::Rails::FixtureSupport
      if ::Rails::VERSION::MAJOR >= 7
        include RSpec::Rails::TaggedLoggingAdapter
        include ActiveSupport::CurrentAttributes::TestHelper
        include ActiveSupport::ExecutionContext::TestHelper
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
rspec-rails-7.0.0 lib/rspec/rails/example/rails_example_group.rb
rspec-rails-6.1.5 lib/rspec/rails/example/rails_example_group.rb
rspec-rails-6.1.4 lib/rspec/rails/example/rails_example_group.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rspec-rails-6.1.3/lib/rspec/rails/example/rails_example_group.rb
rspec-rails-6.1.3 lib/rspec/rails/example/rails_example_group.rb