From f7ade3b682a104dca76b0eb4e9a0fbc62cfd9cf7 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 28 Jan 2013 17:53:01 +0200 Subject: [PATCH] fix tests --- spec/lib/gitolite_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/lib/gitolite_spec.rb b/spec/lib/gitolite_spec.rb index df6dc368820..7ba4a633fb1 100644 --- a/spec/lib/gitolite_spec.rb +++ b/spec/lib/gitolite_spec.rb @@ -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 }