jasmine-gwt/lib/assets/javascripts/jasmine/GWT/Feature.js.coffee

16 lines
335 B
CoffeeScript
Raw Normal View History

2012-01-11 19:30:10 +00:00
class jasmine.GWT.Feature
constructor: (@name, code) ->
jasmine.GWT.currentFeature_ = this
@background = null
code.apply(this)
jasmine.GWT.currentFeature_ = null
Scenario: (name, code) ->
new jasmine.GWT.Scenario(name, code, this)
Background: (code) ->
@background = new jasmine.GWT.Background(code)