Commit 8f3b1d6ea4c72665e1b0ffbc554727595cbe60b0
1 parent
bde19c06
Exists in
master
and in
4 other branches
Fix spec broken by bde19c0
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
spec/models/users_project_spec.rb
@@ -10,7 +10,7 @@ describe UsersProject do | @@ -10,7 +10,7 @@ describe UsersProject do | ||
10 | let!(:users_project) { create(:users_project) } | 10 | let!(:users_project) { create(:users_project) } |
11 | 11 | ||
12 | it { should validate_presence_of(:user_id) } | 12 | it { should validate_presence_of(:user_id) } |
13 | - it { should validate_uniqueness_of(:user_id).scoped_to(:project_id) } | 13 | + it { should validate_uniqueness_of(:user_id).scoped_to(:project_id).with_message(/already exists/) } |
14 | 14 | ||
15 | it { should validate_presence_of(:project_id) } | 15 | it { should validate_presence_of(:project_id) } |
16 | end | 16 | end |