tests fix

This commit is contained in:
Andrey Kumanyaev 2012-10-09 04:10:16 +04:00
parent df7c52489a
commit a4cd738686
7 changed files with 10 additions and 10 deletions

View file

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