tests fix
This commit is contained in:
parent
df7c52489a
commit
a4cd738686
7 changed files with 10 additions and 10 deletions
|
@ -13,10 +13,10 @@ describe UsersProject do
|
|||
describe "Validation" do
|
||||
let!(:users_project) { create(:users_project) }
|
||||
|
||||
it { should validate_presence_of(:user_id) }
|
||||
it { should validate_presence_of(:user) }
|
||||
it { should validate_uniqueness_of(:user_id).scoped_to(:project_id).with_message(/already exists/) }
|
||||
|
||||
it { should validate_presence_of(:project_id) }
|
||||
it { should validate_presence_of(:project) }
|
||||
end
|
||||
|
||||
describe "Delegate methods" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue