save generated files
This commit is contained in:
parent
9804b7df68
commit
cca9935970
11 changed files with 91 additions and 1 deletions
3
app/assets/javascripts/admin/teams/members.js.coffee
Normal file
3
app/assets/javascripts/admin/teams/members.js.coffee
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
3
app/assets/stylesheets/admin/teams/members.css.scss
Normal file
3
app/assets/stylesheets/admin/teams/members.css.scss
Normal file
|
@ -0,0 +1,3 @@
|
|||
// Place all the styles related to the Admin::Teams::Members controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
5
app/helpers/admin/teams/members_helper.rb
Normal file
5
app/helpers/admin/teams/members_helper.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
module Admin::Teams::MembersHelper
|
||||
def member_since(team, member)
|
||||
team.user_team_user_relationships.find_by_user_id(member).created_at
|
||||
end
|
||||
end
|
|
@ -1,7 +1,6 @@
|
|||
require 'sidekiq/web'
|
||||
|
||||
Gitlab::Application.routes.draw do
|
||||
|
||||
#
|
||||
# Search
|
||||
#
|
||||
|
|
40
spec/controllers/admin/teams/members_controller_spec.rb
Normal file
40
spec/controllers/admin/teams/members_controller_spec.rb
Normal file
|
@ -0,0 +1,40 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Admin::Teams::MembersController do
|
||||
|
||||
describe "GET 'new'" do
|
||||
it "returns http success" do
|
||||
get 'new'
|
||||
response.should be_success
|
||||
end
|
||||
end
|
||||
|
||||
describe "GET 'create'" do
|
||||
it "returns http success" do
|
||||
get 'create'
|
||||
response.should be_success
|
||||
end
|
||||
end
|
||||
|
||||
describe "GET 'edit'" do
|
||||
it "returns http success" do
|
||||
get 'edit'
|
||||
response.should be_success
|
||||
end
|
||||
end
|
||||
|
||||
describe "GET 'update'" do
|
||||
it "returns http success" do
|
||||
get 'update'
|
||||
response.should be_success
|
||||
end
|
||||
end
|
||||
|
||||
describe "GET 'destroy'" do
|
||||
it "returns http success" do
|
||||
get 'destroy'
|
||||
response.should be_success
|
||||
end
|
||||
end
|
||||
|
||||
end
|
15
spec/helpers/admin/teams/members_helper_spec.rb
Normal file
15
spec/helpers/admin/teams/members_helper_spec.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
require 'spec_helper'
|
||||
|
||||
# Specs in this file have access to a helper object that includes
|
||||
# the Admin::Teams::MembersHelper. For example:
|
||||
#
|
||||
# describe Admin::Teams::MembersHelper do
|
||||
# describe "string concat" do
|
||||
# it "concats two strings with spaces" do
|
||||
# helper.concat_strings("this","that").should == "this that"
|
||||
# end
|
||||
# end
|
||||
# end
|
||||
describe Admin::Teams::MembersHelper do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
5
spec/views/admin/teams/members/create.html.haml_spec.rb
Normal file
5
spec/views/admin/teams/members/create.html.haml_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe "members/create.html.haml" do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
5
spec/views/admin/teams/members/destroy.html.haml_spec.rb
Normal file
5
spec/views/admin/teams/members/destroy.html.haml_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe "members/destroy.html.haml" do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
5
spec/views/admin/teams/members/edit.html.haml_spec.rb
Normal file
5
spec/views/admin/teams/members/edit.html.haml_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe "members/edit.html.haml" do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
5
spec/views/admin/teams/members/new.html.haml_spec.rb
Normal file
5
spec/views/admin/teams/members/new.html.haml_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe "members/new.html.haml" do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
5
spec/views/admin/teams/members/update.html.haml_spec.rb
Normal file
5
spec/views/admin/teams/members/update.html.haml_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe "members/update.html.haml" do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
Loading…
Reference in a new issue