From fc4c29ad4e57dbd12c4509947ceca79e77bea60a Mon Sep 17 00:00:00 2001 From: Guillaume Cerquant Date: Thu, 9 Oct 2014 16:02:54 +0200 Subject: [PATCH 1/2] Added comments for feature and scenario views --- lib/wally/views/feature.haml | 9 +++++++++ lib/wally/views/scenario.haml | 11 +++++++++++ 2 files changed, 20 insertions(+) diff --git a/lib/wally/views/feature.haml b/lib/wally/views/feature.haml index 6527469..c01aed7 100644 --- a/lib/wally/views/feature.haml +++ b/lib/wally/views/feature.haml @@ -9,6 +9,15 @@ :markdown #{@feature.gherkin["description"]} - if @feature.gherkin["description"] + %h2 Comments: + %p + - if @feature.gherkin["comments"] + - @feature.gherkin["comments"].each do |comment| + %p + %i + = comment["value"][1..-1] + - else + %i No comments. %h2 Scenarios %ul - get_sorted_scenarios(@feature).each do |scenario| diff --git a/lib/wally/views/scenario.haml b/lib/wally/views/scenario.haml index 4436d62..9346f93 100644 --- a/lib/wally/views/scenario.haml +++ b/lib/wally/views/scenario.haml @@ -13,6 +13,17 @@ %span.step-keyword &= step["keyword"] = step["name"] + %h3 Comments: + %p + - if @scenario["comments"] + - @scenario["comments"].each do |comment| + %p + %span.step-keyword + %i + = comment["value"][1..-1] + - else + %span.step-keyword + %i No comments. - if @scenario["steps"] %h3 Steps: - @scenario["steps"].each do |step| From 5401a11c38f723c12fe6452b927d055fc93d1f27 Mon Sep 17 00:00:00 2001 From: Guillaume Cerquant Date: Thu, 9 Oct 2014 17:50:07 +0200 Subject: [PATCH 2/2] Added instructions to install this fork --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e3c1975..e9a281a 100644 --- a/README.md +++ b/README.md @@ -19,10 +19,16 @@ Many of the ideas have been borrowed from Matt Wynne's Relish product, but we; * Include a project progress bar (based on tags) ## Installation +### Wally (gcerquant's fork) +* Download the forked code from https://github.com/gcerquant/wally +* In the downloaded folder run the command: +`rake build && gem install pkg/wally-0.0.47.gem` + +### Mongo * Install [mongodb](http://www.mongodb.org/display/DOCS/Quickstart "mongodb") and ensure it is running (e.g. '~ $ ./mongodb-xxxxx-xxxx-x.x.x/bin/mongod') -* ```gem install wally``` * you might also want mongo_mapper (```gem install mongo_mapper```) + ## Usage * create a '.wally' file and enter any authentication text you like (```echo myPassword > .wally```) * run wally server, in the same dir that you put the .wally file (```wally server```)