method

save_loaded_features

Importance_0
v2_6_3 - Show latest stable - 0 notes - Class: TestCase
save_loaded_features() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/test_case.rb, line 797
  def save_loaded_features
    old_loaded_features = $LOADED_FEATURES.dup
    yield
  ensure
    prefix = File.dirname(__FILE__) + "/"
    new_features = ($LOADED_FEATURES - old_loaded_features)
    old_loaded_features.concat(new_features.select {|f| f.rindex(prefix, 0)})
    $LOADED_FEATURES.replace old_loaded_features
  end
Register or log in to add new notes.