spec/unit/omnibus_spec.rb in omnibus-5.5.0 vs spec/unit/omnibus_spec.rb in omnibus-5.6.0
- old
+ new
@@ -16,11 +16,11 @@
Omnibus::Config.project_root(File.join(tmp_path, "/foo/bar"))
Omnibus::Config.local_software_dirs([File.join(tmp_path, "/local"), File.join(tmp_path, "/other")])
Omnibus::Config.software_gems(["omnibus-software", "custom-omnibus-software"])
end
- describe '#which' do
+ describe "#which" do
it "returns nil when the file does not exist" do
stub_env("PATH", nil)
expect(subject.which("not_a_real_executable")).to be nil
end
@@ -31,11 +31,11 @@
expect(subject.which(ruby)).to eq(ruby)
expect(subject.which(ruby_cmd)).to eq(ruby)
end
end
- describe '#project_path' do
+ describe "#project_path" do
before do
allow(Omnibus).to receive(:project_map)
.and_return("chef" => "/projects/chef")
end
@@ -50,11 +50,11 @@
it "returns nil when the project does not exist" do
expect(subject.project_path("bacon")).to be nil
end
end
- describe '#software_path' do
+ describe "#software_path" do
before do
allow(Omnibus).to receive(:software_map)
.and_return("chef" => "/software/chef")
end
@@ -69,10 +69,10 @@
it "returns nil when the project does not exist" do
expect(subject.software_path("bacon")).to be nil
end
end
- describe '#possible_paths_for' do
+ describe "#possible_paths_for" do
it "searches all paths" do
expect(subject.possible_paths_for("file")).to eq(%w{
/foo/bar/file
/local/file
/other/file