Sha256: 1d3aa45ac90cd36cffafba8868ac9fee04ae189aa7ea760fae7f5474b7a978ed
Contents?: true
Size: 648 Bytes
Versions: 11
Compression:
Stored size: 648 Bytes
Contents
#!/usr/bin/env ruby require 'open3' require 'rails_edge_test' # Walk up recursively the filesystem until we can find a folder # containing the Gemfile. Then we can use that folder as the starting # point to look for the rails files that we need. def find_gemfile_dir(path) if File.file?(File.join(path, 'Gemfile')) path else new_path = File.expand_path('..', path) if path == new_path raise 'Could not find directory with Gemfile' else find_gemfile_dir(new_path) end end end gemfile_dir = find_gemfile_dir(Dir.pwd) RailsEdgeTest::Runner.load_rails_environment!(gemfile_dir) RailsEdgeTest::Runner.go!(ARGV)
Version data entries
11 entries across 11 versions & 1 rubygems