method

expand_patterns

rails latest stable - Class: Rails::TestRequirer

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.0.0.1) is shown here.

expand_patterns(patterns)
private

No documentation available.

# File railties/lib/rails/test_unit/test_requirer.rb, line 16
        def expand_patterns(patterns)
          patterns.map do |arg|
            arg = arg.gsub(/(:\d+)+?$/, '')
            if Dir.exist?(arg)
              "#{arg}/**/*_test.rb"
            else
              arg
            end
          end
        end