-
Notifications
You must be signed in to change notification settings - Fork 0
Merb
Install
-—————————————
Cucumber can be used with Merb via the merb_cucumber plugin.
To install merb_cucumber:
sudo gem install david-merb_cucumber
Or you can install "jsmestad-merb_cucumber ":http://github.com/jsmestad/merb_cucumber
sudo gem install jsmestad-merb_cucumber
Here is brief note from jsmestad.
Note – you must uninstall david-merb_cucumber in order for this gem to take precedence. Merb + Cucumber + Webrat testing stack. Builds upon David’s work, but binds Webrat as a dependency to hopefully ensure a smooth upgrade for future Webrat releases. Also Factory_Girl generators will be added soon.
Usage
-—————————————
Then inside of a merb application directory, try:
merb-gen cucumber
merb-gen feature FEATURE_NAME
rake features
Looking for Examples?
-—————————————
So am I. Therefore I’ve been scrounging github in search of some. Lots of merb projects out there with empty /features sitting around.
In my experience, searching github for anything highly particular like this is not useful.
But, please add some when you find them!
Here are some merb projects that use cucumber (feel free to add/update/delete this list accordingly, I did not rigorously weed through each one but I did only include /features that had actual examples):
- http://github.com/matthewford/comic-review/tree/master
- http://github.com/teamon/merb-base/tree/master
- http://github.com/mop/mini-blog/tree/master
- http://github.com/jnicklas/merb_upload/tree/master
- http://github.com/ngty/ty_cucumber_salad/tree/master
- http://github.com/teamon/aliquam/tree/master
- cucumber in a merb slice: http://github.com/balinterdi/philotes/tree/master
Tutorials
-—————————————
- Merb-Book cucumber chapter: http://book.merbist.com/testing-your-application/cucumber
- Writing User Stories with merb_cucumber