utensils 1.4.4 → 1.5.0

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: 2259872a2fc6f41a003e6ef179fab71f70b60e77
4
- data.tar.gz: 7c776b6db9900a42d6601e0835d9be78a9353150
3
+ metadata.gz: 867566b2368297ec3c07f41652ea5006f841b98a
4
+ data.tar.gz: ae87f5270e93c0d424c346e29695e587be77ade1
5
5
  SHA512:
6
- metadata.gz: 8d8730c61770db1c11f138e269327fe843d5dbf4abdd94fab3239810a1b1b0c9579a3a7a9c5f9efebfa5c5981532e8a27a099d4d834cbc8fb2febe8c6c848c8e
7
- data.tar.gz: 8d0f5a11fd6cf0c8c9e35b809d723bde0a2c3527b9e40969ad3e7a8110ebfe5c8b7bc1fe3809afddc60e94e300d3a735684a98a9407a22006f3ccf236a32d512
6
+ metadata.gz: c338ac0560e65e7e485cc547ec41a54a846ebbf146b591d05525b313d34fa03f73521f5178adb8505cfd44bf87e609b17ce326cf2223d6a3a5ae3aeafdc37189
7
+ data.tar.gz: 3a638ae92b4904718c6c354010634ab1de68d24036c826d5596af80bec399ed9b0098cb30db05dedb55a04c6124bc1918331800d5940826844814d00aa459940
data/README.md CHANGED
@@ -39,6 +39,12 @@ page.find(book_2).drag_to(page.find(book_1))
39
39
 
40
40
  Switches javascript driver to poltergeist
41
41
 
42
+ To use Poltegeist with [remote debugging](https://github.com/teampoltergeist/poltergeist/blob/master/README.md#remote-debugging-experimental), run test with `POLTERGEIST_DEBUG` set.
43
+
44
+ ```sh
45
+ POLTERGEIST_DEBUG=1 rspec spec/features/broken_feature_spec.rb
46
+ ```
47
+
42
48
  ### capybara_screenshot
43
49
 
44
50
  Automatically saves an html file viewable at
@@ -1,2 +1,10 @@
1
1
  require 'capybara/poltergeist'
2
- Capybara.javascript_driver = :poltergeist
2
+ Capybara.register_driver :poltergeist_debug do |app|
3
+ Capybara::Poltergeist::Driver.new(app, inspector: true)
4
+ end
5
+
6
+ Capybara.javascript_driver = if ENV["POLTERGEIST_DEBUG"]
7
+ :poltergeist_debug
8
+ else
9
+ :poltergeist
10
+ end
@@ -1,3 +1,3 @@
1
1
  module Utensils
2
- VERSION = '1.4.4'
2
+ VERSION = '1.5.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utensils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-03 00:00:00.000000000 Z
11
+ date: 2016-07-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rspec stuff we use over and over again
14
14
  email: