Sha256: fdf1d844e26cd2a735b823d191cd8200b129a1fb7ffa7d3984f6ebd9f5fe6b52

Contents?: true

Size: 533 Bytes

Versions: 4

Compression:

Stored size: 533 Bytes

Contents

Before do
  FileUtils.mkdir_p(SCRATCH)

  if Mirage.running?
    $mirage.clear
  else
    $mirage = start_mirage_in_scratch_dir
  end

  Dir["#{SCRATCH}/*"].each do |file|
    FileUtils.rm_rf(file) unless file == "#{SCRATCH}/mirage.log"
  end

  if File.exists? "#{SCRATCH}/mirage.log"
    @mirage_log_file = File.open("#{SCRATCH}/mirage.log")
    @mirage_log_file.seek(0, IO::SEEK_END)
  end
end

Before ('@command_line') do
  Mirage.stop :all
end

After('@command_line') do
  Mirage.stop :all
end

at_exit do
  Mirage.stop :all
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mirage-2.4.2 features/support/hooks.rb
mirage-2.4.1 features/support/hooks.rb
mirage-2.4.0 features/support/hooks.rb
mirage-2.3.0 features/support/hooks.rb