debian-mirror-gitlab/spec/lib/gitlab/diff/file_collection/commit_spec.rb

21 lines
450 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe Gitlab::Diff::FileCollection::Commit do
2018-12-05 23:21:45 +05:30
let(:project) { create(:project, :repository) }
it_behaves_like 'diff statistics' do
let(:collection_default_args) do
{ diff_options: {} }
end
2020-10-24 23:57:45 +05:30
2018-12-05 23:21:45 +05:30
let(:diffable) { project.commit }
let(:stub_path) { 'bar/branch-test.txt' }
end
2019-02-15 15:39:39 +05:30
it_behaves_like 'unfoldable diff' do
let(:diffable) { project.commit }
end
2018-12-05 23:21:45 +05:30
end