diff --git a/spec/rspec/core/configuration_spec.rb b/spec/rspec/core/configuration_spec.rb index f913b020d0..07fd08c1f4 100644 --- a/spec/rspec/core/configuration_spec.rb +++ b/spec/rspec/core/configuration_spec.rb @@ -1530,23 +1530,6 @@ def exclude?(line) expect(group.included_modules).to include(mod) end - it "includes each one before deciding whether to include the next" do - mod1 = Module.new do - def self.included(host) - host.metadata[:foo] = :bar - end - end - mod2 = Module.new - - group = RSpec.describe("group") - - config.include(mod1) - config.include(mod2, :foo => :bar) - config.configure_group(group) - expect(group.included_modules).to include(mod1) - expect(group.included_modules).to include(mod2) - end - module IncludeExtendOrPrependMeOnce def self.included(host) raise "included again" if host.instance_methods.include?(:foobar)