Fix spec broken by bde19c0
This commit is contained in:
parent
bde19c061a
commit
8f3b1d6ea4
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue