Sha256: 05c973afa3a1fa0154d806fd159a0bbd9dc906f4a0f3fce7347f25e7f854bd19

Contents?: true

Size: 966 Bytes

Versions: 5

Compression:

Stored size: 966 Bytes

Contents

begin
  require 'coveralls'
  Coveralls.wear_merged!
rescue LoadError
end

require 'fileutils'
require 'stringio'

require 'rspec'

DAEMON_ENV  = "test"
DAEMON_ROOT = File.expand_path('../../tmp/daemon', __FILE__)

$:.unshift( File.dirname(__FILE__) + '/../lib' )
require 'daemon_kit'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[ File.expand_path("../support/**/*.rb", __FILE__) ].each { |f| require f }

require 'rake/file_list'

RSpec.configure do |config|
  # == Mock Framework
  #
  # RSpec uses it's own mocking framework by default. If you prefer to
  # use mocha, flexmock or RR, uncomment the appropriate line:
  #
  # config.mock_with :mocha
  # config.mock_with :flexmock
  # config.mock_with :rr

  config.before(:all) do
    FileUtils.rm_rf("#{DAEMON_ROOT}/*")
    FileUtils.mkdir_p( DAEMON_ROOT )
  end

  config.after(:all) do
    FileUtils.rm_rf("#{DAEMON_ROOT}/*")
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
daemon-kit-0.3.3 spec/spec_helper.rb
daemon-kit-0.3.2 spec/spec_helper.rb
daemon-kit-0.3.1 spec/spec_helper.rb
daemon-kit-0.3.0 spec/spec_helper.rb
daemon-kit-0.3.0.rc2 spec/spec_helper.rb