Sha256: c9434fc55604f7761f046b37934a57733ce284efba41f661d35df053af7cf2f5

Contents?: true

Size: 830 Bytes

Versions: 11

Compression:

Stored size: 830 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 'imw'
require 'spec'

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

module IMWTest
  TMP_DIR   = "/tmp/imwtest" unless defined?(TMP_DIR)
  DATA_DIR  = File.join(IMW_SPEC_DIR, 'data') unless defined?(DATA_DIR)
end

Spec::Runner.configure do |config|

  config.include IMWTest::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

11 entries across 11 versions & 1 rubygems

Version Path
imw-0.2.18 spec/spec_helper.rb
imw-0.2.17 spec/spec_helper.rb
imw-0.2.16 spec/spec_helper.rb
imw-0.2.15 spec/spec_helper.rb
imw-0.2.14 spec/spec_helper.rb
imw-0.2.13 spec/spec_helper.rb
imw-0.2.12 spec/spec_helper.rb
imw-0.2.11 spec/spec_helper.rb
imw-0.2.10 spec/spec_helper.rb
imw-0.2.9 spec/spec_helper.rb
imw-0.2.8 spec/spec_helper.rb