From 46d212832f3d0a4668732a3434e6732c69f6b571 Mon Sep 17 00:00:00 2001 From: miks Date: Fri, 30 Dec 2011 15:14:14 +0200 Subject: Spec updates --- spec/monkeypatch.rb | 10 ++++++++++ spec/requests/projects_deploy_keys_spec.rb | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/monkeypatch.rb b/spec/monkeypatch.rb index 75099e0553a..5ad86df25fe 100644 --- a/spec/monkeypatch.rb +++ b/spec/monkeypatch.rb @@ -24,6 +24,16 @@ class Key end end +class DeployKey + def update_repository + true + end + + def repository_delete_key + true + end +end + class UsersProject def update_repository true diff --git a/spec/requests/projects_deploy_keys_spec.rb b/spec/requests/projects_deploy_keys_spec.rb index 017aa3b732b..3c9d170fd5c 100644 --- a/spec/requests/projects_deploy_keys_spec.rb +++ b/spec/requests/projects_deploy_keys_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe "DeployKeys" do +describe "Projects", "DeployKeys" do let(:project) { Factory :project } before do -- cgit v1.2.1