fixed test using repo with commits but old factory
This commit is contained in:
parent
3b88636d3c
commit
f536c13355
8 changed files with 10 additions and 19 deletions
|
@ -1,7 +1,7 @@
|
|||
require "spec_helper"
|
||||
|
||||
describe Gitlab::Git::Commit do
|
||||
let(:commit) { create(:project).repository.commit }
|
||||
let(:commit) { create(:project_with_code).repository.commit }
|
||||
|
||||
describe "Commit info" do
|
||||
before do
|
||||
|
@ -45,6 +45,5 @@ describe Gitlab::Git::Commit do
|
|||
it { should respond_to(:commits_since) }
|
||||
it { should respond_to(:commits_between) }
|
||||
it { should respond_to(:commits) }
|
||||
it { should respond_to(:compare) }
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
require "spec_helper"
|
||||
|
||||
describe Gitlab::Git::Repository do
|
||||
let(:project) { create(:project) }
|
||||
let(:repository) { project.repository }
|
||||
let(:repository) { Gitlab::Git::Repository.new('gitlabhq', 'master') }
|
||||
|
||||
describe "Respond to" do
|
||||
subject { repository }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue