diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-09-07 01:05:23 +0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-09-07 01:05:23 +0400 |
commit | 8f3b1d6ea4c72665e1b0ffbc554727595cbe60b0 (patch) | |
tree | 23dba221c0507b66e95562c066f9f33b4e915375 | |
parent | bde19c061a73a7756cad4ba02e52187b1eb22fc5 (diff) |
Fix spec broken by bde19c0
-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 |