Sha256: 8f762218cc6be3ba7dc64bc68e1e206267f4373ab8ef00db8425eccc152c651c

Contents?: true

Size: 753 Bytes

Versions: 8

Compression:

Stored size: 753 Bytes

Contents

require Pathname(__FILE__).ascend { |d| h=d+'spec_helper.rb'; break h if h.file? }
@announce = true
module ::Cuken::Api::Vagrant

  describe VM do

    before(:each) do
    end

    after(:all) do
    end

    context "#state(name)" do
      before(:all) do
        in_dir do
          puts Dir.getwd
          File.open("Vagrantfile", "w") { |f| f << test_vagrantfile(['web','db']) }
          @vagrant_vm = ::VagrantVMExampleHelpers.create_vm_instance('web')
        end

      end
      after(:all) do
        in_dir do
          FileUtils.rm('Vagrantfile')
        end
      end

      it "should confirm a non-existent VM is not running" do
        in_dir do
          @vagrant_vm.state(:web).should be_nil
        end
      end

    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cuken-0.1.22 spec/api/vagrant/v_m/api_spec.rb
cuken-0.1.21 spec/api/vagrant/v_m/api_spec.rb
cuken-0.1.20 spec/api/vagrant/v_m/api_spec.rb
cuken-0.1.19 spec/api/vagrant/v_m/api_spec.rb
cuken-0.1.18 spec/api/vagrant/v_m/api_spec.rb
cuken-0.1.17 spec/api/vagrant/v_m/api_spec.rb
cuken-0.1.16 spec/api/vagrant/v_m/api_spec.rb
cuken-0.1.15 spec/api/vagrant/v_m/api_spec.rb