mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 20:20:59 +08:00
validate category user_id.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user