Sha256: 76e9fd1960fdf52136fb5eacbc793f92f3d94a538e8b18d510820beef1427d94

Contents?: true

Size: 469 Bytes

Versions: 10

Compression:

Stored size: 469 Bytes

Contents

Before do
  FileUtils.mkdir_p(SCRATCH)

  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

10 entries across 10 versions & 2 rubygems

Version Path
mirage-3.0.13 features/support/hooks.rb
mirage-3.0.12 features/support/hooks.rb
mirage-3.0.11 features/support/hooks.rb
mirage-3.0.10 features/support/hooks.rb
mirage-3.0.9 features/support/hooks.rb
mirage-on-thin-3.0.8 features/support/hooks.rb
mirage-3.0.8 features/support/hooks.rb
mirage-3.0.7 features/support/hooks.rb
mirage-3.0.6 features/support/hooks.rb
mirage-3.0.5 features/support/hooks.rb