Method: RSpec::Daemon::Configuration#forward_rspec_config_singleton_to

Defined in:
lib/rspec/daemon/configuration.rb

#forward_rspec_config_singleton_to(config_proxy) ⇒ Object



51
52
53
54
55
56
# File 'lib/rspec/daemon/configuration.rb', line 51

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