fakeweb-matcher 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/fake_web_matcher.rb +2 -2
- metadata +3 -3
data/VERSION.yml
CHANGED
data/lib/fake_web_matcher.rb
CHANGED
@@ -26,7 +26,7 @@ FakeWeb::Registry.class_eval do
|
|
26
26
|
include FakeWebMatcher::Extension
|
27
27
|
end
|
28
28
|
|
29
|
-
rspec = defined?(
|
29
|
+
rspec = defined?(RSpec) ? RSpec : Spec::Runner
|
30
30
|
rspec.configure { |config|
|
31
31
|
# Adding the custom matcher to the default set
|
32
32
|
config.include FakeWebMatcher::Matchers
|
@@ -35,4 +35,4 @@ rspec.configure { |config|
|
|
35
35
|
config.before :each do
|
36
36
|
FakeWeb::Registry.instance.clear_requests
|
37
37
|
end
|
38
|
-
}
|
38
|
+
} if rspec.respond_to?(:configure)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fakeweb-matcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 2
|
10
|
+
version: 1.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Pat Allan
|