Sha256: 00b6c3b54234ed5bf42d2d8366ea6b00a5257580cd187cca9426e47b20ecdbf1

Contents?: true

Size: 595 Bytes

Versions: 3

Compression:

Stored size: 595 Bytes

Contents

ENV["RAILS_ENV"] = "test"

caller_dir = File.dirname(caller.detect{|x| !x.include? "custom_require.rb"})
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

3 entries across 3 versions & 1 rubygems

Version Path
gem_suit-0.1.2 lib/gem_suit/test_help.rb
gem_suit-0.1.1 lib/gem_suit/test_help.rb
gem_suit-0.1.0 lib/gem_suit/test_help.rb