-
Notifications
You must be signed in to change notification settings - Fork 0
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 f7763bd
Showing
10 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
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,7 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'rspec' | ||
gem 'cucumber' | ||
gem 'bundler' | ||
gem 'rake' | ||
gem 'rdoc' |
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,37 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
builder (3.2.2) | ||
cucumber (1.3.8) | ||
builder (>= 2.1.2) | ||
diff-lcs (>= 1.1.3) | ||
gherkin (~> 2.12.1) | ||
multi_json (>= 1.7.5, < 2.0) | ||
multi_test (>= 0.0.2) | ||
diff-lcs (1.2.4) | ||
gherkin (2.12.1-x86-mingw32) | ||
multi_json (~> 1.3) | ||
json (1.8.0) | ||
multi_json (1.8.0) | ||
multi_test (0.0.2) | ||
rake (10.1.0) | ||
rdoc (4.0.1) | ||
json (~> 1.4) | ||
rspec (2.14.1) | ||
rspec-core (~> 2.14.0) | ||
rspec-expectations (~> 2.14.0) | ||
rspec-mocks (~> 2.14.0) | ||
rspec-core (2.14.5) | ||
rspec-expectations (2.14.2) | ||
diff-lcs (>= 1.1.3, < 2.0) | ||
rspec-mocks (2.14.3) | ||
|
||
PLATFORMS | ||
x86-mingw32 | ||
|
||
DEPENDENCIES | ||
bundler | ||
cucumber | ||
rake | ||
rdoc | ||
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 @@ | ||
Este software puede ser utilizado sin cargo monetario(gratis) por el usuario. No se puede vender, no se puede obtener dinero de el. En el caso de que se distribuya públicamente por favor mencionarme como autor del mismo, gracias. IgorJorobus. |
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,41 @@ | ||
#necesario para ejecutar los tests de minitest | ||
require 'rake/testtask' | ||
#necesario para ejecutar los tests de cucumber | ||
require 'cucumber/rake/task' | ||
#necesario para ejecutar los tests de rspec | ||
require 'rspec/core/rake_task' | ||
|
||
#################TAREAS####################### | ||
|
||
#tarea para ejecutar los tests de minitest con `rake test` | ||
Rake::TestTask.new do |t| | ||
#busca recursivamente bajo la carpeta test por archivos llamados test* | ||
t.pattern = 'test/**/test*.rb' | ||
end | ||
|
||
#tarea para ejecutar los tests de cucumber con `cucumber` | ||
Cucumber::Rake::Task.new do |t| | ||
#opciones de cucumber a correr | ||
t.cucumber_opts = %w{--format pretty --color} | ||
end | ||
|
||
#tarea para ejecutar cucumber wip(work in progress) con 'rake cucumber_wip' | ||
desc 'Ejecuta cucumber wip' | ||
task :cucumber_wip do | ||
Cucumber::Rake::Task.new do |t| | ||
#opciones de rspec a correr | ||
t.rspec_opts = %w{--format pretty --color --wip @wip:3} | ||
end | ||
end | ||
|
||
#tarea para ejecutar todos los tests de rspec con `rake spec` | ||
RSpec::Core::RakeTask.new do |t| | ||
#opciones de rspec a correr | ||
t.rspec_opts = ['--color'] | ||
end | ||
|
||
desc 'Genera documentación en RDoc' | ||
task :rdoc do | ||
system('rdoc --all --tab-width=1 --format=darkfish --op=doc --force-output') | ||
end | ||
|
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 @@ | ||
#!/usr/bin/env ruby |
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,27 @@ | ||
#encoding: utf-8 | ||
|
||
#keywords de cucumber en español(para que funcionen poner en la primera línea de cada *.feature "#language: es"): | ||
=begin | ||
"background": "Antecedentes", | ||
"feature": "Característica", | ||
"scenario": "Escenario", | ||
"scenario_outline": "Esquema del escenario", | ||
"examples": "Ejemplos", | ||
"given": "*|Dado|Dada|Dados|Dadas", | ||
"when": "*|Cuando", | ||
"then": "*|Entonces", | ||
"and": "*|Y", | ||
"but": "*|Pero" | ||
=end | ||
|
||
#plantilla para describir una característica: | ||
=begin | ||
En orden de <alcanzar un objetivo> | ||
Como un/a <tipo de persona> | ||
Quiero <una característica> | ||
=end | ||
|
||
#si se respeta la convención del esqueleto de un proyecto en Ruby entonces la siguiente línea es fija | ||
$LOAD_PATH << File.expand_path('../../../lib', __FILE__) | ||
#esta es variable. Acá va el nombre del archivo dentro de lib/ que va a requerir a todos los demás del código fuente | ||
require 'cocot' |
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,5 @@ | ||
#encoding: utf-8 | ||
|
||
#acá se requieren todos los archivos del código fuente, por ejemplo una línea podría ser "require 'cocot/archivo.rb'"... | ||
|
||
|
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,3 @@ | ||
#encoding: utf-8 | ||
|
||
require 'cocot' |