summaryrefslogtreecommitdiff
path: root/spec/models/namespace_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/namespace_spec.rb')
-rw-r--r--spec/models/namespace_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/models/namespace_spec.rb b/spec/models/namespace_spec.rb
index c2509d21f3f..16ab1b617ff 100644
--- a/spec/models/namespace_spec.rb
+++ b/spec/models/namespace_spec.rb
@@ -22,4 +22,14 @@ describe Namespace do
it { should validate_presence_of :path }
it { should validate_uniqueness_of(:path) }
it { should validate_presence_of :owner }
+
+ describe "Mass assignment" do
+ it { should allow_mass_assignment_of(:name) }
+ it { should allow_mass_assignment_of(:path) }
+ end
+
+ describe "Respond to" do
+ it { should respond_to(:human_name) }
+ it { should respond_to(:to_param) }
+ end
end