diff options
-rw-r--r-- | spec/models/users_project_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/users_project_spec.rb b/spec/models/users_project_spec.rb index 3197ba6eb6b..33cb358e7bd 100644 --- a/spec/models/users_project_spec.rb +++ b/spec/models/users_project_spec.rb @@ -10,7 +10,7 @@ describe UsersProject do let!(:users_project) { create(:users_project) } it { should validate_presence_of(:user_id) } - it { should validate_uniqueness_of(:user_id).scoped_to(:project_id) } + it { should validate_uniqueness_of(:user_id).scoped_to(:project_id).with_message(/already exists/) } it { should validate_presence_of(:project_id) } end |