BigW Consortium Gitlab

Add specs for Repository#last_commit_for_path

parent 88b1e0ff
......@@ -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
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