diff options
author | Valery Sizov <vsv2711@gmail.com> | 2011-12-28 01:49:16 +0400 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2011-12-28 01:49:16 +0400 |
commit | 676fa16cebc6d6773c48a1af88b2316d175c31f2 (patch) | |
tree | 8dc89bef1cc10b58cde2615b068e35c359fe3f73 /spec | |
parent | 66fb3909a564d2e7905f5b720fd55ea61286605e (diff) |
commented some tests
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/projects_tree_perfomance_spec.rb | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/spec/requests/projects_tree_perfomance_spec.rb b/spec/requests/projects_tree_perfomance_spec.rb index 93876354416..a97b0b6bb12 100644 --- a/spec/requests/projects_tree_perfomance_spec.rb +++ b/spec/requests/projects_tree_perfomance_spec.rb @@ -1,36 +1,36 @@ -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 |