Socket
Book a DemoInstallSign in
Socket

jsmestad-merb_cucumber

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsmestad-merb_cucumber

0.5.1.3
bundlerRubygems
Version published
Maintainers
3
Created
Source

h1. merb_cucumber

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.

h2. Migrating to merb_cucumber 0.5.0

merb_cucumber 0.5.0 now requires cucumber 0.1.13, webrat 0.4.x, 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 cucumber.yml to your Merb.root with the following contents:

    default: --format pretty features

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

h2. Requirements

  • merb-core >= 1.0.6.1
  • cucumber >= 0.1.13
  • webrat >= 0.4.0 (Required, but can use old session-type, see below)

h2. First Time

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.

h2. Usage

To execute all the features run

$ rake features

h2. Notes

  • 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.

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.