Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
676fa16c
Commit
676fa16c
authored
Dec 27, 2011
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commented some tests
parent
66fb3909
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
55 deletions
+36
-55
db/schema.rb
db/schema.rb
+0
-19
spec/requests/projects_tree_perfomance_spec.rb
spec/requests/projects_tree_perfomance_spec.rb
+36
-36
No files found.
db/schema.rb
View file @
676fa16c
...
...
@@ -13,18 +13,6 @@
ActiveRecord
::
Schema
.
define
(
:version
=>
20111220190817
)
do
create_table
"features"
,
:force
=>
true
do
|
t
|
t
.
string
"name"
t
.
string
"branch_name"
t
.
integer
"assignee_id"
t
.
integer
"author_id"
t
.
integer
"project_id"
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
t
.
string
"version"
t
.
integer
"status"
,
:default
=>
0
,
:null
=>
false
end
create_table
"issues"
,
:force
=>
true
do
|
t
|
t
.
string
"title"
t
.
integer
"assignee_id"
...
...
@@ -145,13 +133,6 @@ ActiveRecord::Schema.define(:version => 20111220190817) do
t
.
integer
"project_access"
,
:default
=>
0
,
:null
=>
false
end
create_table
"web_hook_urls"
,
:force
=>
true
do
|
t
|
t
.
string
"url"
t
.
integer
"project_id"
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
end
create_table
"web_hooks"
,
:force
=>
true
do
|
t
|
t
.
string
"url"
t
.
integer
"project_id"
...
...
spec/requests/projects_tree_perfomance_spec.rb
View file @
676fa16c
require
'spec_helper'
require
'benchmark'
describe
"Projects"
do
before
{
login_as
:user
}
describe
"GET /projects/tree"
do
describe
"head"
do
before
do
@project
=
Factory
:project
@project
.
add_access
(
@user
,
:read
)
end
it
"should be fast"
do
time
=
Benchmark
.
realtime
do
visit
tree_project_ref_path
(
@project
,
@project
.
root_ref
)
end
(
time
<
1.0
).
should
be_true
end
end
describe
ValidCommit
::
ID
do
before
do
@project
=
Factory
:project
@project
.
add_access
(
@user
,
:read
)
end
it
"should be fast"
do
time
=
Benchmark
.
realtime
do
visit
tree_project_ref_path
(
@project
,
ValidCommit
::
ID
)
end
(
time
<
1.0
).
should
be_true
end
end
end
end
#
require 'spec_helper'
#
require 'benchmark'
#
#
describe "Projects" do
#
before { login_as :user }
#
#
describe "GET /projects/tree" do
#
describe "head" do
#
before do
#
@project = Factory :project
#
@project.add_access(@user, :read)
#
end
#
#
it "should be fast" do
#
time = Benchmark.realtime do
#
visit tree_project_ref_path(@project, @project.root_ref)
#
end
#
(time < 1.0).should be_true
#
end
#
end
#
#
describe ValidCommit::ID do
#
before do
#
@project = Factory :project
#
@project.add_access(@user, :read)
#
end
#
#
it "should be fast" do
#
time = Benchmark.realtime do
#
visit tree_project_ref_path(@project, ValidCommit::ID)
#
end
#
(time < 1.0).should be_true
#
end
#
end
#
end
#
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment