diff --git a/spec/monkeypatch.rb b/spec/monkeypatch.rb index 75099e05..5ad86df2 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 017aa3b7..3c9d170f 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