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

9 lines
267 B
CoffeeScript
Raw Normal View History

2012-03-13 17:20:57 +00:00
Flowerbox.Then /^the counter (should|should not) show the time "([^"]+)"$/, (state, time) ->
content = @timer.ensureEl().innerHTML
switch state
when 'should'
@expect(content).toEqual(time)
when 'should not'
@expect(content).not.toEqual(time)