diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-22 22:41:16 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-22 22:41:26 +0300 |
commit | 71214bee755028946ff12748b8d7acbfef62d18d (patch) | |
tree | 780d8e9fafa64ee7ab84f23dd6782cdb78807723 /spec/models/namespace_spec.rb | |
parent | e29ccece332e57c9fb6c532a3680e3b457e3a301 (diff) | |
download | gitlab-ce-71214bee755028946ff12748b8d7acbfef62d18d.tar.gz |
Move directory with project. Fixed all related path methods to use namespace
Diffstat (limited to 'spec/models/namespace_spec.rb')
-rw-r--r-- | spec/models/namespace_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/models/namespace_spec.rb b/spec/models/namespace_spec.rb new file mode 100644 index 00000000000..ce97d01a116 --- /dev/null +++ b/spec/models/namespace_spec.rb @@ -0,0 +1,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 :code } + it { should validate_uniqueness_of(:code) } + it { should validate_presence_of :owner } +end |