attentive/js-features/steps/then/counter_should_have_state.js.coffee
2012-03-13 13:20:57 -04:00

8 lines
206 B
CoffeeScript

Flowerbox.Then /^the counter (should|should not) be running$/, (state) ->
switch state
when 'should'
@expect(@timer).toBeRunning()
when 'should not'
@expect(@timer).not.toBeRunning()