-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b3c2c7e
Showing
10 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'rake' | ||
gem 'rspec' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Considere el desarrollo de una clase Ruby para representar Matrices. | ||
1) Cree una clase para representar Matrices usando Desarrollo Dirigido por el Comportamiento (Behavior Driven Development - BDD) como caso particular del Desarrollo dirigido por pruebas (Test Driven Development - TDD) usando como herramienta Rspec. | ||
Puede tomar como ejemplo la siguiente salida: | ||
Matrix | ||
Se debe poder sumar dos matrices de enteros | ||
Se debe poder sumar dos matrices de racionales | ||
Se debe poder multiplicar una matriz de Enteros | ||
Se debe poder multiplicar dos matrices de Racionales | ||
|
||
Finished in 0.00161 seconds | ||
4 examples, 0 failures | ||
La clase se ha de compilar con la herramienta Travis de integración continua. | ||
Además se ha de comprobar el funcionamiento de la herramienta Guard de comprobación continua (Continuous testing) de manera que permita la ejecución de las pruebas definidas con rspec cuando se modifiquen. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Considere el desarrollo de una clase Ruby para representar Matrices. | ||
1) Cree una clase para representar Matrices usando Desarrollo Dirigido por el Comportamiento (Behavior Driven Development - BDD) como caso particular del Desarrollo dirigido por pruebas (Test Driven Development - TDD) usando como herramienta Rspec. | ||
Puede tomar como ejemplo la siguiente salida: | ||
Matrix | ||
Se debe poder sumar dos matrices de enteros | ||
Se debe poder sumar dos matrices de racionales | ||
Se debe poder multiplicar una matriz de Enteros | ||
Se debe poder multiplicar dos matrices de Racionales | ||
|
||
Finished in 0.00161 seconds | ||
4 examples, 0 failures | ||
La clase se ha de compilar con la herramienta Travis de integración continua. | ||
Además se ha de comprobar el funcionamiento de la herramienta Guard de comprobación continua (Continuous testing) de manera que permita la ejecución de las pruebas definidas con rspec cuando se modifiquen. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
require 'rspec/core/rake_task' | ||
#para no tener que poner -Ilib | ||
$:.unshift File.dirname(__FILE__) + 'lib' | ||
|
||
#------------------------------------------------------------------------------- | ||
task :default => :spec | ||
|
||
#------------------------------------------------------------------------------- | ||
desc "Ejecutar tests" | ||
task :spec do | ||
sh "rspec spec/matriz_spec.rb --format documentation" | ||
end | ||
|
||
#------------------------------------------------------------------------------- | ||
desc "Ejecutar una partida del juego" | ||
task :bin do | ||
sh "ruby bin/prueba.rb" | ||
end | ||
|
||
#------------------------------------------------------------------------------- | ||
desc "Ejecutar test con formato html" | ||
task :thtml do | ||
sh "rspec spec/matriz_spec.rb --format html > resultados.html" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
require 'rspec/core/rake_task' | ||
#para no tener que poner -Ilib | ||
$:.unshift File.dirname(__FILE__) + 'lib' | ||
|
||
#------------------------------------------------------------------------------- | ||
task :default => :spec | ||
|
||
#------------------------------------------------------------------------------- | ||
desc "Ejecutar tests" | ||
task :spec do | ||
sh "rspec spec/matriz_spec.rb --format documentation" | ||
end | ||
|
||
#------------------------------------------------------------------------------- | ||
desc "Ejecutar una partida del juego" | ||
task :bin do | ||
sh "ruby bin/prueba.rb" | ||
end | ||
|
||
#------------------------------------------------------------------------------- | ||
desc "Ejecutar test con formato html" | ||
task :thtml do | ||
sh "rspec spec/matriz_spec.rb --format html > resultados.html" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require 'matriz' |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require 'matriz' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require 'matriz' |