konacha-chai-matchers 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  module Konacha
2
2
  module Chai
3
3
  module Matchers
4
- VERSION = "0.0.16"
4
+ VERSION = "0.0.17"
5
5
  end
6
6
  end
7
7
  end
@@ -48,12 +48,11 @@
48
48
  if (options == null) {
49
49
  options = {};
50
50
  }
51
+ if (!((typeof router === 'object') && (router instanceof Backbone.Router))) {
52
+ throw new TypeError('provided router is not a Backbone.Router');
53
+ }
51
54
  current_history = Backbone.history;
52
55
  Backbone.history = new Backbone.History;
53
- if (!((utils.type(router) === 'object') && (router instanceof Backbone.Router))) {
54
- throw TypeError('provided router is not a Backbone.Router');
55
- }
56
- expect(router).to.be.an.instanceOf(Backbone.Router);
57
56
  stub = sinon.stub(router, methodName);
58
57
  router._bindRoutes();
59
58
  if (options.considering != null) {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: konacha-chai-matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: