Browse files

alguns fix

  • Loading branch information...
1 parent afc473d commit e83377d2cf979b999f9d29a8cb9d1f75f56c1778 @cmilfont committed Jun 14, 2010
Showing with 136 additions and 3 deletions.
  1. +2 −1 app/views/tipo_de_exercicios/index.html.erb
  2. +1 −1 config/environment.rb
  3. +18 −0 log/cucumber.log
  4. +84 −0 log/development.log
  5. +30 −0 log/test.log
  6. +1 −1 tmp/pids/server.pid
View
3 app/views/tipo_de_exercicios/index.html.erb
@@ -17,4 +17,5 @@
<br />
-<%= link_to 'New tipo_de_exercicio', new_tipo_de_exercicio_path %>
+<%= link_to 'New tipo_de_exercicio', new_tipo_de_exercicio_path %>
+
View
2 config/environment.rb
@@ -7,7 +7,7 @@
if [ 'test', 'cucumber' ].include?( RAILS_ENV )
config.gem 'rspec', :lib => false, :version => '>=1.2.6'
config.gem 'rspec-rails', :lib => 'spec/rails', :version => '>=1.2.6'
- config.gem 'cucumber', :lib => false, :version => '>=0.4.2'
+ config.gem 'cucumber', :lib => false, :version => '=0.6.4'
config.gem 'selenium-client', :lib => false
config.gem 'bmabey-database_cleaner', :lib => false
config.gem 'thoughtbot-factory_girl', :lib => false
View
18 log/cucumber.log
@@ -1872,3 +1872,21 @@ Completed in 13ms (DB: 1) | 302 Found [http://localhost/exercicios]
SQL (56.1ms) TRUNCATE TABLE `exercicios`;
SQL (2.8ms) TRUNCATE TABLE `tipo_de_exercicios`;
SQL (0.3ms) SET FOREIGN_KEY_CHECKS = 1
+ SQL (57.7ms) SET NAMES 'utf8'
+ SQL (0.4ms) SET SQL_AUTO_IS_NULL=0
+ TipoDeExercicio Columns (34.1ms) SHOW FIELDS FROM `tipo_de_exercicios`
+ SQL (0.3ms) BEGIN
+ TipoDeExercicio Create (112.8ms) INSERT INTO `tipo_de_exercicios` (`created_at`, `nome`, `updated_at`) VALUES('2010-02-19 12:41:14', 'Jiujitsu', '2010-02-19 12:41:14')
+ SQL (17.4ms) COMMIT
+ SQL (0.3ms) BEGIN
+ TipoDeExercicio Create (0.7ms) INSERT INTO `tipo_de_exercicios` (`created_at`, `nome`, `updated_at`) VALUES('2010-02-19 12:41:14', 'Ciclismo', '2010-02-19 12:41:14')
+ SQL (0.7ms) COMMIT
+ SQL (0.3ms) BEGIN
+ TipoDeExercicio Create (0.7ms) INSERT INTO `tipo_de_exercicios` (`created_at`, `nome`, `updated_at`) VALUES('2010-02-19 12:41:14', 'Corrida', '2010-02-19 12:41:14')
+ SQL (0.7ms) COMMIT
+ SQL (0.5ms) SELECT @@FOREIGN_KEY_CHECKS
+ SQL (0.3ms) SET FOREIGN_KEY_CHECKS = 0
+ SQL (0.7ms) SHOW TABLES
+ SQL (109.1ms) TRUNCATE TABLE `exercicios`;
+ SQL (14.4ms) TRUNCATE TABLE `tipo_de_exercicios`;
+ SQL (0.3ms) SET FOREIGN_KEY_CHECKS = 1
View
84 log/development.log
@@ -3543,3 +3543,87 @@ Completed in 96ms (View: 55, DB: 4) | 200 OK [http://localhost/exercicios]
SQL (0.9ms) SELECT version FROM `schema_migrations`
SQL (48.1ms) INSERT INTO `schema_migrations` (version) VALUES ('20091024071004')
SQL (1.0ms) INSERT INTO `schema_migrations` (version) VALUES ('20091024070555')
+ SQL (57.8ms) SET NAMES 'utf8'
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
+ SQL (0.4ms) SHOW TABLES
+ SQL (37.3ms) SELECT version FROM schema_migrations
+ SQL (0.1ms) SET NAMES 'utf8'
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
+ SQL (217.8ms) DROP DATABASE IF EXISTS `test_test`
+ SQL (44.5ms) CREATE DATABASE `test_test` DEFAULT CHARACTER SET `utf8`
+ SQL (0.2ms) SET NAMES 'utf8'
+ SQL (0.3ms) SET SQL_AUTO_IS_NULL=0
+ SQL (0.7ms) SHOW TABLES
+ SQL (119.2ms) CREATE TABLE `exercicios` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `tipo_de_exercicio_id` int(11), `inicio` datetime, `fim` datetime, `frequencia_cardiaca` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
+ SQL (0.7ms) SHOW TABLES
+ SQL (26.0ms) CREATE TABLE `tipo_de_exercicios` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `nome` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
+ SQL (0.8ms) SHOW TABLES
+ SQL (5.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
+ SQL (37.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
+ SQL (2.4ms) SHOW TABLES
+ SQL (0.9ms) SELECT version FROM `schema_migrations`
+ SQL (12.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20091024071004')
+ SQL (1.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20091024070555')
+ SQL (0.2ms) SET NAMES 'utf8'
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ SQL (0.1ms) SET NAMES 'utf8'
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
+ SQL (4.7ms) DROP DATABASE IF EXISTS `test_test`
+ SQL (0.4ms) CREATE DATABASE `test_test` DEFAULT CHARACTER SET `utf8`
+ SQL (0.1ms) SET NAMES 'utf8'
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
+ SQL (0.4ms) SHOW TABLES
+ SQL (8.2ms) CREATE TABLE `exercicios` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `tipo_de_exercicio_id` int(11), `inicio` datetime, `fim` datetime, `frequencia_cardiaca` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
+ SQL (0.4ms) SHOW TABLES
+ SQL (4.6ms) CREATE TABLE `tipo_de_exercicios` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `nome` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
+ SQL (0.4ms) SHOW TABLES
+ SQL (6.3ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
+ SQL (21.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.5ms) SELECT version FROM `schema_migrations`
+ SQL (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20091024071004')
+ SQL (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20091024070555')
+ SQL (0.2ms) SET NAMES 'utf8'
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ SQL (0.1ms) SET NAMES 'utf8'
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
+ SQL (4.7ms) DROP DATABASE IF EXISTS `test_test`
+ SQL (0.4ms) CREATE DATABASE `test_test` DEFAULT CHARACTER SET `utf8`
+ SQL (0.1ms) SET NAMES 'utf8'
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
+ SQL (0.4ms) SHOW TABLES
+ SQL (6.4ms) CREATE TABLE `exercicios` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `tipo_de_exercicio_id` int(11), `inicio` datetime, `fim` datetime, `frequencia_cardiaca` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
+ SQL (0.4ms) SHOW TABLES
+ SQL (13.5ms) CREATE TABLE `tipo_de_exercicios` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `nome` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
+ SQL (0.4ms) SHOW TABLES
+ SQL (5.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
+ SQL (10.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.5ms) SELECT version FROM `schema_migrations`
+ SQL (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20091024071004')
+ SQL (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20091024070555')
+ SQL (0.2ms) SET NAMES 'utf8'
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.2ms) SELECT version FROM schema_migrations
+ SQL (0.1ms) SET NAMES 'utf8'
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
+ SQL (5.9ms) DROP DATABASE IF EXISTS `test_test`
+ SQL (0.4ms) CREATE DATABASE `test_test` DEFAULT CHARACTER SET `utf8`
+ SQL (0.1ms) SET NAMES 'utf8'
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
+ SQL (0.4ms) SHOW TABLES
+ SQL (10.2ms) CREATE TABLE `exercicios` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `tipo_de_exercicio_id` int(11), `inicio` datetime, `fim` datetime, `frequencia_cardiaca` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
+ SQL (0.4ms) SHOW TABLES
+ SQL (7.9ms) CREATE TABLE `tipo_de_exercicios` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `nome` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
+ SQL (0.4ms) SHOW TABLES
+ SQL (6.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
+ SQL (10.8ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
+ SQL (0.4ms) SHOW TABLES
+ SQL (0.5ms) SELECT version FROM `schema_migrations`
+ SQL (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20091024071004')
+ SQL (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20091024070555')
View
30 log/test.log
@@ -545,3 +545,33 @@ Rendering template within layouts/exercicios
Rendering exercicios/show
TipoDeExercicio Load (1.1ms) SELECT * FROM `tipo_de_exercicios` WHERE (`tipo_de_exercicios`.`id` = 3) 
Completed in 61ms (View: 19, DB: 37) | 200 OK [http://localhost/exercicios/1]
+ SQL (0.3ms) SET NAMES 'utf8'
+ SQL (0.4ms) SET SQL_AUTO_IS_NULL=0
+
+
+Processing ExerciciosController#new (for 127.0.0.1 at 2010-02-19 09:41:16) [GET]
+ Exercicio Columns (14.8ms) SHOW FIELDS FROM `exercicios`
+Rendering template within layouts/exercicios
+Rendering exercicios/new
+ TipoDeExercicio Load (15.0ms) SELECT * FROM `tipo_de_exercicios` 
+ TipoDeExercicio Columns (2.7ms) SHOW FIELDS FROM `tipo_de_exercicios`
+Rendered exercicios/_form (329.1ms)
+Completed in 433ms (View: 385, DB: 33) | 200 OK [http://localhost/exercicios/new]
+
+
+Processing ExerciciosController#create (for 127.0.0.1 at 2010-02-19 09:41:45) [POST]
+ Parameters: {"commit"=>"Enviar", "exercicio"=>{"fim(2i)"=>"2", "fim(3i)"=>"25", "fim(4i)"=>"11", "fim(5i)"=>"30", "inicio(1i)"=>"2009", "tipo_de_exercicio_id"=>"3", "inicio(2i)"=>"2", "inicio(3i)"=>"25", "inicio(4i)"=>"10", "frequencia_cardiaca"=>"155", "inicio(5i)"=>"30", "fim(1i)"=>"2009"}}
+ SQL (0.3ms) BEGIN
+ Exercicio Create (0.8ms) INSERT INTO `exercicios` (`created_at`, `tipo_de_exercicio_id`, `updated_at`, `inicio`, `frequencia_cardiaca`, `fim`) VALUES('2010-02-19 12:41:45', 3, '2010-02-19 12:41:45', '2009-02-25 10:30:00', 155, '2009-02-25 11:30:00')
+ SQL (3.0ms) COMMIT
+Redirected to http://localhost:3001/exercicios/1
+Completed in 25ms (DB: 4) | 302 Found [http://localhost/exercicios]
+
+
+Processing ExerciciosController#show (for 127.0.0.1 at 2010-02-19 09:41:45) [GET]
+ Parameters: {"id"=>"1"}
+ Exercicio Load (36.0ms) SELECT * FROM `exercicios` WHERE (`exercicios`.`id` = 1) 
+Rendering template within layouts/exercicios
+Rendering exercicios/show
+ TipoDeExercicio Load (0.8ms) SELECT * FROM `tipo_de_exercicios` WHERE (`tipo_de_exercicios`.`id` = 3) 
+Completed in 60ms (View: 17, DB: 37) | 200 OK [http://localhost/exercicios/1]
View
2 tmp/pids/server.pid
@@ -1 +1 @@
-26054
+7752

0 comments on commit e83377d

Please sign in to comment.