spec/dockly/util/git_spec.rb in dockly-3.0.5 vs spec/dockly/util/git_spec.rb in dockly-3.1.0

- old
+ new

@@ -1,23 +1,16 @@ require 'spec_helper' describe Dockly::Util::Git do describe '#repo' do it 'returns the repo for the current directory' do - expect(subject.repo.workdir).to eq(File.expand_path('.') + '/') + expect(subject.repo.git_work_tree).to eq(File.expand_path('.')) end end describe '#sha' do - it 'returns a shortened sha for the head object' do - expect(subject.sha).to eq(`git rev-parse --short HEAD`[0..6]) - end - end - - describe '#ls_files' do - it 'returns an Array of the files for the given OID' do - expect(subject.ls_files(subject.sha).map { |hash| hash[:name] }.sort) - .to eq(`git ls-files`.split("\n").sort) + it 'returns a sha for the head object' do + expect(subject.sha).to eq(`git rev-parse HEAD`.chomp) end end describe '#archive' do let(:io) { StringIO.new }