rspec-fire 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY CHANGED
@@ -38,3 +38,6 @@
38
38
 
39
39
  1.1.2 - 10 August 2012
40
40
  * Fix use of `const_{get,defined?}` to handle undefined consts like A::Hash.
41
+
42
+ 1.1.3 - 3 September 2012
43
+ * Use __send__ in case classes have overriden it. (#25)
@@ -161,7 +161,7 @@ module RSpec
161
161
 
162
162
  def ensure_arity(actual)
163
163
  @double.with_doubled_class do |klass|
164
- klass.send(@method_finder, @sym).should support_arity(actual)
164
+ klass.__send__(@method_finder, @sym).should support_arity(actual)
165
165
  end
166
166
  end
167
167
 
@@ -212,7 +212,7 @@ module RSpec
212
212
 
213
213
  # to_sym for non-1.9 compat
214
214
  @@_implemented_methods_cache[[doubled_class, checked_methods]] ||=
215
- doubled_class.send(checked_methods).map(&:to_sym)
215
+ doubled_class.__send__(checked_methods).map(&:to_sym)
216
216
  end
217
217
 
218
218
  def unimplemented_methods(doubled_class, expected_methods, checked_methods)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rspec-fire'
3
- s.version = '1.1.2'
3
+ s.version = '1.1.3'
4
4
  s.summary = 'More resilient test doubles for RSpec.'
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = ["Xavier Shay"]
@@ -27,6 +27,10 @@ class TestClass
27
27
  def self.use
28
28
  raise "Y U NO MOCK?"
29
29
  end
30
+
31
+ def self.send
32
+ # fake out
33
+ end
30
34
  end
31
35
 
32
36
  shared_examples_for "verifying named constants" do |double_method|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-fire
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-11 00:00:00.000000000 Z
12
+ date: 2012-09-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &2160766260 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '2.11'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2160766260
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '2.11'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: rake
27
- requirement: &2160765580 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,7 +37,12 @@ dependencies:
32
37
  version: '0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *2160765580
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  description:
37
47
  email:
38
48
  - hello@xaviershay.com
@@ -69,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
79
  version: '0'
70
80
  requirements: []
71
81
  rubyforge_project:
72
- rubygems_version: 1.8.6
82
+ rubygems_version: 1.8.24
73
83
  signing_key:
74
84
  specification_version: 3
75
85
  summary: More resilient test doubles for RSpec.