File: no_concurrent_files_loaded_before_spec.rb

package info (click to toggle)
ruby-concurrent 1.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,152 kB
  • sloc: ruby: 30,953; java: 6,128; ansic: 293; makefile: 26; sh: 19
file content (7 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
files_loaded_before = $LOADED_FEATURES.grep(/\/concurrent\//).grep_v(/\/version\.rb$/)

RSpec.describe 'The test harness', if: ENV['ISOLATED'] do
  it 'does not load concurrent-ruby files to ensure there are no missing requires' do
    expect(files_loaded_before).to eq []
  end
end