From 2791818e750a4e5429e0e3fe13ce0dd7b6ab1a96 Mon Sep 17 00:00:00 2001 From: Eugene Kenny Date: Sat, 9 Mar 2024 00:36:16 +0000 Subject: [PATCH] Eagerly load example groups before stubbing Rails --- spec/rspec/rails/configuration_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/rspec/rails/configuration_spec.rb b/spec/rspec/rails/configuration_spec.rb index b61b54cf3..88681220d 100644 --- a/spec/rspec/rails/configuration_spec.rb +++ b/spec/rspec/rails/configuration_spec.rb @@ -291,6 +291,7 @@ def in_inferring_type_from_location_environment end it "metadata `type: :request` sets up request example groups" do + require "rspec/rails/request_example_group" a_rails_app = double("Rails application") the_rails_module = Module.new { def self.version; end @@ -328,6 +329,7 @@ def self.application; end end it "metadata `type: :feature` sets up feature example groups" do + require "rspec/rails/feature_example_group" a_rails_app = double("Rails application") the_rails_module = Module.new { def self.version; end