Method: RSpecConsole::ConfigCache#forward_rspec_config_singleton_to

Defined in:
lib/rspec-console/config_cache.rb

#forward_rspec_config_singleton_to(config_proxy) ⇒ Object



64
65
66
67
68
69
# File 'lib/rspec-console/config_cache.rb', line 64

def forward_rspec_config_singleton_to(config_proxy)
  # an old version of rspec-rails/lib/rspec/rails/view_rendering.rb adds
  # methods on the configuration singleton. This takes care of that.
  ::RSpec.configuration.singleton_class
    .send(:define_method, :method_missing, &config_proxy.method(:send))
end