Commit 36d7e18f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add specs for Repository#last_commit_for_path

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 88b1e0ff
...@@ -12,4 +12,10 @@ describe Repository do ...@@ -12,4 +12,10 @@ describe Repository do
it { should_not include('feature') } it { should_not include('feature') }
it { should_not include('fix') } it { should_not include('fix') }
end end
describe :last_commit_for_path do
subject { repository.last_commit_for_path(sample_commit.id, '.gitignore').id }
it { should eq('c1acaa58bbcbc3eafe538cb8274ba387047b69f8') }
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment