Sha256: fbc45b29075aea4e79b9e2c457fabd53a2de6e853299efbcdf365b47db1b0e7d
Contents?: true
Size: 925 Bytes
Versions: 8
Compression:
Stored size: 925 Bytes
Contents
require 'spec_helper' describe Berkshelf::API::CacheBuilder::Worker::FileStore do describe "ClassMethods" do subject { described_class } its(:worker_type) { should eql("file_store") } end subject do described_class.new(path: fixtures_path.join("cookbooks")) end it_behaves_like "a human-readable string" describe "#cookbooks" do it "returns an array containing an item for each valid cookbook on the server" do expect(subject.cookbooks).to have(1).items end it "returns an array of RemoteCookbooks" do subject.cookbooks.each do |cookbook| expect(cookbook).to be_a(Berkshelf::API::RemoteCookbook) end end it "each RemoteCookbook is tagged with a location_type matching the worker_type of the builder" do subject.cookbooks.each do |cookbook| expect(cookbook.location_type).to eql(described_class.worker_type) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems