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 +4 -4
- data/README.md +6 -0
- data/lib/utensils/capybara_javascript.rb +9 -1
- data/lib/utensils/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: 867566b2368297ec3c07f41652ea5006f841b98a
|
4
|
+
data.tar.gz: ae87f5270e93c0d424c346e29695e587be77ade1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/utensils/version.rb
CHANGED
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
|
+
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-
|
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:
|