Allow project creation in scope of group for non-admin but group owners
This commit is contained in:
parent
2f22874ba6
commit
c31d48dd25
7 changed files with 62 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue