(QENG-1592) undefined method `assertions' in Beaker 2.0.0

- update to work with beaker 2.0, maintain 1.x backwards compatability
Merge remote-tracking branch 'upstream/pr/3418'

* upstream/pr/3418:
  (QENG-1592) undefined method `assertions' in Beaker 2.0.0