Sha256: 36b7bb0d23dddaca000cb19a58ac1ba659230031fdb9c721c6bf9939d2acc8f8

Contents?: true

Size: 535 Bytes

Versions: 5

Compression:

Stored size: 535 Bytes

Contents

# frozen_string_literal: true

require 'eac_git/local'
require 'eac_git/local/commit'
require 'tmpdir'

RSpec.describe EacGit::Local, '#dirty_files', :git do
  let(:repo) { stubbed_git_local_repo }
  let(:dirty_files_paths) { Set.new(repo.dirty_files.lazy.map(&:path).map(&:to_path)) }

  before do
    repo.file('a_file').touch
    repo.directory('b_directory').create.file('c_file').touch
    repo.file('d file').touch
  end

  it do
    expect(dirty_files_paths).to eq(Set.new(['a_file', 'b_directory/c_file', 'd file']))
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
eac_tools-0.86.5 sub/eac_git/spec/lib/eac_git/local/dirty_files_spec.rb
eac_tools-0.86.4 sub/eac_git/spec/lib/eac_git/local/dirty_files_spec.rb
eac_tools-0.86.3 sub/eac_git/spec/lib/eac_git/local/dirty_files_spec.rb
eac_tools-0.86.2 sub/eac_git/spec/lib/eac_git/local/dirty_files_spec.rb
eac_tools-0.84.2 sub/eac_git/spec/lib/eac_git/local/dirty_files_spec.rb