fix tests

This commit is contained in:
Dmitriy Zaporozhets 2013-01-28 17:53:01 +02:00
parent 9ad5fbb416
commit f7ade3b682

View file

@ -1,12 +1,13 @@
require 'spec_helper'
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) { Gitlab::Gitolite.new }
before do
gitolite.stub(config: gitolite_config)
Project.stub(find: project)
end
it { should respond_to :set_key }