Sha256: 2de2b85252b1bdbc5d79355dae0b8670da1a33904bdde98666118b8ac48021b5

Contents?: true

Size: 1005 Bytes

Versions: 19

Compression:

Stored size: 1005 Bytes

Contents

#------------------------------------------------------------
# Hooks
#------------------------------------------------------------
# Unsafe tags specify that a test modifies (writes or deletes)
# actual data in VirtualBox.
Around('@unsafe') do |scenario, block|
  block.call if IntegrationInfo[:test_unsafe]
end

Around('@pending') do |scenario, block|
  # Don't run the block
end

#------------------------------------------------------------
# Warning/Info messages about settings.
#------------------------------------------------------------
if !IntegrationInfo[:test_unsafe]
  puts <<-MSG
========================================================================

For your own safety, unsafe tests (tests which modify actual VirtualBox
data), are disabled unless the environmental variable TEST_UNSAFE is
set. To enable unsafe tests, the easiest way is to do the following:

    TEST_UNSAFE=yes rake test:integration

========================================================================
MSG
end

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
virtualbox-0.9.2 features/support/hooks.rb
virtualbox-0.9.1 features/support/hooks.rb
virtualbox-0.9.0 features/support/hooks.rb
virtualbox-0.8.6 features/support/hooks.rb
virtualbox-0.8.5 features/support/hooks.rb
virtualbox-0.8.4 features/support/hooks.rb
velir_virtualbox-0.8.4 features/support/hooks.rb
virtualbox-0.8.3 features/support/hooks.rb
virtualbox-0.8.2 features/support/hooks.rb
virtualbox-0.8.1 features/support/hooks.rb
virtualbox-0.8.0 features/support/hooks.rb
virtualbox-0.7.9 features/support/hooks.rb
virtualbox-0.7.8 features/support/hooks.rb
virtualbox-0.7.7 features/support/hooks.rb
virtualbox-0.7.6 features/support/hooks.rb
bbrowning-virtualbox-0.7.6.dev features/support/hooks.rb
virtualbox-0.7.5 features/support/hooks.rb
virtualbox-0.7.4 features/support/hooks.rb
virtualbox-0.7.3 features/support/hooks.rb