Sha256: 4b07dde0670cbcf03471fc4586faec641834bc3e4ab6827680246189bcdf8565

Contents?: true

Size: 674 Bytes

Versions: 7

Compression:

Stored size: 674 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module NewRelic
  module TestHelpers
    module FileSearching
      def all_rb_files
        pattern = File.expand_path(gem_root + "/**/*.rb")
        Dir[pattern]
      end

      def all_rb_and_js_files
        pattern = File.expand_path(gem_root + "/**/*.{rb,js}")
        Dir[pattern]
      end

      def all_files
        pattern = File.expand_path(gem_root + "/**/*")
        Dir[pattern]
      end

      def gem_root
        File.expand_path(File.dirname(__FILE__) + "/../../")
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
newrelic_rpm-3.7.2.195 test/helpers/file_searching.rb
newrelic_rpm-3.7.2.192 test/helpers/file_searching.rb
newrelic_rpm-3.7.2.190.beta test/helpers/file_searching.rb
newrelic_rpm-3.7.1.188 test/helpers/file_searching.rb
newrelic_rpm-3.7.1.182 test/helpers/file_searching.rb
newrelic_rpm-3.7.1.180 test/helpers/file_searching.rb
newrelic_rpm-3.7.0.177 test/helpers/file_searching.rb