spec/functional/fetchers/path_fetcher_spec.rb in omnibus-5.5.0 vs spec/functional/fetchers/path_fetcher_spec.rb in omnibus-5.6.0
- old
+ new
@@ -22,11 +22,11 @@
create_directory(source_path)
end
subject { described_class.new(manifest_entry, project_dir, build_dir) }
- describe '#fetch_required?' do
+ describe "#fetch_required?" do
context "when the directories have different files" do
before do
create_file("#{source_path}/directory/file") { "different" }
create_file("#{project_dir}/directory/file") { "same" }
end
@@ -46,11 +46,11 @@
expect(subject.fetch_required?).to be(false)
end
end
end
- describe '#version_guid' do
+ describe "#version_guid" do
it "includes the source path" do
expect(subject.version_guid).to eq("path:#{source_path}")
end
end
@@ -80,17 +80,17 @@
expect("#{project_dir}/file_d").to_not be_a_file
end
end
- describe '#clean' do
+ describe "#clean" do
it "returns true" do
expect(subject.clean).to be_truthy
end
end
- describe '#version_for_cache' do
+ describe "#version_for_cache" do
before do
create_file("#{source_path}/file_a")
create_file("#{source_path}/file_b")
create_file("#{source_path}/.file_c")
end
@@ -100,10 +100,10 @@
it "includes the source_path and shasum" do
expect(subject.version_for_cache).to eq("path:#{source_path}|shasum:#{sha}")
end
end
- describe '#resolve_version' do
+ describe "#resolve_version" do
it "just returns the version" do
expect(NetFetcher.resolve_version("1.2.3", source)).to eq("1.2.3")
end
end
end