Sha256: 4d3f7f6ae0d99dbc05e41b7d271de0c57d6f1abe51ce8e4c394308f3bad32904
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
ENV["RAILS_ENV"] = "test" caller_dir = File.dirname(caller.detect{|x| !x.include?("custom_require.rb") && !x.include?("lib/gem_suit")}) rails_root = File.expand_path "..", caller_dir rails_root = File.expand_path Dir["#{caller_dir}/../../rails-*/dummy"].last unless File.exists? "#{rails_root}/config/environment.rb" gem_dir = File.expand_path "../../..", rails_root system "cd #{gem_dir} && suit restore" system "cd #{rails_root} && suit bundle" begin require "#{rails_root}/config/environment" rescue LoadError => e puts "ERROR: #{e.message}\n\n" end require "#{"rails/" if Rails::VERSION::MAJOR >= 3}test_help"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gem_suit-0.1.3 | lib/gem_suit/test_help.rb |