commented some tests
This commit is contained in:
parent
66fb3909a5
commit
676fa16ceb
2 changed files with 36 additions and 55 deletions
19
db/schema.rb
19
db/schema.rb
|
@ -13,18 +13,6 @@
|
||||||
|
|
||||||
ActiveRecord::Schema.define(:version => 20111220190817) do
|
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|
|
create_table "issues", :force => true do |t|
|
||||||
t.string "title"
|
t.string "title"
|
||||||
t.integer "assignee_id"
|
t.integer "assignee_id"
|
||||||
|
@ -145,13 +133,6 @@ ActiveRecord::Schema.define(:version => 20111220190817) do
|
||||||
t.integer "project_access", :default => 0, :null => false
|
t.integer "project_access", :default => 0, :null => false
|
||||||
end
|
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|
|
create_table "web_hooks", :force => true do |t|
|
||||||
t.string "url"
|
t.string "url"
|
||||||
t.integer "project_id"
|
t.integer "project_id"
|
||||||
|
|
|
@ -1,36 +1,36 @@
|
||||||
require 'spec_helper'
|
#require 'spec_helper'
|
||||||
require 'benchmark'
|
#require 'benchmark'
|
||||||
|
#
|
||||||
describe "Projects" do
|
#describe "Projects" do
|
||||||
before { login_as :user }
|
# before { login_as :user }
|
||||||
|
#
|
||||||
describe "GET /projects/tree" do
|
# describe "GET /projects/tree" do
|
||||||
describe "head" do
|
# describe "head" do
|
||||||
before do
|
# before do
|
||||||
@project = Factory :project
|
# @project = Factory :project
|
||||||
@project.add_access(@user, :read)
|
# @project.add_access(@user, :read)
|
||||||
end
|
# end
|
||||||
|
#
|
||||||
it "should be fast" do
|
# it "should be fast" do
|
||||||
time = Benchmark.realtime do
|
# time = Benchmark.realtime do
|
||||||
visit tree_project_ref_path(@project, @project.root_ref)
|
# visit tree_project_ref_path(@project, @project.root_ref)
|
||||||
end
|
# end
|
||||||
(time < 1.0).should be_true
|
# (time < 1.0).should be_true
|
||||||
end
|
# end
|
||||||
end
|
# end
|
||||||
|
#
|
||||||
describe ValidCommit::ID do
|
# describe ValidCommit::ID do
|
||||||
before do
|
# before do
|
||||||
@project = Factory :project
|
# @project = Factory :project
|
||||||
@project.add_access(@user, :read)
|
# @project.add_access(@user, :read)
|
||||||
end
|
# end
|
||||||
|
#
|
||||||
it "should be fast" do
|
# it "should be fast" do
|
||||||
time = Benchmark.realtime do
|
# time = Benchmark.realtime do
|
||||||
visit tree_project_ref_path(@project, ValidCommit::ID)
|
# visit tree_project_ref_path(@project, ValidCommit::ID)
|
||||||
end
|
# end
|
||||||
(time < 1.0).should be_true
|
# (time < 1.0).should be_true
|
||||||
end
|
# end
|
||||||
end
|
# end
|
||||||
end
|
# end
|
||||||
end
|
#end
|
||||||
|
|
Loading…
Add table
Reference in a new issue