Method: RSpecConsole::ConfigCache#replay_configuration

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

#replay_configurationObject



45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/rspec-console/config_cache.rb', line 45

def replay_configuration
  ::RSpec.configure do |config|
    self.config_proxy.recorded_messages.each do |method, args, block|
      # reporter caches config.output_stream which is not good as it
      # prevents the runner to use a custom stdout.
      next if method == :reporter
      config.send(method, *args, &block)
    end
  end

  restore_shared_examples

  forward_rspec_config_singleton_to(self.config_proxy)
end