Sha256: 6c74528d38ec11d72e4c0de373f5c2aa088a58014676ad59d5d486a0b1690ed3

Contents?: true

Size: 863 Bytes

Versions: 20

Compression:

Stored size: 863 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.dev')
        DependentVMs.any?.must_equal true
      end

      it "reports false if a machine has been added then removed" do
        DependentVMs.add('recordme.example.dev')
        DependentVMs.remove('recordme.example.dev')
        DependentVMs.any?.must_equal false
      end

      it "reports true if not all machines have been removed" do
        DependentVMs.add('recordme.example.dev')
        DependentVMs.add('alsome.example.dev')
        DependentVMs.remove('recordme.example.dev')
        DependentVMs.any?.must_equal true
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
landrush-0.18.0 test/landrush/dependent_vms_test.rb
landrush-0.17.0 test/landrush/dependent_vms_test.rb
landrush-0.16.0 test/landrush/dependent_vms_test.rb
landrush-0.15.4 test/landrush/dependent_vms_test.rb
landrush-0.15.3 test/landrush/dependent_vms_test.rb
landrush-0.15.2 test/landrush/dependent_vms_test.rb
landrush-0.15.1 test/landrush/dependent_vms_test.rb
landrush-0.15.0 test/landrush/dependent_vms_test.rb
landrush-0.14.1 test/landrush/dependent_vms_test.rb
landrush-0.14.0 test/landrush/dependent_vms_test.rb
landrush-0.13.1 test/landrush/dependent_vms_test.rb
landrush-0.13.0 test/landrush/dependent_vms_test.rb
landrush-0.12.0 test/landrush/dependent_vms_test.rb
landrush-0.11.0 test/landrush/dependent_vms_test.rb
landrush-0.10.0 test/landrush/dependent_vms_test.rb
landrush-0.9.0 test/landrush/dependent_vms_test.rb
landrush-0.8.0 test/landrush/dependent_vms_test.rb
landrush-0.7.1 test/landrush/dependent_vms_test.rb
landrush-0.7.0 test/landrush/dependent_vms_test.rb
landrush-0.6.0 test/landrush/dependent_vms_test.rb