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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c83d9b2141173a041d9e1663c691b04a205c4de33c18926461daee3b9ae391d4
4
- data.tar.gz: 778e72c29d450c283e6a9ce286e5620029a109aa431f9052c8faa45084c055fb
3
+ metadata.gz: c466a7c113bf41e61ead34a21d8666c036d09546b047796c8c36cbf86eb95a30
4
+ data.tar.gz: f83e2c29694819e70f5e1764ac92149c54029ef05eab94d0d8d5c5d21c36f937
5
5
  SHA512:
6
- metadata.gz: 8f1cade64c4f782b06b41c68421bbfc8306f0e17b970a89ec5db5a0ac052e8a8a6f8b96e9ab80a40ae902c5a02c0f34ae7ed546adfd53cf236aa0f3c54420538
7
- data.tar.gz: ead4bb043bd20908efdb7cca782e9712e18be8e637af8cc4c50d8c060a4c19e08637a0f5c5e3b6919a7b6545bb45da37895d1aeae771d144747236ba6ecb47b9
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pludoni_rspec (0.10.1)
4
+ pludoni_rspec (0.11)
5
5
  capybara (>= 3.13.2)
6
6
  cuprite
7
7
  fuubar (>= 2.3.1)
@@ -13,6 +13,7 @@ Capybara.register_driver(:cuprite_pl) do |app|
13
13
  window_size: [1200, 800],
14
14
  browser_options: options,
15
15
  js_errors: true,
16
+ env: { "LD_PRELOAD" => "" },
16
17
  timeout: 20,
17
18
  process_timeout: 15,
18
19
  inspector: ENV['INSPECTOR']
@@ -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.reset
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
- config.fixture_path = "#{::Rails.root}/spec/fixtures"
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)
@@ -1,3 +1,3 @@
1
1
  module PludoniRspec
2
- VERSION = "0.10.1".freeze
2
+ VERSION = "0.11".freeze
3
3
  end
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.10.1
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-03-09 00:00:00.000000000 Z
11
+ date: 2023-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara