Sha256: 8ef243f0d471f7f93b3d0958193b58d02d7f1d95c8362aaf1cb4ea7374d6151b

Contents?: true

Size: 780 Bytes

Versions: 12

Compression:

Stored size: 780 Bytes

Contents

require 'spec_helper'

describe Berkshelf::Vagrant do
  describe "ClassMethods" do
    describe "::shelf_path" do
      it "returns a String" do
        subject.shelf_path.should be_a(String)
      end

      it "is a pathname including the berkshelf_path" do
        subject.shelf_path.should include(Berkshelf.berkshelf_path)
      end
    end

    describe "::mkshelf" do

      it "returns a String" do
        subject.mkshelf().should be_a(String)
      end

      it "is a pathname including the shelf_path" do
        subject.mkshelf().should include(subject.shelf_path)
      end

      it "is a pathname including machine name" do

        machine_name = 'fantastic_machine'
        subject.mkshelf(machine_name).should include(machine_name)
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vagrant-berkshelf-2.0.1 spec/unit/berkshelf/vagrant_spec.rb
vagrant-berkshelf-2.0.0.rc4 spec/unit/berkshelf/vagrant_spec.rb
vagrant-berkshelf-2.0.0.rc3 spec/unit/berkshelf/vagrant_spec.rb
vagrant-berkshelf-2.0.0.rc2 spec/unit/berkshelf/vagrant_spec.rb
vagrant-berkshelf-2.0.0.rc1 spec/unit/berkshelf/vagrant_spec.rb
vagrant-berkshelf-1.3.7 spec/unit/berkshelf/vagrant_spec.rb
vagrant-berkshelf-1.3.6 spec/unit/berkshelf/vagrant_spec.rb
vagrant-berkshelf-1.3.5 spec/unit/berkshelf/vagrant_spec.rb
vagrant-berkshelf-1.4.0.dev1 spec/unit/berkshelf/vagrant_spec.rb
vagrant-berkshelf-1.3.4 spec/unit/berkshelf/vagrant_spec.rb
vagrant-berkshelf-1.3.3 spec/unit/berkshelf/vagrant_spec.rb
vagrant-berkshelf-1.3.2 spec/unit/berkshelf/vagrant_spec.rb