Sha256: 417bf1c7300c471bba562955354d1436170f46bd0224b4c0f5ff1ac8fa243bc7
Contents?: true
Size: 869 Bytes
Versions: 2
Compression:
Stored size: 869 Bytes
Contents
require '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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
landrush-1.0.0 | test/landrush/dependent_vms_test.rb |
landrush-0.19.0 | test/landrush/dependent_vms_test.rb |