File: test_require.rb

package info (click to toggle)
ruby-sprockets 3.7.2-6
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,456 kB
  • sloc: ruby: 10,879; javascript: 73; makefile: 4
file content (16 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'minitest/autorun'

class TestRequire < Minitest::Test
  parallelize_me!

  ROOT = File.expand_path("../..", __FILE__)

  Dir["#{ROOT}/lib/**/*.rb"].each do |fn|
    next if File.basename(fn) == "version.rb"

    define_method "test_require_individual_library_files: #{fn}" do
      system "ruby", fn
      assert $?.success?, "Failed to load #{fn.inspect}"
    end
  end
end