Commit c5f427b0a499136568bcf3cc738e5f1a8575e358

Authored by Andrey Kumanyaev
Committed by Dmitriy Zaporozhets
1 parent a987f146

save commit

Showing 35 changed files with 399 additions and 0 deletions   Show diff stats
app/views/teams/members/edit.html.haml 0 → 100644
... ... @@ -0,0 +1,2 @@
  1 +%h1 Teams::Members#edit
  2 +%p Find me in app/views/teams/members/edit.html.haml
0 3 \ No newline at end of file
... ...
app/views/teams/members/import.html.haml 0 → 100644
... ... @@ -0,0 +1,17 @@
  1 += render "projects/project_head"
  2 +
  3 +%h3.page_title
  4 + = "Import team from another project"
  5 +%hr
  6 +%p.slead
  7 + Read more about team import #{link_to "here", '#', class: 'vlink'}.
  8 += form_tag apply_import_project_team_members_path(@project), method: 'post' do
  9 + %p.slead Choose project you want to use as team source:
  10 + .padded
  11 + = label_tag :source_project_id, "Project"
  12 + .input= select_tag(:source_project_id, options_from_collection_for_select(current_user.authorized_projects, :id, :name_with_namespace), prompt: "Select project", class: "chosen xxlarge", required: true)
  13 +
  14 + .actions
  15 + = submit_tag 'Import', class: "btn save-btn"
  16 + = link_to "Cancel", project_team_index_path(@project), class: "btn cancel-btn"
  17 +
... ...
spec/controllers/admin/teams_controller_spec.rb 0 → 100644
... ... @@ -0,0 +1,47 @@
  1 +require 'spec_helper'
  2 +
  3 +describe Admin::TeamsController do
  4 +
  5 + describe "GET 'index'" do
  6 + it "returns http success" do
  7 + get 'index'
  8 + response.should be_success
  9 + end
  10 + end
  11 +
  12 + describe "GET 'show'" do
  13 + it "returns http success" do
  14 + get 'show'
  15 + response.should be_success
  16 + end
  17 + end
  18 +
  19 + describe "GET 'create'" do
  20 + it "returns http success" do
  21 + get 'create'
  22 + response.should be_success
  23 + end
  24 + end
  25 +
  26 + describe "GET 'edit'" do
  27 + it "returns http success" do
  28 + get 'edit'
  29 + response.should be_success
  30 + end
  31 + end
  32 +
  33 + describe "GET 'update'" do
  34 + it "returns http success" do
  35 + get 'update'
  36 + response.should be_success
  37 + end
  38 + end
  39 +
  40 + describe "GET 'destroy'" do
  41 + it "returns http success" do
  42 + get 'destroy'
  43 + response.should be_success
  44 + end
  45 + end
  46 +
  47 +end
... ...
spec/controllers/teams/members_controller_spec.rb 0 → 100644
... ... @@ -0,0 +1,47 @@
  1 +require 'spec_helper'
  2 +
  3 +describe Teams::MembersController do
  4 +
  5 + describe "GET 'index'" do
  6 + it "returns http success" do
  7 + get 'index'
  8 + response.should be_success
  9 + end
  10 + end
  11 +
  12 + describe "GET 'new'" do
  13 + it "returns http success" do
  14 + get 'new'
  15 + response.should be_success
  16 + end
  17 + end
  18 +
  19 + describe "GET 'create'" do
  20 + it "returns http success" do
  21 + get 'create'
  22 + response.should be_success
  23 + end
  24 + end
  25 +
  26 + describe "GET 'edit'" do
  27 + it "returns http success" do
  28 + get 'edit'
  29 + response.should be_success
  30 + end
  31 + end
  32 +
  33 + describe "GET 'update'" do
  34 + it "returns http success" do
  35 + get 'update'
  36 + response.should be_success
  37 + end
  38 + end
  39 +
  40 + describe "GET 'destroy'" do
  41 + it "returns http success" do
  42 + get 'destroy'
  43 + response.should be_success
  44 + end
  45 + end
  46 +
  47 +end
... ...
spec/controllers/teams/projects_controller_spec.rb 0 → 100644
... ... @@ -0,0 +1,47 @@
  1 +require 'spec_helper'
  2 +
  3 +describe Teams::ProjectsController do
  4 +
  5 + describe "GET 'index'" do
  6 + it "returns http success" do
  7 + get 'index'
  8 + response.should be_success
  9 + end
  10 + end
  11 +
  12 + describe "GET 'new'" do
  13 + it "returns http success" do
  14 + get 'new'
  15 + response.should be_success
  16 + end
  17 + end
  18 +
  19 + describe "GET 'create'" do
  20 + it "returns http success" do
  21 + get 'create'
  22 + response.should be_success
  23 + end
  24 + end
  25 +
  26 + describe "GET 'edit'" do
  27 + it "returns http success" do
  28 + get 'edit'
  29 + response.should be_success
  30 + end
  31 + end
  32 +
  33 + describe "GET 'update'" do
  34 + it "returns http success" do
  35 + get 'update'
  36 + response.should be_success
  37 + end
  38 + end
  39 +
  40 + describe "GET 'destroy'" do
  41 + it "returns http success" do
  42 + get 'destroy'
  43 + response.should be_success
  44 + end
  45 + end
  46 +
  47 +end
... ...
spec/controllers/teams_controller_spec.rb 0 → 100644
... ... @@ -0,0 +1,54 @@
  1 +require 'spec_helper'
  2 +
  3 +describe TeamsController do
  4 +
  5 + describe "GET 'index'" do
  6 + it "returns http success" do
  7 + get 'index'
  8 + response.should be_success
  9 + end
  10 + end
  11 +
  12 + describe "GET 'show'" do
  13 + it "returns http success" do
  14 + get 'show'
  15 + response.should be_success
  16 + end
  17 + end
  18 +
  19 + describe "GET 'new'" do
  20 + it "returns http success" do
  21 + get 'new'
  22 + response.should be_success
  23 + end
  24 + end
  25 +
  26 + describe "GET 'edit'" do
  27 + it "returns http success" do
  28 + get 'edit'
  29 + response.should be_success
  30 + end
  31 + end
  32 +
  33 + describe "GET 'update'" do
  34 + it "returns http success" do
  35 + get 'update'
  36 + response.should be_success
  37 + end
  38 + end
  39 +
  40 + describe "GET 'create'" do
  41 + it "returns http success" do
  42 + get 'create'
  43 + response.should be_success
  44 + end
  45 + end
  46 +
  47 + describe "GET 'destroy'" do
  48 + it "returns http success" do
  49 + get 'destroy'
  50 + response.should be_success
  51 + end
  52 + end
  53 +
  54 +end
... ...
spec/helpers/admin/teams_helper_spec.rb 0 → 100644
... ... @@ -0,0 +1,15 @@
  1 +require 'spec_helper'
  2 +
  3 +# Specs in this file have access to a helper object that includes
  4 +# the Admin::TeamsHelper. For example:
  5 +#
  6 +# describe Admin::TeamsHelper do
  7 +# describe "string concat" do
  8 +# it "concats two strings with spaces" do
  9 +# helper.concat_strings("this","that").should == "this that"
  10 +# end
  11 +# end
  12 +# end
  13 +describe Admin::TeamsHelper do
  14 + pending "add some examples to (or delete) #{__FILE__}"
  15 +end
... ...
spec/helpers/teams/members_helper_spec.rb 0 → 100644
... ... @@ -0,0 +1,15 @@
  1 +require 'spec_helper'
  2 +
  3 +# Specs in this file have access to a helper object that includes
  4 +# the Teams::MembersHelper. For example:
  5 +#
  6 +# describe Teams::MembersHelper do
  7 +# describe "string concat" do
  8 +# it "concats two strings with spaces" do
  9 +# helper.concat_strings("this","that").should == "this that"
  10 +# end
  11 +# end
  12 +# end
  13 +describe Teams::MembersHelper do
  14 + pending "add some examples to (or delete) #{__FILE__}"
  15 +end
... ...
spec/helpers/teams/projects_helper_spec.rb 0 → 100644
... ... @@ -0,0 +1,15 @@
  1 +require 'spec_helper'
  2 +
  3 +# Specs in this file have access to a helper object that includes
  4 +# the Teams::ProjectsHelper. For example:
  5 +#
  6 +# describe Teams::ProjectsHelper do
  7 +# describe "string concat" do
  8 +# it "concats two strings with spaces" do
  9 +# helper.concat_strings("this","that").should == "this that"
  10 +# end
  11 +# end
  12 +# end
  13 +describe Teams::ProjectsHelper do
  14 + pending "add some examples to (or delete) #{__FILE__}"
  15 +end
... ...
spec/helpers/teams_helper_spec.rb 0 → 100644
... ... @@ -0,0 +1,15 @@
  1 +require 'spec_helper'
  2 +
  3 +# Specs in this file have access to a helper object that includes
  4 +# the TeamsHelper. For example:
  5 +#
  6 +# describe TeamsHelper do
  7 +# describe "string concat" do
  8 +# it "concats two strings with spaces" do
  9 +# helper.concat_strings("this","that").should == "this that"
  10 +# end
  11 +# end
  12 +# end
  13 +describe TeamsHelper do
  14 + pending "add some examples to (or delete) #{__FILE__}"
  15 +end
... ...
spec/views/admin/teams/create.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "teams/create.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/admin/teams/destroy.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "teams/destroy.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/admin/teams/edit.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "teams/edit.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/admin/teams/index.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "teams/index.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/admin/teams/show.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "teams/show.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/admin/teams/update.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "teams/update.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/create.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "teams/create.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/destroy.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "teams/destroy.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/edit.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "teams/edit.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/index.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "teams/index.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/members/create.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "members/create.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/members/destroy.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "members/destroy.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/members/edit.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "members/edit.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/members/index.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "members/index.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/members/new.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "members/new.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/members/update.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "members/update.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/new.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "teams/new.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/projects/create.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "projects/create.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/projects/destroy.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "projects/destroy.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/projects/edit.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "projects/edit.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/projects/index.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "projects/index.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/projects/new.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "projects/new.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/projects/update.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "projects/update.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/show.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "teams/show.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...
spec/views/teams/update.html.haml_spec.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +require 'spec_helper'
  2 +
  3 +describe "teams/update.html.haml" do
  4 + pending "add some examples to (or delete) #{__FILE__}"
  5 +end
... ...