lib/bogus.rb in bogus-0.1.2 vs lib/bogus.rb in bogus-0.1.3

- old
+ new

@@ -6,12 +6,15 @@ require_relative 'bogus/record_interactions' require_relative 'bogus/proxies_method_calls' require_relative 'bogus/rspec_extensions' require_relative 'bogus/rspec_adapter' -all_files = Dir[File.expand_path('../bogus/**/*.rb', __FILE__)] -all_files = all_files.reject { |f| f.include?('bogus/rspec') } -all_files.sort.each { |f| require f } +dir = File.realpath File.expand_path('../bogus', __FILE__) +Dir["#{dir}/**/*.rb"].sort.each do |path| + next if path.include? 'bogus/minitest' + next if path.include? 'bogus/rspec' + require path +end module Bogus extend PublicMethods end