Permalink
Browse files

'And' keyword now usable for writing step definitions

  • Loading branch information...
1 parent 1fe714c commit 63291f81362ce8851c62d6543cf2e0adbfe67d88 @rajkissu rajkissu committed with pacovell May 5, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 lib/kyuri/steps.js
View
@@ -23,6 +23,14 @@ exports.When = function (pattern, topicGenerator) {
});
};
+exports.And = function (pattern, topicGenerator) {
+ steps.push({
+ operator: 'And',
+ pattern: pattern,
+ generator: topicGenerator
+ });
+};
+
exports.Then = function (pattern, callbackGenerator) {
steps.push({
operator: 'Then',
@@ -33,4 +41,4 @@ exports.Then = function (pattern, callbackGenerator) {
exports.export = function (module) {
module.exports = steps;
-};
+};

0 comments on commit 63291f8

Please sign in to comment.