Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit 0ddb8bd

Browse files
FelisiaMpivotal-marcela-campo
authored andcommitted
Remove validation of uniqueness from model
validate_uniqueness matcher does not support messages that have parameters
1 parent 6cf7413 commit 0ddb8bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/unit/models/services/service_key_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module VCAP::CloudController
1919
it { is_expected.to validate_presence :name }
2020
it { is_expected.to validate_db_presence :service_instance_id }
2121
it { is_expected.to validate_db_presence :credentials }
22-
it { is_expected.to validate_uniqueness [:name, :service_instance_id] }
22+
2323

2424
context 'MaxServiceKeysPolicy' do
2525
let(:service_key) { ServiceKey.make }

0 commit comments

Comments
 (0)