Sha256: 1142dc982b4d842b891b0ea94ea432b73d87944082a160156bcdcdfdff34628b

Contents?: true

Size: 723 Bytes

Versions: 2

Compression:

Stored size: 723 Bytes

Contents

IMW_ROOT_DIR = File.join(File.expand_path(File.dirname(__FILE__)), '..') unless defined? IMW_ROOT_DIR
IMW_SPEC_DIR = File.join(IMW_ROOT_DIR, 'spec')         unless defined? IMW_SPEC_DIR
IMW_LIB_DIR  = File.join(IMW_ROOT_DIR, 'lib')          unless defined? IMW_LIB_DIR
$: << IMW_LIB_DIR

require 'rubygems'
require 'spec'
require 'fileutils'
require 'imw'

Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each { |path| require path }

module IMWTest
  TMP_DIR = "/tmp/imwtest"
end

Spec::Runner.configure do |config|

  config.include CustomMatchers

  config.before do
    FileUtils.mkdir_p IMWTest::TMP_DIR
    FileUtils.cd IMWTest::TMP_DIR
  end
  
  config.after do
    FileUtils.rm_rf IMWTest::TMP_DIR
  end
end

  

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
imw-0.1.1 spec/spec_helper.rb
imw-0.1.0 spec/spec_helper.rb