aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario/Describe.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenario/Describe.js')
-rw-r--r--src/scenario/Describe.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/scenario/Describe.js b/src/scenario/Describe.js
index 896b337f..f6a52f1e 100644
--- a/src/scenario/Describe.js
+++ b/src/scenario/Describe.js
@@ -78,12 +78,10 @@ angular.scenario.Describe.prototype.it = function(name, body) {
var self = this;
this.its.push({
definition: this,
- name: name,
- fn: function() {
- self.setupBefore.call(this);
- body.call(this);
- self.setupAfter.call(this);
- }
+ name: name,
+ before: self.setupBefore,
+ body: body,
+ after: self.setupAfter
});
};