sinon-chai-rails 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  module Sinon
2
2
  module Chai
3
3
  module Rails
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.3"
5
5
  end
6
6
  end
7
7
  end
@@ -39,7 +39,9 @@
39
39
  function getMessages(spy, action, nonNegatedSuffix, always, args) {
40
40
  var verbPhrase = always ? "always have " : "have ";
41
41
  nonNegatedSuffix = nonNegatedSuffix || "";
42
- spy = spy.proxy || spy;
42
+ if (isSpy(spy.proxy)) {
43
+ spy = spy.proxy;
44
+ }
43
45
 
44
46
  function printfArray(array) {
45
47
  return spy.printf.apply(spy, array);
@@ -101,6 +103,7 @@
101
103
  sinonMethod("calledOn", "been called with %1 as this", ", but it was called with %t instead");
102
104
  sinonMethod("calledWith", "been called with arguments %*", "%C");
103
105
  sinonMethod("calledWithExactly", "been called with exact arguments %*", "%C");
106
+ sinonMethod("calledWithMatch", "been called with arguments matching %*", "%C");
104
107
  sinonMethod("returned", "returned %1");
105
108
  exceptionalSinonMethod("thrown", "threw", "thrown %1");
106
109
  }));
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinon-chai-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-20 00:00:00.000000000 Z
12
+ date: 2013-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -55,21 +55,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
55
  - - ! '>='
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
- segments:
59
- - 0
60
- hash: 118299963058937580
61
58
  required_rubygems_version: !ruby/object:Gem::Requirement
62
59
  none: false
63
60
  requirements:
64
61
  - - ! '>='
65
62
  - !ruby/object:Gem::Version
66
63
  version: '0'
67
- segments:
68
- - 0
69
- hash: 118299963058937580
70
64
  requirements: []
71
65
  rubyforge_project:
72
- rubygems_version: 1.8.24
66
+ rubygems_version: 1.8.22
73
67
  signing_key:
74
68
  specification_version: 3
75
69
  summary: sinon-chai.js via asset pipeline