fix tests
This commit is contained in:
parent
9ad5fbb416
commit
f7ade3b682
1 changed files with 2 additions and 1 deletions
|
@ -1,12 +1,13 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe Gitlab::Gitolite do
|
describe Gitlab::Gitolite do
|
||||||
let(:project) { double('Project', path: 'diaspora') }
|
let(:project) { double('Project', id: 7, path: 'diaspora') }
|
||||||
let(:gitolite_config) { double('Gitlab::GitoliteConfig') }
|
let(:gitolite_config) { double('Gitlab::GitoliteConfig') }
|
||||||
let(:gitolite) { Gitlab::Gitolite.new }
|
let(:gitolite) { Gitlab::Gitolite.new }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
gitolite.stub(config: gitolite_config)
|
gitolite.stub(config: gitolite_config)
|
||||||
|
Project.stub(find: project)
|
||||||
end
|
end
|
||||||
|
|
||||||
it { should respond_to :set_key }
|
it { should respond_to :set_key }
|
||||||
|
|
Loading…
Reference in a new issue