gitlab-org--gitlab-foss/spec/lib/gitlab/file_finder_spec.rb
2018-06-04 11:41:37 +00:00

13 lines
377 B
Ruby

require 'spec_helper'
describe Gitlab::FileFinder do
describe '#find' do
let(:project) { create(:project, :public, :repository) }
it_behaves_like 'file finder' do
subject { described_class.new(project, project.default_branch) }
let(:expected_file_by_name) { 'files/images/wm.svg' }
let(:expected_file_by_content) { 'CHANGELOG' }
end
end
end