better_receive 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/better_receive/base.rb +1 -1
- data/lib/better_receive/version.rb +1 -1
- metadata +2 -2
data/lib/better_receive/base.rb
CHANGED
@@ -11,7 +11,7 @@ module BetterReceive
|
|
11
11
|
attr_reader :subject
|
12
12
|
|
13
13
|
def subject_is_any_instance?
|
14
|
-
subject.is_a?(RSpec::Mocks::AnyInstance::Recorder)
|
14
|
+
defined?(RSpec::Mocks::AnyInstance) && subject.is_a?(RSpec::Mocks::AnyInstance::Recorder)
|
15
15
|
end
|
16
16
|
|
17
17
|
def respond_to(selector)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: better_receive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-02-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|