Sha256: 2a8f31c44b929bb643a2e23a543bf708dbcb22864140fbd0722248888886284f
Contents?: true
Size: 881 Bytes
Versions: 4
Compression:
Stored size: 881 Bytes
Contents
require_relative '../test_helper' module Landrush describe DependentVMs do describe 'any?' do it 'reports false when nothing has happened' do DependentVMs.any?.must_equal false end it 'reports true once a machine has been added' do DependentVMs.add('recordme.example.test') DependentVMs.any?.must_equal true end it 'reports false if a machine has been added then removed' do DependentVMs.add('recordme.example.test') DependentVMs.remove('recordme.example.test') DependentVMs.any?.must_equal false end it 'reports true if not all machines have been removed' do DependentVMs.add('recordme.example.test') DependentVMs.add('alsome.example.test') DependentVMs.remove('recordme.example.test') DependentVMs.any?.must_equal true end end end end
Version data entries
4 entries across 4 versions & 1 rubygems