attentive/js-features/steps/then/counter_should_have_state.js.coffee

8 lines
206 B
CoffeeScript
Raw Normal View History

2012-03-13 17:20:57 +00:00
Flowerbox.Then /^the counter (should|should not) be running$/, (state) ->
switch state
when 'should'
@expect(@timer).toBeRunning()
when 'should not'
@expect(@timer).not.toBeRunning()