summaryrefslogtreecommitdiff
path: root/spec/policies
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-10-31 00:29:48 +0900
committerShinya Maeda <shinya@gitlab.com>2017-10-31 00:29:48 +0900
commit709b8b6186b06372bf9bfebe9d36a0fea9226a1b (patch)
tree89cc8a8b0f6b9a0c06ce53fd30a3bccad85c5d30 /spec/policies
parent4934f6078b12072fd62f8065a1b25d961aa2d825 (diff)
downloadgitlab-ce-709b8b6186b06372bf9bfebe9d36a0fea9226a1b.tar.gz
specs for policies.
Diffstat (limited to 'spec/policies')
-rw-r--r--spec/policies/clusters/cluster_policy_spec.rb (renamed from spec/policies/gcp/cluster_policy_spec.rb)6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/policies/gcp/cluster_policy_spec.rb b/spec/policies/clusters/cluster_policy_spec.rb
index e213aa3d557..4207f42b07f 100644
--- a/spec/policies/gcp/cluster_policy_spec.rb
+++ b/spec/policies/clusters/cluster_policy_spec.rb
@@ -1,8 +1,8 @@
require 'spec_helper'
-describe Gcp::ClusterPolicy, :models do
- set(:project) { create(:project) }
- set(:cluster) { create(:gcp_cluster, project: project) }
+describe Clusters::ClusterPolicy, :models do
+ let(:cluster) { create(:cluster, :project) }
+ let(:project) { cluster.project }
let(:user) { create(:user) }
let(:policy) { described_class.new(user, cluster) }