Sha256: ede3e5d71d072948075dba7ee9fd6f2c9fd37e274f636ff12382a961b014b971

Contents?: true

Size: 533 Bytes

Versions: 15

Compression:

Stored size: 533 Bytes

Contents

require 'rspec'
require 'taperole'
require 'fileutils'

starting_directory = Dir.pwd
tape_testing_dir = '/tmp/tape-testing'

RSpec.configure do |config|
  config.before(:suite) do
    Dir.mkdir(tape_testing_dir)
    Dir.chdir(tape_testing_dir)
  end

  config.before(:each) do
    FileUtils.rm_rf(Dir.glob("#{tape_testing_dir}/*"))
    FileUtils.touch("#{tape_testing_dir}/.gitignore")
    Dir.chdir(tape_testing_dir)
  end

  config.after(:suite) do
    Dir.chdir(starting_directory)
    FileUtils.rm_rf(tape_testing_dir)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
taperole-2.1.1 spec/spec_helper.rb
taperole-2.1.0 spec/spec_helper.rb
taperole-2.0.7 spec/spec_helper.rb
taperole-2.0.6 spec/spec_helper.rb
taperole-2.0.5 spec/spec_helper.rb
taperole-2.0.4 spec/spec_helper.rb
taperole-2.0.3 spec/spec_helper.rb
taperole-2.0.2 spec/spec_helper.rb
taperole-2.0.1 spec/spec_helper.rb
taperole-2.0.0 spec/spec_helper.rb
taperole-1.8.2 spec/spec_helper.rb
taperole-1.8.1 spec/spec_helper.rb
taperole-1.8.0 spec/spec_helper.rb
taperole-1.7.1 spec/spec_helper.rb
taperole-1.7.0 spec/spec_helper.rb