Sha256: 74ef153c0410e92ba62ccc2254d709703e6869df9077f15809acf4e44d1fdac9

Contents?: true

Size: 510 Bytes

Versions: 22

Compression:

Stored size: 510 Bytes

Contents

Before do
  FileUtils.mkdir_p(SCRATCH)

  $mirage = start_mirage_in_scratch_dir
  $mirage.templates.delete_all

  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

22 entries across 22 versions & 1 rubygems

Version Path
mirage-3.0.4 features/support/hooks.rb
mirage-3.0.3 features/support/hooks.rb
mirage-3.0.2 features/support/hooks.rb
mirage-3.0.1 features/support/hooks.rb
mirage-3.0.0 features/support/hooks.rb
mirage-3.0.0.alpha.17 features/support/hooks.rb
mirage-3.0.0.alpha.16 features/support/hooks.rb
mirage-3.0.0.alpha.15 features/support/hooks.rb
mirage-3.0.0.alpha.14 features/support/hooks.rb
mirage-3.0.0.alpha.13 features/support/hooks.rb
mirage-3.0.0.alpha.12 features/support/hooks.rb
mirage-3.0.0.alpha.11 features/support/hooks.rb
mirage-3.0.0.alpha.10 features/support/hooks.rb
mirage-3.0.0.alpha.9 features/support/hooks.rb
mirage-3.0.0.alpha.8 features/support/hooks.rb
mirage-3.0.0.alpha.7 features/support/hooks.rb
mirage-3.0.0.alpha.6 features/support/hooks.rb
mirage-3.0.0.alpha.5 features/support/hooks.rb
mirage-3.0.0.alpha.4 features/support/hooks.rb
mirage-3.0.0.alpha.3 features/support/hooks.rb