Skip to content

Commit

Permalink
Eagerly load example groups before stubbing Rails
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneius committed Mar 9, 2024
1 parent 012f864 commit 2791818
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/rspec/rails/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2791818

Please sign in to comment.