Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
damian-m-g committed Sep 20, 2013
0 parents commit f7763bd
Show file tree
Hide file tree
Showing 10 changed files with 122 additions and 0 deletions.
Empty file added Changelog.md
Empty file.
7 changes: 7 additions & 0 deletions Gemfile
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'
37 changes: 37 additions & 0 deletions Gemfile.lock
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
1 change: 1 addition & 0 deletions License.md
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.
41 changes: 41 additions & 0 deletions Rakefile
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 added ReadMe.md
Empty file.
1 change: 1 addition & 0 deletions bin/cocot
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/usr/bin/env ruby
27 changes: 27 additions & 0 deletions features/support/env.rb
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'
5 changes: 5 additions & 0 deletions lib/cocot.rb
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'"...


3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#encoding: utf-8

require 'cocot'

0 comments on commit f7763bd

Please sign in to comment.