public
Description: Set of reusable step definitions to test a Rails application with Cucumber
Homepage:
Clone URL: git://github.com/nando/mundo-pepino.git
name age message
file .gitignore Fri Nov 20 07:17:45 -0800 2009 path_to method priority removed [nando]
file .gitmodules Mon Nov 23 09:25:50 -0800 2009 StringMapper for test app as git submodule in v... [nando]
file COPYING Fri Oct 02 06:38:15 -0700 2009 Ooops! [nando]
file History.txt Mon Dec 07 07:16:18 -0800 2009 Release 0.1.9 [nando]
file Manifest.txt Wed Nov 04 13:04:40 -0800 2009 Release 0.1.5 [nando]
file README.markdown Fri Nov 13 13:29:51 -0800 2009 When I visit the page and Then I see the text _... [nando]
file README_es.markdown Tue Nov 24 09:16:29 -0800 2009 Removed asterisks "in webrat_steps.rb" steps [nando]
file Rakefile Sat Nov 28 17:39:49 -0800 2009 Exceptions being tested (at last!) [nando]
file cucumber.yml Sat Nov 28 17:39:49 -0800 2009 Exceptions being tested (at last!) [nando]
directory features/ Tue Dec 01 12:02:42 -0800 2009 Tested has_one asignment on an explicit resource [nando]
file init.rb Mon Dec 15 15:18:43 -0800 2008 Distribución del código como plugin, no como ra... [nando]
directory lib/ Mon Dec 07 07:16:18 -0800 2009 Release 0.1.9 [nando]
file mundo-pepino.gemspec Mon Dec 07 07:16:18 -0800 2009 Release 0.1.9 [nando]
directory rails_generators/ Wed Nov 18 02:52:57 -0800 2009 [GeneratorImprovement] Ejemplos de mapeo de URL... [nando]
README.markdown

MundoPepino

Welcome to MundoPepino!

First of all, please note that this README is also available and (still) much more complete in Spanish.

Presentation

Expresing our app behaviour with a natural language has to deal with the fact that one sentence can be expresed in many different ways.

This fact can easily drive us towards an explosion of the step definitions making the maintenance of our app more difficult.

At the same time, to describe an app there is a group of sentences that we're very likely to need, like for example those which refer to posible interactions of the user while browsing a site.

MundoPepino is a set of reusable step definitions to test Rails apps with Cucumber.

DISCLAIMER:

MundoPepino was originally implemented to write features in Spanish. Its code has been recently modified to support different languages (and, theoretically, at the same time if needed).

Currently only part of the original set of steps (and just a little of the documentation) has been translated to English. On the other hand features written in English don't have to manage the complexity added by translations of models and attributes. Cousin projects like pickle or email-spec are much more advanced to write features in English.

For other languages, before start your own implementation, it'd be nice if you:

  • start a new language in MundoPepino (we'll be glad to help you if you try), or
  • look for your language in similar i18n projects.

Resources

Definitions

Givens/Whens

Simple instance/s creation optionally with its/their name/s

Given three orchards called "H-01, H-02 y H-03"

more examples

Page request

Given I am on the homepage

more examples

Thens

I see (or not) a text

Then I should see the text "Hello!"

more examples

License

Copyright 2009, The Cocktail Experience. Fernando García Samblas <fernando.garcia at the-cocktail.com>

This is free software released under the GPL License (see license agreement in COPYING).