0.0
No commit activity in last 3 years
No release in over 3 years
Cucumber integration for Merb
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.2.9

Runtime

>= 0.7.2
>= 1.1.0
>= 1.1.0
 Project Readme

merb_cucumber

Merb + Cucumber integration with Webrat support.

Migrating to merb_cucumber 0.5.0

merb_cucumber 0.5.0 now requires a version greater than cucumber 0.1.13, which introduces some breaking changes. If you were already using merb_cucumber, you’ll need to do the following:

  • Change the last line of bin/cucumber to be:
Cucumber::CLI.execute ARGV
  • Add a config/cucumber.yml to your Merb.root with the following contents:
default: —format pretty features

If you experience any problems, please contact me (roman) on github.

Requirements

  • merb-core >= 1.0.9
  • cucumber >= 0.2.0
  • webrat >= 0.4.3 (Optional)

First Time

Include the gem in your dependencies. In your dependencies.rb file include:

dependency “roman-merb_cucumber”, :require_as => nil

Inside your merb project root, run

$ merb-gen cucumber

For Webrat support, run

$ merb-gen cucumber —session-type webrat

This will also install a sample login feature that should pass if you’re using merb-auth.

Usage

To execute all the features run

$ rake features

Notes

  • If you are working with bundled Gems on your project, and having problems to make it through, check this post
  • When you are implementing the steps of an scenario, please use the new request test helper, if you try to use the
    dispatch_to method, it won’t work as expected.
  • Webrat methods other than ‘visits’ are now singular only.