Permalink
Commits on Feb 5, 2012
  1. Release 0.2.7

    jbpros committed Feb 5, 2012
  2. Allow for asynchronous step failures

    jbpros committed Feb 5, 2012
    Asynchronous failures can be triggered by calling `fail()` on the step definition callback:
    
        this.Given(/^I fail$/, function(callback) {
          callback.fail(new Error("I fail."));
        });
    
    It is recommended to always use "fail()" instead of synchronous exceptions that can be hard to track in asynchronous contexts.
Commits on Feb 4, 2012
  1. Fix matching groups in step definition snippets (close #42)

    jbpros committed Feb 4, 2012
    This was due to a bug in underscore.string library's `count()` function. We rolled our own.
  2. Release 0.2.6

    jbpros committed Feb 4, 2012
Commits on Feb 3, 2012
  1. Add tags support (close #7)

    jbpros committed Feb 3, 2012
Commits on Jan 30, 2012
  1. Update master diff in History

    jbpros committed Jan 30, 2012
Commits on Jan 29, 2012
  1. Indent properly

    jbpros committed Jan 29, 2012
  2. Refactor parser and add AST assembler (required by #7)

    jbpros committed Jan 29, 2012
    In order to get tag support (#7), it was necessary to decouple Gherkin parsing callbacks from the actual assembly of the Abstract Structured Tree.
    
    - Extracted AST assembly logic into a new Cucumber.Ast.Assembler object;
    - AST elements now handle specific back-references instead of relying on the builder (e.g. previously, the parser was setting the background on a new scenario; the Feature element is now taking care of it when the scenario is appended);
    - Refactored some related specs.
Commits on Jan 27, 2012
  1. Typo in README

    jbpros committed Jan 27, 2012
Commits on Jan 20, 2012
Commits on Jan 19, 2012
  1. Release 0.2.5

    jbpros committed Jan 19, 2012
Commits on Jan 18, 2012
  1. Document before and after hooks

    jbpros committed Jan 18, 2012
  2. Words in README

    jbpros committed Jan 18, 2012
Commits on Jan 17, 2012
  1. Add "Help & Support" to README

    jbpros committed Jan 17, 2012
Commits on Jan 13, 2012
  1. Release 0.2.4

    jbpros committed Jan 13, 2012
  2. Add release checklist to README

    jbpros committed Jan 13, 2012
  3. Make and expect World constructors to be asynchronous (close #39)

    jbpros committed Jan 13, 2012
    This change is backward-incompatible. It will break existing World constructors which are not calling back.
    
    Before:
    
        exports.World = function MyWorld() {
          // do your thing
        };
    
    Now:
    
        exports.World = function MyWorld(callback) {
          // do your thing
          // then call back and tell Cucumber what to use as World (this):
          callback(this);
        };
    
    You can return other objects to be used as World from the constructor:
    
        exports.World = function MyWorldWrapper(callback) {
          // do your thing
          // create the World instance:
          var actualWorld = new MyRealWorld();
          // call back and tell Cucumber to use it as World:
          callback(actualWorld);
        };
Commits on Jan 12, 2012