Commit 8f3b1d6ea4c72665e1b0ffbc554727595cbe60b0

Authored by Robert Speicher
1 parent bde19c06

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 10 let!(:users_project) { create(:users_project) }
11 11  
12 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 15 it { should validate_presence_of(:project_id) }
16 16 end
... ...