Skip to content
This repository has been archived by the owner on Oct 26, 2018. It is now read-only.

Commit

Permalink
getting tests to pass for my new strict master, runcoderun
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Croak committed Sep 11, 2008
1 parent 4d0bbaa commit 6d5627d
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 19 deletions.
23 changes: 5 additions & 18 deletions Rakefile
@@ -1,22 +1,9 @@
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

desc 'Default: run unit tests.'
task :default => :test

desc 'Test the sortable plugin.'
Rake::TestTask.new(:test) do |t|
test_files_pattern = 'test/rails_root/test/{unit,functional,other}/**/*_test.rb'
Rake::TestTask.new do |t|
t.libs << 'lib'
t.pattern = 'test/rails_root/test/**/*_test.rb'
t.verbose = true
end

desc 'Generate documentation for the sortable plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Sortable'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
t.pattern = test_files_pattern
t.verbose = false
end
48 changes: 48 additions & 0 deletions test/rails_root/log/test.log
Expand Up @@ -3640,3 +3640,51 @@ Processing UsersController#index (for 0.0.0.0 at 2008-09-10 14:41:45) [GET]
Rendering template within layouts/users
Rendering users/index
Completed in 0.00390 (256 reqs/sec) | Rendering: 0.00236 (60%) | DB: 0.00186 (47%) | 200 OK [http://test.host/users?order=descending&sort=email]
User Create (0.000470) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES(NULL, '2008-09-11 00:40:06', NULL, 1, 'email1@example.com', '2008-09-11 00:40:06')
User Create (0.000203) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES(NULL, '2008-09-11 00:40:06', NULL, 2, 'email2@example.com', '2008-09-11 00:40:06')
User Load (0.000718) SELECT * FROM "users" 


Processing UsersController#index (for 0.0.0.0 at 2008-09-10 20:40:06) [GET]
Session ID:
Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
User Load (0.001190) SELECT * FROM "users" ORDER BY age asc
Rendering template within layouts/users
Rendering users/index
Completed in 0.09916 (10 reqs/sec) | Rendering: 0.09330 (94%) | DB: 0.00258 (2%) | 200 OK [http://test.host/users?order=ascending&sort=age]
User Create (0.000516) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES(NULL, '2008-09-11 00:40:06', NULL, 3, 'email3@example.com', '2008-09-11 00:40:06')
User Create (0.000173) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES(NULL, '2008-09-11 00:40:06', NULL, 4, 'email4@example.com', '2008-09-11 00:40:06')
User Load (0.000662) SELECT * FROM "users" 


Processing UsersController#index (for 0.0.0.0 at 2008-09-10 20:40:06) [GET]
Session ID:
Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
User Load (0.001130) SELECT * FROM "users" ORDER BY age desc
Rendering template within layouts/users
Rendering users/index
Completed in 0.00472 (211 reqs/sec) | Rendering: 0.00291 (61%) | DB: 0.00248 (52%) | 200 OK [http://test.host/users?order=descending&sort=age]
User Create (0.000344) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES(NULL, '2008-09-11 00:40:06', NULL, 5, 'email5@example.com', '2008-09-11 00:40:06')
User Create (0.000109) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES(NULL, '2008-09-11 00:40:06', NULL, 6, 'email6@example.com', '2008-09-11 00:40:06')
User Load (0.000468) SELECT * FROM "users" 


Processing UsersController#index (for 0.0.0.0 at 2008-09-10 20:40:06) [GET]
Session ID:
Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
User Load (0.000884) SELECT * FROM "users" ORDER BY users.email asc
Rendering template within layouts/users
Rendering users/index
Completed in 0.00373 (267 reqs/sec) | Rendering: 0.00227 (60%) | DB: 0.00181 (48%) | 200 OK [http://test.host/users?order=ascending&sort=email]
User Create (0.000402) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES(NULL, '2008-09-11 00:40:06', NULL, 7, 'email7@example.com', '2008-09-11 00:40:06')
User Create (0.000115) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES(NULL, '2008-09-11 00:40:06', NULL, 8, 'email8@example.com', '2008-09-11 00:40:06')
User Load (0.000516) SELECT * FROM "users" 


Processing UsersController#index (for 0.0.0.0 at 2008-09-10 20:40:06) [GET]
Session ID:
Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
User Load (0.000935) SELECT * FROM "users" ORDER BY users.email desc
Rendering template within layouts/users
Rendering users/index
Completed in 0.00381 (262 reqs/sec) | Rendering: 0.00233 (61%) | DB: 0.00197 (51%) | 200 OK [http://test.host/users?order=descending&sort=email]
2 changes: 1 addition & 1 deletion test/rails_root/test/functional/users_controller_test.rb
@@ -1,4 +1,4 @@
require 'test_helper'
require File.dirname(__FILE__) + '/../test_helper'

class UsersControllerTest < ActionController::TestCase

Expand Down

0 comments on commit 6d5627d

Please sign in to comment.