@valera-rozuvan @polesye Yes, adding a custom global matcher called 'toHaveAttrs' would clarify the code. I just did that in 'spec/helper.coffee' and use it in below in 'spec/video/video_volume_control_spec.js'. One issue though. Augmenting the prototype of jasmine.Matchers doesn't work ie jasmine.Matchers.prototype.toHaveAttrs = function() {} will always return true.

I use this (in beforeEach) instead:

this.addMatchers({
  toHaveAttrs: jasmine.toHaveAttrs
});

Any idea how we could do this more elegantly?