diff --git a/spec/policies/supervisor_policy_spec.rb b/spec/policies/supervisor_policy_spec.rb index e2a234917f..10580a6a47 100644 --- a/spec/policies/supervisor_policy_spec.rb +++ b/spec/policies/supervisor_policy_spec.rb @@ -74,7 +74,7 @@ end end context "different org" do - let(:record) { build_stubbed(:supervisor, casa_org: build_stubbed(:casa_org)) } + let(:record) { build_stubbed(:supervisor, casa_org: different_organization) } context "when user is admin" do it "cannot edit a supervisor" do is_expected.not_to permit(casa_admin, record)