cucumber-1.3.8/0000755000004100000410000000000012215066232013357 5ustar www-datawww-datacucumber-1.3.8/.travis.yml0000644000004100000410000000032112215066232015464 0ustar www-datawww-datarvm: - 2.0.0 - 1.9.3 - 1.8.7 - jruby # whitelist branches: only: - master - v1.3.x-bugfix notifications: email: - cukes-devs@googlegroups.com irc: - "irc.freenode.org#cucumber" cucumber-1.3.8/CONTRIBUTING.md0000644000004100000410000000533112215066232015612 0ustar www-datawww-data## About to create a new Github Issue? We appreciate that. But before you do, please learn our basic rules: * This is not a support forum. If you have a question, please go to [The Cukes Google Group](http://groups.google.com/group/cukes). * Do you have an idea for a new feature? Then don't expect it to be implemented unless you or someone else sends a [pull request](https://help.github.com/articles/using-pull-requests). You might be better to start a discussion on [the google group](http://groups.google.com/group/cukes). * Reporting a bug? Please tell us: * which version of Cucumber you're using * which version of Ruby you're using. * How to reproduce it. Bugs with a failing test in a [pull request](https://help.github.com/articles/using-pull-requests) get fixed much quicker. Some bugs may never be fixed. * Want to paste some code or output? Put \`\`\` on a line above and below your code/output. See [GFM](https://help.github.com/articles/github-flavored-markdown)'s *Fenced Code Blocks* for details. * We love [pull requests](https://help.github.com/articles/using-pull-requests). But if you don't have a test to go with it we probably won't merge it. # Contributing to Cucumber This document is a guide for those maintaining Cucumber, and others who would like to submit patches. ## Note on Patches/Pull Requests * Fork the project. Make a branch for your change. * Make your feature addition or bug fix. * Make sure your patch is well covered by tests. We don't accept changes to Cucumber that aren't tested. * Please do not change the Rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself so we can ignore when we merge your change) * Send us a pull request. ## Running tests gem install bundler bundle install bundle exec rake ## Release Process * Bump the version number in `lib/cucumber/platform.rb`. * Make sure `History.md` is updated with the upcoming version number, and has entries for all fixes. * No need to add a `History.md` header at this point - this should be done when a new change is made, later. * Make sure you have up-to-date and clean copy of cucumber/cucumber.github.com.git at the same level as cucumber repo. Now release it bundle update bundle exec rake git commit -m "Release X.Y.Z" rake release ## Gaining Release Karma To become a release manager, create a pull request adding your name to the list below, and include your Rubygems email address in the ticket. One of the existing Release managers will then add you. Current release managers: * Matt Wynne * Aslak Hellesøy * Oleg Sukhodolsky To grant release karma, issue the following command: gem owner cucumber --add cucumber-1.3.8/examples/0000755000004100000410000000000012215066232015175 5ustar www-datawww-datacucumber-1.3.8/examples/python/0000755000004100000410000000000012215066232016516 5ustar www-datawww-datacucumber-1.3.8/examples/python/README.textile0000644000004100000410000000042112215066232021050 0ustar www-datawww-datah1. WARNING - Experimental The Python support is experimental. Don't expect it to work. Please help fix it or head over to a more mature library: * http://github.com/gabrielfalcao/lettuce/ * http://wiki.github.com/heynemann/pyccuracy/ * http://packages.python.org/behave/cucumber-1.3.8/examples/python/Rakefile0000644000004100000410000000015012215066232020157 0ustar www-datawww-data$:.unshift(File.dirname(__FILE__) + '/../../lib') require 'cucumber/rake/task' Cucumber::Rake::Task.newcucumber-1.3.8/examples/python/features/0000755000004100000410000000000012215066232020334 5ustar www-datawww-datacucumber-1.3.8/examples/python/features/fibonacci.feature0000644000004100000410000000127412215066232023632 0ustar www-datawww-dataFeature: Fibonacci In order to calculate super fast fibonacci series As a pythonista I want to use Python for that Scenario Outline: Series When I ask python to calculate fibonacci up to Then it should give me Examples: | n | series | | 1 | [] | | 2 | [1, 1] | | 3 | [1, 1, 2] | | 4 | [1, 1, 2, 3] | | 6 | [1, 1, 2, 3, 5] | | 9 | [1, 1, 2, 3, 5, 8] | | 100 | [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] | cucumber-1.3.8/examples/python/features/step_definitions/0000755000004100000410000000000012215066232023702 5ustar www-datawww-datacucumber-1.3.8/examples/python/features/step_definitions/fib_steps.py0000644000004100000410000000045712215066232026240 0ustar www-datawww-datafrom py_dsl import * @Given("^I ask python to calculate fibonacci up to (\d+)$") def calc_fib_upto(n): print("CALCULATING FIB") #self.fib_result = fib.fib(n.to_i) @Given("^it should give me (\[.*\])$") def fib_should_be(n): print("COMPARING FIB") #self.fib_result = fib.fib(n.to_i)cucumber-1.3.8/examples/python/lib/0000755000004100000410000000000012215066232017264 5ustar www-datawww-datacucumber-1.3.8/examples/python/lib/fib.py0000644000004100000410000000017612215066232020402 0ustar www-datawww-datadef fib(n): result = [] a, b = 0, 1 while b < n: result.append(b) a, b = b, a+b return result cucumber-1.3.8/examples/i18n/0000755000004100000410000000000012215066232015754 5ustar www-datawww-datacucumber-1.3.8/examples/i18n/fr/0000755000004100000410000000000012215066232016363 5ustar www-datawww-datacucumber-1.3.8/examples/i18n/fr/Rakefile0000644000004100000410000000023612215066232020031 0ustar www-datawww-data$:.unshift(File.dirname(__FILE__) + '/../../../lib') require 'cucumber/rake/task' Cucumber::Rake::Task.new do |t| t.cucumber_opts = %w{--format pretty} endcucumber-1.3.8/examples/i18n/fr/features/0000755000004100000410000000000012215066232020201 5ustar www-datawww-datacucumber-1.3.8/examples/i18n/fr/features/addition2.feature0000644000004100000410000000067712215066232023445 0ustar www-datawww-data# language: fr Fonctionnalité: Addition Afin de financer mon bonus avec l'argent des pigeons En tant que trader Je souhaite pouvoir additionner 2 chiffres Plan du Scénario: Addition de produits dérivés Soit une calculatrice Etant donné qu'on tape Et qu'on tape Lorsqu'on tape additionner Alors le résultat doit être Exemples: | a | b | somme | | 2 | 2 | 4 | | 2 | 3 | 5 | cucumber-1.3.8/examples/i18n/fr/features/addition.feature0000644000004100000410000000103412215066232023347 0ustar www-datawww-data# language: fr Fonctionnalité: Addition Afin de gagner du temps lors du calcul de la facture En tant que commerçant Je souhaite pouvoir faire une addition Plan du Scénario: Addition de deux nombres Soit une calculatrice Et que j'entre pour le premier nombre Et que je tape sur la touche "+" Et que j'entre pour le second nombre Lorsque je tape sur la touche "=" Alors le résultat affiché doit être Exemples: | a | b | somme | | 2 | 2 | 4 | | 2 | 3 | 5 | cucumber-1.3.8/examples/i18n/fr/features/step_definitions/0000755000004100000410000000000012215066232023547 5ustar www-datawww-datacucumber-1.3.8/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb0000644000004100000410000000121112215066232027740 0ustar www-datawww-data# encoding: utf-8 Soit /^une calculatrice$/ do @calc = Calculatrice.new end Etantdonné /^qu'on tape (.*)$/ do |n| @calc.push n.to_i end Etantdonné /^que j'entre (\d+) pour le (.*) nombre/ do |n, x| @calc.push n.to_i end Lorsque /^je tape sur la touche "="$/ do @expected_result = @calc.additionner end Lorsqu /on tape additionner/ do @expected_result = @calc.additionner end Alors /le résultat affiché doit être (\d*)/ do |result| result.to_i.should == @expected_result end Alors /le résultat doit être (\d*)/ do |result| result.to_i.should == @expected_result end Soit /^que je tape sur la touche "\+"$/ do # noop end cucumber-1.3.8/examples/i18n/fr/features/support/0000755000004100000410000000000012215066232021715 5ustar www-datawww-datacucumber-1.3.8/examples/i18n/fr/features/support/env.rb0000644000004100000410000000033012215066232023026 0ustar www-datawww-data# encoding: utf-8 begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end require 'cucumber/formatter/unicode' $:.unshift(File.dirname(__FILE__) + '/../../lib') require 'calculatrice' cucumber-1.3.8/examples/i18n/fr/lib/0000755000004100000410000000000012215066232017131 5ustar www-datawww-datacucumber-1.3.8/examples/i18n/fr/lib/calculatrice.rb0000644000004100000410000000021212215066232022104 0ustar www-datawww-dataclass Calculatrice def push(n) @args ||= [] @args << n end def additionner @args.inject(0){|n,sum| sum+=n} end end cucumber-1.3.8/examples/i18n/sv/0000755000004100000410000000000012215066232016404 5ustar www-datawww-datacucumber-1.3.8/examples/i18n/sv/Rakefile0000644000004100000410000000023612215066232020052 0ustar www-datawww-data$:.unshift(File.dirname(__FILE__) + '/../../../lib') require 'cucumber/rake/task' Cucumber::Rake::Task.new do |t| t.cucumber_opts = %w{--format pretty} endcucumber-1.3.8/examples/i18n/sv/features/0000755000004100000410000000000012215066232020222 5ustar www-datawww-datacucumber-1.3.8/examples/i18n/sv/features/summering.feature0000644000004100000410000000066712215066232023616 0ustar www-datawww-data# language: sv Egenskap: Summering För att slippa att göra dumma fel Som räknare Vill jag kunna lägga samman Scenario: två tal Givet att jag har knappat in 5 Och att jag har knappat in 7 När jag summerar Så ska resultatet vara 12 Scenario: tre tal Givet att jag har knappat in 5 Och att jag har knappat in 4 Och att jag har knappat in 3 När jag summerar Så ska resultatet vara 12 cucumber-1.3.8/examples/i18n/sv/features/step_definitons/0000755000004100000410000000000012215066232023417 5ustar www-datawww-datacucumber-1.3.8/examples/i18n/sv/features/step_definitons/kalkulator_steps.rb0000644000004100000410000000072512215066232027337 0ustar www-datawww-data# encoding: utf-8 begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end require 'cucumber/formatter/unicode' $:.unshift(File.dirname(__FILE__) + '/../../lib') require 'kalkulator' Before do @calc = Kalkulator.new end After do end Given /att jag har knappat in (\d+)/ do |n| @calc.push n.to_i end When 'jag summerar' do @result = @calc.add end Then /ska resultatet vara (\d+)/ do |result| @result.should == result.to_i end cucumber-1.3.8/examples/i18n/sv/lib/0000755000004100000410000000000012215066232017152 5ustar www-datawww-datacucumber-1.3.8/examples/i18n/sv/lib/kalkulator.rb0000644000004100000410000000023012215066232021643 0ustar www-datawww-dataclass Kalkulator def push(n) @args ||= [] @args << n end def add #@args[0] + @args[1] @args.inject(0){|n,sum| sum+=n} end endcucumber-1.3.8/examples/i18n/lt/0000755000004100000410000000000012215066232016373 5ustar www-datawww-datacucumber-1.3.8/examples/i18n/lt/Rakefile0000644000004100000410000000023712215066232020042 0ustar www-datawww-data$:.unshift(File.dirname(__FILE__) + '/../../../lib') require 'cucumber/rake/task' Cucumber::Rake::Task.new do |t| t.cucumber_opts = %w{--format pretty} end cucumber-1.3.8/examples/i18n/lt/features/0000755000004100000410000000000012215066232020211 5ustar www-datawww-datacucumber-1.3.8/examples/i18n/lt/features/division.feature0000644000004100000410000000046112215066232023413 0ustar www-datawww-data# language: lt Savybė: Dalyba Norint išvengti klaidų Kasininkai privalo mokėti skaičiuoti trupmenas Scenarijus: Realieji skaičiai Duota aš įvedžiau 3 į skaičiuotuvą Ir aš įvedžiau 2 į skaičiuotuvą Kai aš paspaudžiu "divide" Tada rezultatas ekrane turi būti 1.5 cucumber-1.3.8/examples/i18n/lt/features/addition.feature0000644000004100000410000000116212215066232023361 0ustar www-datawww-data# language: lt Savybė: Sudėtis Norint išvengti kvailų klaidų Kaip matematinis idiotas Aš noriu, kad man pasakytų dviejų skaičių sumą Scenarijaus šablonas: dviejų skaičių sudėtis Duota aš įvedžiau <įvestis_1> į skaičiuotuvą Ir aš įvedžiau <įvestis_2> į skaičiuotuvą Kai aš paspaudžiu "" Tada rezultatas ekrane turi būti Pavyzdžiai: | įvestis_1 | įvestis_2 | mygtukas | išvestis | | 20 | 30 | add | 50 | | 2 | 5 | add | 7 | | 0 | 40 | add | 40 | cucumber-1.3.8/examples/i18n/lt/features/step_definitons/0000755000004100000410000000000012215066232023406 5ustar www-datawww-datacucumber-1.3.8/examples/i18n/lt/features/step_definitons/calculator_steps.rb0000644000004100000410000000077312215066232027311 0ustar www-datawww-data# encoding: utf-8 begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end require 'cucumber/formatter/unicode' $:.unshift(File.dirname(__FILE__) + '/../../lib') require 'calculator' Before do @calc = Calculator.new end After do end Given /aš įvedžiau (\d+) į skaičiuotuvą/ do |n| @calc.push n.to_i end When /aš paspaudžiu "(\w+)"/ do |op| @result = @calc.send op end Then /rezultatas ekrane turi būti (.*)/ do |result| @result.should == result.to_f end cucumber-1.3.8/examples/i18n/lt/lib/0000755000004100000410000000000012215066232017141 5ustar www-datawww-datacucumber-1.3.8/examples/i18n/lt/lib/calculator.rb0000644000004100000410000000026612215066232021623 0ustar www-datawww-dataclass Calculator def push(n) @args ||= [] @args << n end def add @args.inject(0){|n,sum| sum+=n} end def divide @args[0].to_f / @args[1].to_f end end cucumber-1.3.8/examples/i18n/id/0000755000004100000410000000000012215066232016350 5ustar www-datawww-datacucumber-1.3.8/examples/i18n/id/Rakefile0000644000004100000410000000023612215066232020016 0ustar www-datawww-data$:.unshift(File.dirname(__FILE__) + '/../../../lib') require 'cucumber/rake/task' Cucumber::Rake::Task.new do |t| t.cucumber_opts = %w{--format pretty} endcucumber-1.3.8/examples/i18n/id/features/0000755000004100000410000000000012215066232020166 5ustar www-datawww-datacucumber-1.3.8/examples/i18n/id/features/division.feature0000644000004100000410000000043712215066232023373 0ustar www-datawww-data# language: id Fitur: Division Untuk hindari kesalahan konyol Kasir harus dapat menghitung pembagian Skenario: bilangan biasa Dengan aku sudah masukkan 3 ke kalkulator Dan aku sudah masukkan 2 ke kalkulator Ketika aku tekan divide Maka hasilnya harus 1.5 di layar cucumber-1.3.8/examples/i18n/id/features/addition.feature0000644000004100000410000000106512215066232023340 0ustar www-datawww-data# language: id Fitur: Addition Untuk menghindari kesalahan konyol Sebagai orang yang gak bisa matematika Aku ingin diberi tahu jumlah dua bilangan Skenario konsep: Menjumlahkan dua bilangan Dengan aku sudah masukkan ke kalkulator Dan aku sudah masukkan ke kalkulator Ketika aku tekan