Commit 709b8b61 authored by Shinya Maeda's avatar Shinya Maeda

specs for policies.

parent 4934f607
require 'spec_helper' require 'spec_helper'
describe Gcp::ClusterPolicy, :models do describe Clusters::ClusterPolicy, :models do
set(:project) { create(:project) } let(:cluster) { create(:cluster, :project) }
set(:cluster) { create(:gcp_cluster, project: project) } let(:project) { cluster.project }
let(:user) { create(:user) } let(:user) { create(:user) }
let(:policy) { described_class.new(user, cluster) } let(:policy) { described_class.new(user, cluster) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment