rspeckled 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rspeckled/plugins/extensions/awesome_print.rb +1 -1
- data/lib/rspeckled/plugins/extensions/selenium/drivers/chrome.rb +11 -17
- data/lib/rspeckled/plugins/extensions/selenium/drivers/firefox.rb +1 -1
- data/lib/rspeckled/plugins/hooks/stripe.rb +11 -1
- data/lib/rspeckled/version.rb +1 -1
- metadata +27 -26
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b69c97782152e63b5901760748e17d6c77ef9d4d65c1c2d0f6ba7e14a081d0c3
|
4
|
+
data.tar.gz: ef011710d66446c9011293e1b749c1360c38923bf49df6acd9ff11f33bc71611
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d988561d065da0754efcc0f89c5c80990864b18660c96326b1f26a9eb67969cfbd503f100b168c7a173ada02e4e1d350f5668c51721586b69482cf7211c54b63
|
7
|
+
data.tar.gz: 851ea16b0d5b2ac9c7275f165b8b7c00ba54ba941987dec20afdcd99ceace828869d6b800cd90bdfae8b359647c42117e425b6b888535fbfeb4d4a69c9ff889b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -13,16 +13,16 @@ class Chrome
|
|
13
13
|
def driver(app)
|
14
14
|
::Capybara::Selenium::Driver.new(
|
15
15
|
app,
|
16
|
-
:browser
|
17
|
-
:
|
16
|
+
:browser => :chrome,
|
17
|
+
:options => options
|
18
18
|
)
|
19
19
|
end
|
20
20
|
|
21
21
|
def headless(app)
|
22
22
|
::Capybara::Selenium::Driver.new(
|
23
23
|
app,
|
24
|
-
:browser
|
25
|
-
:
|
24
|
+
:browser => :chrome,
|
25
|
+
:options => headless_options
|
26
26
|
)
|
27
27
|
end
|
28
28
|
|
@@ -35,23 +35,17 @@ class Chrome
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def options
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
},
|
44
|
-
'args' => %w{
|
45
|
-
window-size=1920,1200
|
46
|
-
},
|
47
|
-
},
|
48
|
-
}
|
38
|
+
browser_options = ::Selenium::WebDriver::Chrome::Options.new
|
39
|
+
browser_options.add_preference(:profile, :prompt_for_download => { :popups => 0 })
|
40
|
+
browser_options.add_preference(:download, :default_directory => downloads_directory)
|
41
|
+
browser_options.add_argument('--window-size=1920,1200')
|
42
|
+
browser_options
|
49
43
|
end
|
50
44
|
|
51
45
|
def headless_options
|
52
46
|
options.dup.tap do |browser_options|
|
53
|
-
browser_options
|
54
|
-
browser_options
|
47
|
+
browser_options.add_argument('--headless')
|
48
|
+
browser_options.add_argument('--disable-gpu')
|
55
49
|
end
|
56
50
|
end
|
57
51
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
RSpec.configure do |config|
|
4
|
-
config.
|
4
|
+
config.around(:each, :stripe => true) do |example|
|
5
5
|
config.rspeckled_logger.debug("Before Each - Start - #{__FILE__}")
|
6
6
|
|
7
7
|
if defined?(::VCR)
|
@@ -14,6 +14,8 @@ RSpec.configure do |config|
|
|
14
14
|
::WebMock.allow_net_connect!
|
15
15
|
end
|
16
16
|
|
17
|
+
::StripeMock.start if defined?(::StripeMock)
|
18
|
+
|
17
19
|
begin
|
18
20
|
::Stripe::Plan.all(:count => 100).each do |plan|
|
19
21
|
plan.delete if plan.id.match(/test/i) || plan.name.match(/test/i)
|
@@ -26,5 +28,13 @@ RSpec.configure do |config|
|
|
26
28
|
end
|
27
29
|
|
28
30
|
config.rspeckled_logger.debug("Before Each - End - #{__FILE__}")
|
31
|
+
|
32
|
+
example.run
|
33
|
+
|
34
|
+
config.rspeckled_logger.debug("After Each - Start - #{__FILE__}")
|
35
|
+
|
36
|
+
::StripeMock.stop if defined?(::StripeMock)
|
37
|
+
|
38
|
+
config.rspeckled_logger.debug("After Each - End - #{__FILE__}")
|
29
39
|
end
|
30
40
|
end
|
data/lib/rspeckled/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspeckled
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thegranddesign
|
@@ -10,32 +10,33 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
13
|
+
MIIEljCCAv6gAwIBAgIBATANBgkqhkiG9w0BAQsFADA6MTgwNgYDVQQDDC9jYXRj
|
14
|
+
aGFsbF9ydWJ5Z2Vtcy9EQz1saXZpbmdoaWdob250aGVibG9nL0RDPWNvbTAeFw0x
|
15
|
+
OTA4MTYxNTQ0MjRaFw0yMDA4MTUxNTQ0MjRaMDoxODA2BgNVBAMML2NhdGNoYWxs
|
16
|
+
X3J1YnlnZW1zL0RDPWxpdmluZ2hpZ2hvbnRoZWJsb2cvREM9Y29tMIIBojANBgkq
|
17
|
+
hkiG9w0BAQEFAAOCAY8AMIIBigKCAYEA0otlhSPyU7jLLW1p786Mo/pV5cJ1Ed8D
|
18
|
+
/bJK78PqGFO2h0ZUefupxT5PRMokLYNNGRPopnAAxZ0zVxJ68aOyYCBW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3ijd0nJo2OohnobwtbNvw+CsGqdDO/sh6Ju0XVt+Qh9UWfvgwxTqo8Xo
|
34
|
+
PvMez1fN9jaJVYm2AJHE3tUESRQncGrj5dkSUHh1CLmxLpEyJWBVOHAoyngdpCCr
|
35
|
+
QPT2vOpHMmAObSHhrm3COhII8nJPHVG9wx9QYYEEVmvEEC0Kx3qxZmVuYQ9jID5L
|
36
|
+
6ZCHhOtYwlYSqOmGfPSsB7i1W4YABE86ZQaPEwhuPkkdvqSFUSryDLpcB8S/2fp4
|
37
|
+
bHTbBi7YQCFxKay21QDo3HPPRBq4YQ+Xy9w=
|
37
38
|
-----END CERTIFICATE-----
|
38
|
-
date: 2019-
|
39
|
+
date: 2019-08-16 00:00:00.000000000 Z
|
39
40
|
dependencies:
|
40
41
|
- !ruby/object:Gem::Dependency
|
41
42
|
name: rspec
|
metadata.gz.sig
CHANGED
Binary file
|