rspec_candy 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,11 +12,11 @@ module RSpecCandy
|
|
12
12
|
method_with_spy = "#{method_base}_with_spy#{method_suffix}"
|
13
13
|
method_without_spy = "#{method_base}_without_spy#{method_suffix}"
|
14
14
|
|
15
|
-
method_defined_directly = (private_methods + protected_methods + public_methods).include?(method) # not method_missing
|
16
|
-
|
17
15
|
prototype = respond_to?(:singleton_class) ? singleton_class : metaclass
|
18
16
|
prototype.class_eval do
|
19
17
|
|
18
|
+
method_defined_directly = method_defined?(method) || private_method_defined?(method) # check that a method is not "defined" by responding to method_missing
|
19
|
+
|
20
20
|
define_method method_called do |*args|
|
21
21
|
end
|
22
22
|
|
data/lib/rspec_candy/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_candy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 5
|
10
|
+
version: 0.2.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Henning Koch
|