pludoni_rspec 0.10.1 → 0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/pludoni_rspec/cuprite.rb +1 -0
- data/lib/pludoni_rspec/spec_helper.rb +11 -2
- data/lib/pludoni_rspec/version.rb +1 -1
- data/lib/pludoni_rspec.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c466a7c113bf41e61ead34a21d8666c036d09546b047796c8c36cbf86eb95a30
|
4
|
+
data.tar.gz: f83e2c29694819e70f5e1764ac92149c54029ef05eab94d0d8d5c5d21c36f937
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 810faf546e1d8b267fb03ed3034fce9985d37484482befb490a0bf33206870d35c673fed0f4be6277a46315c63aa991e81d5637e3f78482df8fa0b1e4b974b32
|
7
|
+
data.tar.gz: f5e335409f4ecb041ffbbabe2de88cf81b3c63f080eed031d74bf55fd315da8b1466bd10257e4e8855115e3bef47e0eabe4ab7ff8c47d48669158e6e7bf169d7
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
### 0.11
|
2
|
+
|
3
|
+
- Rails 7.1 fixture_paths deprecation
|
4
|
+
- Cuprite with ``LD_PRELOAD => ""`` to fix jmalloc errors
|
5
|
+
- Added ``PludoniRspec.coverage_enabled`` to make it possible to disable coverage
|
6
|
+
- Support Fabrication Gem versions
|
7
|
+
|
1
8
|
### 0.10
|
2
9
|
|
3
10
|
- Optional Vite build before first system spec
|
data/Gemfile.lock
CHANGED
@@ -7,7 +7,11 @@ RSpec.configure do |config|
|
|
7
7
|
config.before do
|
8
8
|
I18n.locale = I18n.default_locale
|
9
9
|
if defined?(Fabrication)
|
10
|
-
Fabrication::Sequencer.
|
10
|
+
if Fabrication::Sequencer.respond_to?(:clear)
|
11
|
+
Fabrication::Sequencer.clear
|
12
|
+
else
|
13
|
+
Fabrication::Sequencer.reset
|
14
|
+
end
|
11
15
|
end
|
12
16
|
end
|
13
17
|
|
@@ -17,7 +21,12 @@ RSpec.configure do |config|
|
|
17
21
|
|
18
22
|
config.bisect_runner = :shell
|
19
23
|
config.order = :defined
|
20
|
-
|
24
|
+
if Rails.version.to_f >= 7.1
|
25
|
+
config.fixture_paths ||= []
|
26
|
+
config.fixture_paths << "#{::Rails.root}/spec/fixtures"
|
27
|
+
else
|
28
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
29
|
+
end
|
21
30
|
config.infer_spec_type_from_file_location!
|
22
31
|
config.use_transactional_fixtures = true
|
23
32
|
if defined?(ActionMailer::Base)
|
data/lib/pludoni_rspec.rb
CHANGED
@@ -9,16 +9,18 @@ module PludoniRspec
|
|
9
9
|
attr_accessor :wrap_js_spec_in_headless
|
10
10
|
attr_accessor :chrome_arguments
|
11
11
|
attr_accessor :capybara_timeout
|
12
|
+
attr_accessor :coverage_enabled
|
12
13
|
end
|
13
14
|
# self.chrome_driver_version = "2.36"
|
14
15
|
self.destroy_headless = false
|
15
16
|
self.wrap_js_spec_in_headless = RbConfig::CONFIG['host_os']['linux']
|
16
17
|
# self.chrome_arguments = ['headless', 'disable-gpu', "window-size=1600,1200", 'no-sandbox', 'disable-dev-shm-usage', 'lang=de']
|
17
18
|
self.capybara_timeout = ENV['CI'] == '1' ? 30 : 5
|
19
|
+
self.coverage_enabled = true
|
18
20
|
end
|
19
21
|
def self.run
|
20
22
|
ENV["RAILS_ENV"] ||= 'test'
|
21
|
-
coverage!
|
23
|
+
coverage! if Config.coverage_enabled
|
22
24
|
require 'pry'
|
23
25
|
require File.expand_path("config/environment", Dir.pwd)
|
24
26
|
abort("The Rails environment is running in production mode!") if Rails.env.production?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pludoni_rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.11'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Wienert
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|