Sha256: 590d04f6a37f309a9d01c1d4a120e990ac2f04f1c0cda88bdd3e64b156d31028

Contents?: true

Size: 621 Bytes

Versions: 12

Compression:

Stored size: 621 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'integration/shared'

describe GitStats::GitData::Repo do
  include_context "shared"

  it 'should gather all files in repo' do
    repo.files.map(&:filename).should =~ %w(long_second.haml  long.txt  second.txt  test2.rb  test.rb  test.txt)
  end

  it 'should retrieve correct file content for old file' do
    repo.commits.by_sha('c87ecf9').files.by_filename('test.txt').content.should == "bb



test
"
  end

  it 'should retrieve correct file content for the newest file' do
    file = repo.files.by_filename('test.txt')
    file.content.should == "bb

testtest

test
"
  end


end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
git_stats-1.0.11 spec/integration/file_spec.rb
git_stats-1.0.10 spec/integration/file_spec.rb
git_stats-1.0.9 spec/integration/file_spec.rb
git_stats-1.0.8 spec/integration/file_spec.rb
git_stats-1.0.7 spec/integration/file_spec.rb
git_stats-1.0.6 spec/integration/file_spec.rb
git_stats-1.0.5 spec/integration/file_spec.rb
git_stats-1.0.4 spec/integration/file_spec.rb
git_stats-1.0.3 spec/integration/file_spec.rb
git_stats-1.0.2 spec/integration/file_spec.rb
git_stats-1.0.1 spec/integration/file_spec.rb
git_stats-1.0.0 spec/integration/file_spec.rb