File: isolate_load_path_mutation.rb

package info (click to toggle)
ruby-rspec-core 2.14.7-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,756 kB
  • ctags: 1,195
  • sloc: ruby: 12,708; makefile: 14
file content (6 lines) | stat: -rw-r--r-- 180 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
shared_context "isolate load path mutation" do
  original_load_path = nil
  before { original_load_path = $LOAD_PATH.dup }
  after  { $LOAD_PATH.replace(original_load_path) }
end