Add specs for Repository#last_commit_for_path

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-09-29 16:45:16 +03:00
parent 88b1e0ffcd
commit 36d7e18f4a
No known key found for this signature in database
GPG Key ID: 161B5D6A44D3D88A
1 changed files with 6 additions and 0 deletions

View File

@ -12,4 +12,10 @@ describe Repository do
it { should_not include('feature') }
it { should_not include('fix') }
end
describe :last_commit_for_path do
subject { repository.last_commit_for_path(sample_commit.id, '.gitignore').id }
it { should eq('c1acaa58bbcbc3eafe538cb8274ba387047b69f8') }
end
end