Sha256: a80d17c171dbd23cf24d4bf6efa127e45b2ddda02c1e35142b85e5a5ab801938
Contents?: true
Size: 990 Bytes
Versions: 11
Compression:
Stored size: 990 Bytes
Contents
require 'spec_helper' describe Berkshelf do context "ClassMethods" do subject { Berkshelf } describe "#find_metadata" do let(:metadata_path) { fixtures_path.join("cookbooks", "example_cookbook", "metadata.rb") } context "given a path containing a metadata.rb file" do it "returns the path to the metadata.rb file" do subject.find_metadata(fixtures_path.join("cookbooks", "example_cookbook")).should eql(metadata_path) end end context "given a path where a parent path contains a metadata.rb file" do it "returns the path to the metadata.rb file" do subject.find_metadata(fixtures_path.join("cookbooks", "example_cookbook", "recipes")).should eql(metadata_path) end end context "given a path that does not contain a metadata.rb file or a parent path that does" do it "returns nil" do subject.find_metadata(tmp_path).should be_nil end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems