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

31 lines
736 B
CoffeeScript
Raw Normal View History

2012-01-11 19:30:10 +00:00
jasmine.GWT.globals =
Feature: (args...) ->
new jasmine.GWT.Feature(args...)
Background: (args...) ->
jasmine.GWT.currentFeature_.Background(args...)
Scenario: (args...) ->
jasmine.GWT.currentFeature_.Scenario(args...)
Given: (args...) ->
@_lastType = 'Given'
jasmine.GWT.Step(@_lastType, args...)
When: (args...) ->
@_lastType = 'When'
jasmine.GWT.Step(@_lastType, args...)
Then: (args...) ->
@_lastType = 'Then'
jasmine.GWT.Step(@_lastType, args...)
And: (args...) ->
jasmine.GWT.Step(@_lastType, args...)
Before: (args...) -> jasmine.GWT.Hook('Before', args...)
After: (args...) -> jasmine.GWT.Hook('After', args...)
World: (args...) -> jasmine.GWT.World(args...)