Fix spec broken by bde19c0

This commit is contained in:
Robert Speicher 2012-09-06 17:05:23 -04:00
parent bde19c061a
commit 8f3b1d6ea4

View file

@ -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