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

32 lines
764 B
CoffeeScript
Raw Normal View History

2012-01-11 19:30:10 +00:00
jasmine.GWT.globals =
Feature: (args...) ->
feature = new jasmine.GWT.Feature(args...)
feature.run()
2012-01-11 19:30:10 +00:00
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...)