diff --git a/riot.js b/riot.js
index dc8c729..99fae72 100644
--- a/riot.js
+++ b/riot.js
@@ -178,6 +178,10 @@ Riot.Formatters = {
display('
' + name + '
');
};
+ this.given = function(name) {
+ display('' + name + '
');
+ };
+
this.separator = function() {
display('
');
};
@@ -209,6 +213,10 @@ Riot.Formatters = {
this.line(name);
};
+ this.given = function(name) {
+ this.line(name);
+ };
+
this.separator = function() {
this.line('');
};
@@ -261,7 +269,12 @@ Riot.Context.prototype = {
},
run: function() {
- Riot.formatter.context(this.name);
+ if (this.name.match(/Given/)) {
+ Riot.formatter.given(this.name);
+ }
+ else {
+ Riot.formatter.context(this.name);
+ }
Riot.withDSL(this.callback, this)();
this.runSetup();
for (var i = 0; i < this.assertions.length; i++) {