validate category user_id.

This commit is contained in:
Dan Neumann
2013-02-19 21:24:38 -06:00
parent 2fdbf8cbc9
commit 37ca391f50
2 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ require 'spec_helper'
describe Category do
it { should validate_presence_of :user_id }
it { should validate_presence_of :name }
it 'validates uniqueness of name' do