diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-02-16 00:02:33 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-02-16 00:02:33 +0400 |
commit | 37224dc9c1ee80ba9030b616e2bc87bd96919e09 (patch) | |
tree | 5291abadd8748ea47685c326df4b137d0d6a2194 /spec | |
parent | 3a9e5a9357b6b0cac2acdefa203136c9b572e102 (diff) |
ProtectedBranches model, Master permission for repo\n Allow push to protected branch for masters only
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/project_spec.rb | 23 | ||||
-rw-r--r-- | spec/models/protected_branch_spec.rb | 16 |
2 files changed, 29 insertions, 10 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 68bc82de898..437b139752a 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -290,15 +290,18 @@ end # # Table name: projects # -# id :integer not null, primary key -# name :string(255) -# path :string(255) -# description :text -# created_at :datetime -# updated_at :datetime -# private_flag :boolean default(TRUE), not null -# code :string(255) -# owner_id :integer -# default_branch :string(255) default("master"), not null +# id :integer not null, primary key +# name :string(255) +# path :string(255) +# description :text +# created_at :datetime +# updated_at :datetime +# private_flag :boolean default(TRUE), not null +# code :string(255) +# owner_id :integer +# default_branch :string(255) default("master"), not null +# issues_enabled :boolean default(TRUE), not null +# wall_enabled :boolean default(TRUE), not null +# merge_requests_enabled :boolean default(TRUE), not null # diff --git a/spec/models/protected_branch_spec.rb b/spec/models/protected_branch_spec.rb new file mode 100644 index 00000000000..a0b0032a558 --- /dev/null +++ b/spec/models/protected_branch_spec.rb @@ -0,0 +1,16 @@ +# == Schema Information +# +# Table name: protected_branches +# +# id :integer not null, primary key +# project_id :integer not null +# name :string(255) not null +# created_at :datetime not null +# updated_at :datetime not null +# + +require 'spec_helper' + +describe ProtectedBranch do + pending "add some examples to (or delete) #{__FILE__}" +end |