summaryrefslogtreecommitdiff
path: root/spec/models/namespace_spec.rb
blob: f481363f90daf134591c1cd6ca57cd6db943b5e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require 'spec_helper'

describe Namespace do
  let!(:namespace) { create(:namespace) }

  it { should have_many :projects }
  it { should validate_presence_of :name }
  it { should validate_uniqueness_of(:name) }
  it { should validate_presence_of :path }
  it { should validate_uniqueness_of(:path) }
  it { should validate_presence_of :owner }
end