Code Monkey home page Code Monkey logo

merb_cucumber's Introduction

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

merb_cucumber's People

Contributors

david avatar dchelimsky avatar michaelklishin avatar ngty avatar pk avatar roman avatar sfeley avatar shingara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

merb_cucumber's Issues

uninitialized constant Cucumber::Rake::FeatureTask

version numbers:
roman-merb_cucumber (0.5.1.3)

cucumber (0.4.3)

I still get this:
rake features --trace
(in /Users/JB/Projekt/merb/cuke2)
Merb root at: /Users/JB/Projekt/merb/cuke2
Loading init file from ./config/init.rb
Loading ./config/environments/development.rb
rake aborted!
uninitialized constant Cucumber::Rake::FeatureTask
/Users/JB/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2503:in const_missing' /Users/JB/Projekt/merb/cuke2/lib/tasks/cucumber.rake:9 /Users/JB/Projekt/merb/cuke2/Rakefile:19:inload'
/Users/JB/Projekt/merb/cuke2/Rakefile:19
/Users/JB/Projekt/merb/cuke2/Rakefile:19:in each' /Users/JB/Projekt/merb/cuke2/Rakefile:19 /Users/JB/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2383:inload'
/Users/JB/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in raw_load_rakefile' /Users/JB/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2017:inload_rakefile'
/Users/JB/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /Users/JB/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2016:inload_rakefile'
/Users/JB/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in run' /Users/JB/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling'
/Users/JB/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in run' /Users/JB/.gem/ruby/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:inload'
/usr/bin/rake:19

anyone else get this ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.