pretender-rails 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pretender/rails/server.rb +2 -4
- data/lib/pretender/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a33545cb30e777b87bc5de57e65e6d0eec29e612
|
4
|
+
data.tar.gz: fa648835bee8f11bb5d5ac2e69c28da4280cc508
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e140023d2d7598cfc3238be675f3dce72d22156c7ad0671cf192d6ce50c274b33cd11cd89915d3a399d93ab8c1585784d216a92492d907efa27ebf058c0721b
|
7
|
+
data.tar.gz: 738e0c20f86ad527900f722b913f6e37faed786ef4abe2019544c081f804157cd993b8055a1814ea1eec523fd579497045b3f02b0f3a02b6b30c2b8edd2f49a2
|
@@ -18,10 +18,8 @@ module Pretender
|
|
18
18
|
|
19
19
|
def shutdown(page)
|
20
20
|
stubs.clear
|
21
|
-
|
22
|
-
|
23
|
-
end
|
24
|
-
rescue Capybara::NotSupportedByDriver => e
|
21
|
+
page.driver.execute_script('typeof(server) !== "undefined" && server.shutdown();')
|
22
|
+
rescue Capybara::NotSupportedByDriverError => e
|
25
23
|
end
|
26
24
|
|
27
25
|
def stub(method, route, response)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pretender-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chase McCarthy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|