Sha256: b0172029b234cf9d32cf78e8dd87649d33bc041886053e76a0f9c06d2548c4c4
Contents?: true
Size: 844 Bytes
Versions: 7
Compression:
Stored size: 844 Bytes
Contents
module RailsEdgeTest module Runner module_function def go!(args = []) unless Rails.env.test? puts "Failure! Unable to set Rails environment to test." exit end RailsEdgeTest::Dsl.reset! paths_to_load = if args.any? args else File.join( RailsEdgeTest.configuration.edge_root_path, '**/*_edge.rb' ) end Dir.glob(paths_to_load).sort.each do |file| load file end RailsEdgeTest::Dsl.execute! end def load_rails_environment!(rails_root) ENV["RAILS_ENV"]="test" rails_app_path = File.join(rails_root, "config/application") require rails_app_path Rails.application.require_environment! require "rake" Rails.application.load_tasks end end end
Version data entries
7 entries across 7 versions & 1 rubygems