spec/unit/fetchers/path_fetcher_spec.rb in omnibus-5.5.0 vs spec/unit/fetchers/path_fetcher_spec.rb in omnibus-5.6.0

- old
+ new

@@ -14,11 +14,11 @@ locked_source: { path: source_path }) end subject { described_class.new(manifest_entry, project_dir, build_dir) } - describe '#fetch_required?' do + describe "#fetch_required?" do context "when the SHAs match" do before do allow(subject).to receive(:target_shasum).and_return("abcd1234") allow(subject).to receive(:destination_shasum).and_return("abcd1234") end @@ -38,23 +38,23 @@ expect(subject.fetch_required?).to be_truthy end end end - describe '#version_guid' do + describe "#version_guid" do it "returns the path" do expect(subject.version_guid).to eq("path:#{source_path}") end end - describe '#clean' do + describe "#clean" do it "returns true" do expect(subject.clean).to be_truthy end end - describe '#fetch' do + describe "#fetch" do before do allow(subject).to receive(:create_required_directories) allow(FileSyncer).to receive(:sync) end @@ -62,10 +62,10 @@ expect(FileSyncer).to receive(:sync).with(source_path, project_dir, {}) subject.fetch end end - describe '#version_for_cache' do + describe "#version_for_cache" do let(:shasum) { "abcd1234" } before do allow(subject).to receive(:digest_directory) .with(source_path, :sha256, {})