diff --git a/spec/generators/decorator/decorator_generator_spec.rb b/spec/generators/decorator/decorator_generator_spec.rb index 84dd76a..c4318e8 100644 --- a/spec/generators/decorator/decorator_generator_spec.rb +++ b/spec/generators/decorator/decorator_generator_spec.rb @@ -40,6 +40,7 @@ describe Rails::Generators::DecoratorGenerator do context "with an ApplicationDecorator" do before do + allow_any_instance_of(Object).to receive(:require) allow_any_instance_of(Object).to receive(:require).with("application_decorator").and_return( stub_const "ApplicationDecorator", Class.new )