Then the history should have 1 entry

Assert how many entries the history of an object has.

Examples

Then the history should have 1 entry
Then the history should have 2 entries
And the history should have 3 entries
Then the history should have 2 entries
And the history should have 1 entry

Pattern

Then(/^the history should have (\d+) entr(?:y|ies)$/, …)

Part of @webship-js/django-steps (github.com/webship/django-steps), a step pack for Webship-js 2.0.x.