# spec_helper.rb
module Test
  def secret_func
  end
end
Rspec.configure do |config|
   config.include Test
end
# spec/example/example.rb
describe SomeClass do
  it 'should complete here' do
    sec|
  end
endsecret_func should have auto completion.
This is also a requirement for factory bot support, since thats how factory bot gets included in your specs