spec/unit/berkshelf/locations/git_location_spec.rb in berkshelf-3.0.0.beta3 vs spec/unit/berkshelf/locations/git_location_spec.rb in berkshelf-3.0.0.beta4

- old
+ new

@@ -79,10 +79,10 @@ subject { described_class.new(dependency, git: "file://#{fake_remote}.git") } it 'raises a CookbookNotFound error' do subject.stub(:clone).and_return { FileUtils.mkdir_p(fake_remote) - Dir.chdir(fake_remote) { |dir| `git init; echo hi > README; git add README; git commit README -m 'README'`; dir } + Dir.chdir(fake_remote) { |dir| `git init && echo hi > README && git add README && git commit README -m 'README'`; dir } } expect { subject.download }.to raise_error(Berkshelf::CookbookNotFound) end end