Commit 676fa16cebc6d6773c48a1af88b2316d175c31f2
1 parent
66fb3909
Exists in
master
and in
4 other branches
commented some tests
Showing
2 changed files
with
36 additions
and
55 deletions
Show diff stats
db/schema.rb
... | ... | @@ -13,18 +13,6 @@ |
13 | 13 | |
14 | 14 | ActiveRecord::Schema.define(:version => 20111220190817) do |
15 | 15 | |
16 | - create_table "features", :force => true do |t| | |
17 | - t.string "name" | |
18 | - t.string "branch_name" | |
19 | - t.integer "assignee_id" | |
20 | - t.integer "author_id" | |
21 | - t.integer "project_id" | |
22 | - t.datetime "created_at" | |
23 | - t.datetime "updated_at" | |
24 | - t.string "version" | |
25 | - t.integer "status", :default => 0, :null => false | |
26 | - end | |
27 | - | |
28 | 16 | create_table "issues", :force => true do |t| |
29 | 17 | t.string "title" |
30 | 18 | t.integer "assignee_id" |
... | ... | @@ -145,13 +133,6 @@ ActiveRecord::Schema.define(:version => 20111220190817) do |
145 | 133 | t.integer "project_access", :default => 0, :null => false |
146 | 134 | end |
147 | 135 | |
148 | - create_table "web_hook_urls", :force => true do |t| | |
149 | - t.string "url" | |
150 | - t.integer "project_id" | |
151 | - t.datetime "created_at" | |
152 | - t.datetime "updated_at" | |
153 | - end | |
154 | - | |
155 | 136 | create_table "web_hooks", :force => true do |t| |
156 | 137 | t.string "url" |
157 | 138 | t.integer "project_id" | ... | ... |
spec/requests/projects_tree_perfomance_spec.rb
1 | -require 'spec_helper' | |
2 | -require 'benchmark' | |
3 | - | |
4 | -describe "Projects" do | |
5 | - before { login_as :user } | |
6 | - | |
7 | - describe "GET /projects/tree" do | |
8 | - describe "head" do | |
9 | - before do | |
10 | - @project = Factory :project | |
11 | - @project.add_access(@user, :read) | |
12 | - end | |
13 | - | |
14 | - it "should be fast" do | |
15 | - time = Benchmark.realtime do | |
16 | - visit tree_project_ref_path(@project, @project.root_ref) | |
17 | - end | |
18 | - (time < 1.0).should be_true | |
19 | - end | |
20 | - end | |
21 | - | |
22 | - describe ValidCommit::ID do | |
23 | - before do | |
24 | - @project = Factory :project | |
25 | - @project.add_access(@user, :read) | |
26 | - end | |
27 | - | |
28 | - it "should be fast" do | |
29 | - time = Benchmark.realtime do | |
30 | - visit tree_project_ref_path(@project, ValidCommit::ID) | |
31 | - end | |
32 | - (time < 1.0).should be_true | |
33 | - end | |
34 | - end | |
35 | - end | |
36 | -end | |
1 | +#require 'spec_helper' | |
2 | +#require 'benchmark' | |
3 | +# | |
4 | +#describe "Projects" do | |
5 | +# before { login_as :user } | |
6 | +# | |
7 | +# describe "GET /projects/tree" do | |
8 | +# describe "head" do | |
9 | +# before do | |
10 | +# @project = Factory :project | |
11 | +# @project.add_access(@user, :read) | |
12 | +# end | |
13 | +# | |
14 | +# it "should be fast" do | |
15 | +# time = Benchmark.realtime do | |
16 | +# visit tree_project_ref_path(@project, @project.root_ref) | |
17 | +# end | |
18 | +# (time < 1.0).should be_true | |
19 | +# end | |
20 | +# end | |
21 | +# | |
22 | +# describe ValidCommit::ID do | |
23 | +# before do | |
24 | +# @project = Factory :project | |
25 | +# @project.add_access(@user, :read) | |
26 | +# end | |
27 | +# | |
28 | +# it "should be fast" do | |
29 | +# time = Benchmark.realtime do | |
30 | +# visit tree_project_ref_path(@project, ValidCommit::ID) | |
31 | +# end | |
32 | +# (time < 1.0).should be_true | |
33 | +# end | |
34 | +# end | |
35 | +# end | |
36 | +#end | ... | ... |