evil_systems 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +11 -13
- data/lib/evil_systems/register_cuprite.rb +2 -2
- data/lib/evil_systems/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f25403b04dfc7644ae7936f3bb5a91412f21c5f789507a39dedf8d12a6ef0ccb
|
4
|
+
data.tar.gz: 721ef96247a864c4873bf3293f57eefcc02049bc2e67b87dab0e0116f16b5b92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65ff0d4dc4c7d7985ea032e8d2171b01f0cd1d1262d381d203813de53e801a885de6eba12e79ff25960faf2743bdc4aebe0bd4bd84e85e1dbf45e8983d94e18c
|
7
|
+
data.tar.gz: e35bffb30e2bdcda404114496c15e6b25c3989ee122cbd3b9e08236249249b4385c0fd699d483cfdd9305f3310b34a9bcbcb6b41b3da19f22a00c30684275953
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -25,28 +25,24 @@ https://rdoc.info/github/paramagicdev/evil_systems/main
|
|
25
25
|
|
26
26
|
## Installation
|
27
27
|
|
28
|
-
```
|
29
|
-
|
30
|
-
group :test do
|
31
|
-
gem 'evil_systems', '~> 0.1.0'
|
32
|
-
end
|
28
|
+
```bash
|
29
|
+
bundle add evil_systems --group=test
|
33
30
|
```
|
34
31
|
|
35
32
|
Make sure the following 3 gems are in your `Gemfile` as well:
|
36
33
|
|
37
34
|
```ruby
|
38
35
|
# Gemfile
|
39
|
-
gem 'capybara'
|
40
|
-
gem 'cuprite' # Optional
|
41
|
-
gem 'selenium-webdriver' # Not required if using Cuprite and using Rails >= 6.1
|
42
|
-
```
|
43
36
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
37
|
+
group :test do
|
38
|
+
gem 'capybara'
|
39
|
+
gem 'cuprite' # Optional
|
40
|
+
gem 'selenium-webdriver' # Not required if using Cuprite and using Rails >= 6.1
|
41
|
+
end
|
48
42
|
```
|
49
43
|
|
44
|
+
> Note: `bundle add` by default appends the gem to the bottom of your `Gemfile`, which means not in the `test` group of gems. If the `capybara` gem is in the `test` group, but `evil_systems` is not, you will not be able to load your application in production. Be sure that `evil_systems` is placed in the same group as `capybara` (we recommend the `test` group).
|
45
|
+
|
50
46
|
## Setup
|
51
47
|
|
52
48
|
### Minitest
|
@@ -67,6 +63,8 @@ require 'capybara/cuprite'
|
|
67
63
|
require 'evil_systems'
|
68
64
|
|
69
65
|
EvilSystems.initial_setup
|
66
|
+
# To pass in driver_options to cuprite you can do the following:
|
67
|
+
# EvilSystems.initial_setup(driver_options: { process_timeout: 20 })
|
70
68
|
|
71
69
|
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
|
72
70
|
driven_by :evil_cuprite
|
@@ -9,7 +9,7 @@ module EvilSystems
|
|
9
9
|
# driven_by :evil_cuprite, using: :chrome, screen_size: [1400, 1400]
|
10
10
|
# The initial setup prior to the class ApplicationSystemTestCase, runs before the entire test suite.
|
11
11
|
# @return [void]
|
12
|
-
def self.initial_setup
|
12
|
+
def self.initial_setup(driver_options: {})
|
13
13
|
return unless defined? Capybara::Cuprite
|
14
14
|
|
15
15
|
begin
|
@@ -30,7 +30,7 @@ module EvilSystems
|
|
30
30
|
process_timeout: process_timeout,
|
31
31
|
slowmo: ENV.fetch("SLOWMO", 0).to_f,
|
32
32
|
inspector: true
|
33
|
-
}.merge(remote_options)
|
33
|
+
}.merge(remote_options).merge(driver_options)
|
34
34
|
)
|
35
35
|
end
|
36
36
|
end
|
data/lib/evil_systems/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evil_systems
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ParamagicDev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
|
-
rubygems_version: 3.
|
98
|
+
rubygems_version: 3.2.3
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: Fully integrated setup based on EvilMartians system of a test
|