Sha256: ece5a9f7b8b3c8ce93b5879babbf407cbbab9387a242308c920a2c3c17cfe59e

Contents?: true

Size: 593 Bytes

Versions: 4

Compression:

Stored size: 593 Bytes

Contents

require 'fileutils'
require 'ramaze'
Ramaze.options.started = true

TESTS_DIR = __DIR__
def TESTS_DIR./(*paths)
  File.expand_path(File.join(*paths), TESTS_DIR)
end

def clear_tmp(tmp_dir)
  if File.exist?(tmp_dir)
    puts "removing all files under #{tmp_dir}..."
    puts "are you sure? [just push enter if so]"
    if STDIN.gets.chomp.empty?
      FileUtils.rm_r(tmp_dir)
    else
      raise "user chose not to clear the temporary directory"
    end
  else
    Dir.mkdir(tmp_dir)
  end
end

clear_tmp(TESTS_DIR/"tmp/")
require TESTS_DIR/"../config.rb"
Conf.init TESTS_DIR/"data/conf_dir"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-station-0.1.3 tests/test_helper.rb
ruby-station-0.1.2 tests/test_helper.rb
ruby-station-0.1.1 tests/test_helper.rb
ruby-station-0.1.0 tests/test_helper.rb