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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ec1ff6ecb58d8f0818f17bdce6fa7be134b5568
4
- data.tar.gz: ba026fc420d75d51ba17233335b43d3ebd2b663a
3
+ metadata.gz: a33545cb30e777b87bc5de57e65e6d0eec29e612
4
+ data.tar.gz: fa648835bee8f11bb5d5ac2e69c28da4280cc508
5
5
  SHA512:
6
- metadata.gz: 4f99b2b324c8d48811266538409e748e664e6a7b1a8031c8287db7df899a744b0e6aea796fa99eb7329c93bc15349f0e1ee6a819b6313a1f0b83f9627d5e941b
7
- data.tar.gz: ce84d57e34a62cb124b0e737590bb31a8379d55d8614a0fd2b557c35840d1a6785f252fed2a66a84656dfb644e668fefebaeeb406addee46cab3c2dace5ec171
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
- if page.driver.browser.respond_to? :execute_script
22
- page.execute_script('typeof(server) !== "undefined" && server.shutdown();')
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)
@@ -1,5 +1,5 @@
1
1
  module Pretender
2
2
  module Rails
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
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.3
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-10-19 00:00:00.000000000 Z
11
+ date: 2015-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler