ehbrs-tools 0.23.1 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ehbrs/tools/runner/finances/bb_browser.rb +38 -9
  3. data/lib/ehbrs/tools/version.rb +1 -1
  4. data/vendor/aranha-parsers/aranha-parsers.gemspec +2 -2
  5. data/vendor/aranha-parsers/lib/aranha/parsers/rspec.rb +11 -0
  6. data/vendor/aranha-parsers/lib/aranha/parsers/rspec/setup_include.rb +17 -0
  7. data/vendor/aranha-parsers/lib/aranha/parsers/{spec → rspec}/source_target_fixtures_example.rb +0 -0
  8. data/vendor/aranha-parsers/lib/aranha/parsers/version.rb +1 -1
  9. data/vendor/aranha-parsers/spec/lib/rubocop_check_spec.rb +1 -1
  10. data/vendor/aranha-parsers/spec/spec_helper.rb +2 -9
  11. data/vendor/aranha-selenium/aranha-selenium.gemspec +2 -2
  12. data/vendor/aranha-selenium/lib/aranha/selenium/version.rb +1 -1
  13. data/vendor/aranha-selenium/spec/rubocop_check_spec.rb +1 -5
  14. data/vendor/aranha-selenium/spec/spec_helper.rb +2 -98
  15. data/vendor/eac_cli/eac_cli.gemspec +3 -3
  16. data/vendor/eac_cli/lib/eac_cli/config/entry.rb +0 -2
  17. data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
  18. data/vendor/eac_cli/spec/rubocop_spec.rb +1 -1
  19. data/vendor/eac_cli/spec/spec_helper.rb +2 -101
  20. data/vendor/eac_config/eac_config.gemspec +2 -2
  21. data/vendor/eac_config/lib/eac_config/version.rb +1 -1
  22. data/vendor/eac_config/spec/rubocop_spec.rb +1 -1
  23. data/vendor/eac_config/spec/spec_helper.rb +2 -15
  24. data/vendor/eac_docker/eac_docker.gemspec +2 -2
  25. data/vendor/eac_docker/lib/eac_docker/container.rb +7 -3
  26. data/vendor/eac_docker/lib/eac_docker/images/templatized.rb +4 -0
  27. data/vendor/eac_docker/lib/eac_docker/rspec.rb +2 -10
  28. data/vendor/eac_docker/lib/eac_docker/rspec/setup_include.rb +23 -0
  29. data/vendor/eac_docker/lib/eac_docker/version.rb +1 -1
  30. data/vendor/eac_docker/spec/rubocop_spec.rb +1 -1
  31. data/vendor/eac_docker/spec/spec_helper.rb +2 -104
  32. data/vendor/eac_ruby_base0/eac_ruby_base0.gemspec +4 -4
  33. data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +1 -1
  34. data/vendor/eac_ruby_base0/spec/rubocop_spec.rb +1 -1
  35. data/vendor/eac_ruby_base0/spec/spec_helper.rb +2 -101
  36. data/vendor/eac_ruby_utils/eac_ruby_utils.gemspec +1 -1
  37. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/executable.rb +15 -3
  38. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/gems_registry.rb +36 -0
  39. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/gems_registry/gem.rb +39 -0
  40. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/default_setup.rb +18 -0
  41. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup.rb +45 -0
  42. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  43. data/vendor/eac_ruby_utils/spec/rubocop_check_spec.rb +1 -1
  44. data/vendor/eac_ruby_utils/spec/spec_helper.rb +6 -6
  45. data/vendor/ehbrs_ruby_utils/ehbrs_ruby_utils.gemspec +4 -3
  46. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/finances/bb_browser/docker_image.rb +18 -0
  47. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/patches/object/template.rb +6 -0
  48. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/version.rb +1 -1
  49. data/vendor/ehbrs_ruby_utils/spec/lib/ehbrs_ruby_utils/videos/stream_spec.rb +0 -1
  50. data/vendor/ehbrs_ruby_utils/spec/rubocop_check_spec.rb +1 -1
  51. data/vendor/ehbrs_ruby_utils/spec/spec_helper.rb +2 -101
  52. data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/finances/bb_browser/docker_image/Dockerfile +44 -0
  53. data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/finances/bb_browser/docker_image/Makefile +35 -0
  54. data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/finances/bb_browser/docker_image/README.md +16 -0
  55. data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/finances/bb_browser/docker_image/context/firefox.service +8 -0
  56. data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/finances/bb_browser/docker_image/context/startbrowser.sh +9 -0
  57. metadata +21 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 429a63c4ba2d38ccc0c997ca4abd9a224fe7cb37de219390f9bbbab15adc9698
4
- data.tar.gz: 6b23e3bab5b16c34fa33f78d0f1c2ad122826d83cc60c92890d815a187738b1f
3
+ metadata.gz: dbfa70bd079e79c23dd182fca2f0183300fbd9dc14353b36fce775212a00dd22
4
+ data.tar.gz: 951a03991227e106898cfe9b3fced882c5e5c02232d74d10431a3fb69180e807
5
5
  SHA512:
6
- metadata.gz: d12489f3f71db60bf4c39b6e4d705165e5b89d2b0a1bf17f13c2a20b9580c4e994f3eaba68bb736ace35d141632d7d8acf2700020b8d04cf9d34f3293fa2eb4d
7
- data.tar.gz: 74b605f93c3f8832aea0ba7871ff580a83955cf385d9cb3aed6c90a3d96b6745fefc3a7b02dc1850c3599bd8ae263c3b324c9c7caf68b25d9c646168e40f3f2a
6
+ metadata.gz: c3aa2218cbbfe65e71c9de03b9d8413475c2292013de2820d9e10fbd020df45d78c1f5a1408cbd6deb5bbb9bf8e5553891579ce36657bfbff2c4cb4225878562
7
+ data.tar.gz: 70b9939f9efcd0637e6ba3b8bc5049466a37ce9d03f455f25716876c1e7b59ff38823e394a524fb6399e47d6d1bf3761b8ebdb8e971978ba7503d0999abe049f
@@ -1,8 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'eac_cli/core_ext'
4
- require 'ehbrs/videos/extract/package'
5
- require 'eac_docker/images/named'
3
+ require 'ehbrs/core_ext'
4
+ require 'ehbrs_ruby_utils/finances/bb_browser/docker_image'
6
5
 
7
6
  module Ehbrs
8
7
  module Tools
@@ -14,21 +13,51 @@ module Ehbrs
14
13
  end
15
14
 
16
15
  def run
17
- infov 'Docker run arguments', docker_container.run_command_args
16
+ infov 'Docker run arguments', ::Shellwords.join(docker_container.run_command_args)
18
17
  infov 'System result', docker_container.run_command.system
19
18
  end
20
19
 
21
20
  private
22
21
 
23
22
  def docker_image_uncached
24
- ::EacDocker::Images::Named.new('lichti/warsaw-browser')
23
+ ::EhbrsRubyUtils::Finances::BbBrowser::DockerImage.create
25
24
  end
26
25
 
27
26
  def docker_container_uncached
28
- docker_image.container.env('DISPLAY', "unix#{ENV.fetch('DISPLAY')}")
29
- .volume(::File.join(ENV['HOME'], 'Downloads'), '/home/bank/Downloads')
30
- .volume('/tmp/.X11-unix', '/tmp/.X11-unix').command_arg('bb')
31
- .temporary(true).interactive(true).tty(true)
27
+ r = docker_image.container
28
+ .temporary(true).interactive(true).tty(true)
29
+ .command_arg('seg.bb.com.br')
30
+ %w[capabilities environment_variables volumes].inject(r) do |a, e|
31
+ send("docker_container_#{e}", a)
32
+ end
33
+ end
34
+
35
+ def docker_container_capabilities(container)
36
+ %w[CAP_AUDIT_WRITE CAP_SYS_PTRACE].inject(container) { |a, e| a.capability(e) }
37
+ end
38
+
39
+ def docker_container_environment_variables(container)
40
+ {
41
+ 'USER_UID' => user_id,
42
+ 'USER_GID' => group_id
43
+ }.inject(container) { |a, e| a.env(e[0], e[1]) }
44
+ end
45
+
46
+ def docker_container_volumes(container)
47
+ {
48
+ ::File.join(ENV.fetch('HOME'), 'Downloads') => '/home/user/Downloads',
49
+ ::File.join(ENV.fetch('HOME'), '.Xauthority') => '/home/user/.Xauthority:ro',
50
+ '/tmp/.X11-unix' => '/tmp/.X11-unix:ro',
51
+ '/etc/machine-id' => '/etc/machine-id:ro'
52
+ }.inject(container) { |a, e| a.volume(e[0], e[1]) }
53
+ end
54
+
55
+ def user_id
56
+ ::EacRubyUtils::Envs.local.command('id', '-u').execute!.strip
57
+ end
58
+
59
+ def group_id
60
+ ::EacRubyUtils::Envs.local.command('id', '-g').execute!.strip
32
61
  end
33
62
  end
34
63
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ehbrs
4
4
  module Tools
5
- VERSION = '0.23.1'
5
+ VERSION = '0.24.0'
6
6
  end
7
7
  end
@@ -15,9 +15,9 @@ Gem::Specification.new do |s|
15
15
  s.add_dependency 'activesupport', '>= 4.0.0'
16
16
  s.add_dependency 'addressable', '~> 2.7'
17
17
  s.add_dependency 'curb', '~> 0.9.10'
18
- s.add_dependency 'eac_ruby_utils', '~> 0.33', '>= 0.33.1'
18
+ s.add_dependency 'eac_ruby_utils', '~> 0.70'
19
19
  s.add_dependency 'httpclient', '~> 2.8', '>= 2.8.3'
20
20
  s.add_dependency 'ofx-parser', '~> 1.1.0'
21
21
 
22
- s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
22
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.3'
23
23
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Aranha
6
+ module Parsers
7
+ module Rspec
8
+ require_sub __FILE__
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Aranha
6
+ module Parsers
7
+ module Rspec
8
+ module SetupInclude
9
+ class << self
10
+ def setup(_setup_obj)
11
+ require 'aranha/parsers/rspec/source_target_fixtures_example'
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Aranha
4
4
  module Parsers
5
- VERSION = '0.7.2'
5
+ VERSION = '0.8.0'
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ::EacRubyGemSupport::Rspec.default.describe_rubocop
3
+ ::EacRubyUtils::Rspec.default_setup.describe_rubocop
@@ -1,11 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- $LOAD_PATH.push File.expand_path('../lib', __dir__)
4
- require 'tmpdir'
5
-
6
- RSpec.configure do |config|
7
- config.example_status_persistence_file_path = ::File.join(::Dir.tmpdir, 'aranha-parsers_rspec')
8
-
9
- require 'eac_ruby_gem_support/rspec'
10
- ::EacRubyGemSupport::Rspec.setup(::File.expand_path('..', __dir__), config)
11
- end
3
+ require 'eac_ruby_utils/rspec/default_setup'
4
+ ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib}/**/*', 'Gemfile']
14
14
 
15
- s.add_dependency 'activesupport'
15
+ s.add_dependency 'eac_ruby_utils', '~> 0.70'
16
16
  s.add_dependency 'selenium-webdriver', '~> 3.142', '>= 3.142.3'
17
17
 
18
- s.add_development_dependency 'eac_ruby_gem_support', '~> 0.1', '>= 0.1.1'
18
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.3'
19
19
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Aranha
4
4
  module Selenium
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.2'
6
6
  end
7
7
  end
@@ -1,7 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'eac_ruby_gem_support/spec/examples/rubocop_check'
4
-
5
- RSpec.describe ::RuboCop do
6
- include_examples 'rubocop_check', ::File.expand_path('..', __dir__)
7
- end
3
+ ::EacRubyUtils::Rspec.default_setup.describe_rubocop
@@ -1,100 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This file was generated by the `rspec --init` command. Conventionally, all
4
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
5
- # The generated `.rspec` file contains `--require spec_helper` which will cause
6
- # this file to always be loaded, without a need to explicitly require it in any
7
- # files.
8
- #
9
- # Given that it is always loaded, you are encouraged to keep this file as
10
- # light-weight as possible. Requiring heavyweight dependencies from this file
11
- # will add to the boot time of your test suite on EVERY test run, even for an
12
- # individual file that may not need all of that loaded. Instead, consider making
13
- # a separate helper file that requires the additional dependencies and performs
14
- # the additional setup, and require it from the spec files that actually need
15
- # it.
16
- #
17
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
18
- RSpec.configure do |config|
19
- # rspec-expectations config goes here. You can use an alternate
20
- # assertion/expectation library such as wrong or the stdlib/minitest
21
- # assertions if you prefer.
22
- config.expect_with :rspec do |expectations|
23
- # This option will default to `true` in RSpec 4. It makes the `description`
24
- # and `failure_message` of custom matchers include text for helper methods
25
- # defined using `chain`, e.g.:
26
- # be_bigger_than(2).and_smaller_than(4).description
27
- # # => "be bigger than 2 and smaller than 4"
28
- # ...rather than:
29
- # # => "be bigger than 2"
30
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
31
- end
32
-
33
- # rspec-mocks config goes here. You can use an alternate test double
34
- # library (such as bogus or mocha) by changing the `mock_with` option here.
35
- config.mock_with :rspec do |mocks|
36
- # Prevents you from mocking or stubbing a method that does not exist on
37
- # a real object. This is generally recommended, and will default to
38
- # `true` in RSpec 4.
39
- mocks.verify_partial_doubles = true
40
- end
41
-
42
- # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
43
- # have no way to turn it off -- the option exists only for backwards
44
- # compatibility in RSpec 3). It causes shared context metadata to be
45
- # inherited by the metadata hash of host groups and examples, rather than
46
- # triggering implicit auto-inclusion in groups with matching metadata.
47
- config.shared_context_metadata_behavior = :apply_to_host_groups
48
-
49
- # The settings below are suggested to provide a good initial experience
50
- # with RSpec, but feel free to customize to your heart's content.
51
- # # This allows you to limit a spec run to individual examples or groups
52
- # # you care about by tagging them with `:focus` metadata. When nothing
53
- # # is tagged with `:focus`, all examples get run. RSpec also provides
54
- # # aliases for `it`, `describe`, and `context` that include `:focus`
55
- # # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
56
- # config.filter_run_when_matching :focus
57
- #
58
- # # Allows RSpec to persist some state between runs in order to support
59
- # # the `--only-failures` and `--next-failure` CLI options. We recommend
60
- # # you configure your source control system to ignore this file.
61
- # config.example_status_persistence_file_path = "spec/examples.txt"
62
- #
63
- # # Limits the available syntax to the non-monkey patched syntax that is
64
- # # recommended. For more details, see:
65
- # # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
66
- # # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
67
- # # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
68
- # config.disable_monkey_patching!
69
- #
70
- # # This setting enables warnings. It's recommended, but in some cases may
71
- # # be too noisy due to issues in dependencies.
72
- # config.warnings = true
73
- #
74
- # # Many RSpec users commonly either run the entire suite or an individual
75
- # # file, and it's useful to allow more verbose output when running an
76
- # # individual spec file.
77
- # if config.files_to_run.one?
78
- # # Use the documentation formatter for detailed output,
79
- # # unless a formatter has already been configured
80
- # # (e.g. via a command-line flag).
81
- # config.default_formatter = "doc"
82
- # end
83
- #
84
- # # Print the 10 slowest examples and example groups at the
85
- # # end of the spec run, to help surface which specs are running
86
- # # particularly slow.
87
- # config.profile_examples = 10
88
- #
89
- # # Run specs in random order to surface order dependencies. If you find an
90
- # # order dependency and want to debug it, you can fix the order by providing
91
- # # the seed, which is printed after each run.
92
- # # --seed 1234
93
- # config.order = :random
94
- #
95
- # # Seed global randomization in this process using the `--seed` CLI option.
96
- # # Setting this allows you to use `--seed` to deterministically reproduce
97
- # # test failures related to randomization by passing the same `--seed` value
98
- # # as the one that triggered the failure.
99
- # Kernel.srand config.seed
100
- end
3
+ require 'eac_ruby_utils/rspec/default_setup'
4
+ ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  s.files = Dir['{lib}/**/*', 'Gemfile']
14
14
 
15
15
  s.add_dependency 'colorize', '~> 0.8.1'
16
- s.add_dependency 'eac_config', '~> 0.3'
17
- s.add_dependency 'eac_ruby_utils', '~> 0.67'
16
+ s.add_dependency 'eac_config', '~> 0.5', '>= 0.5.1'
17
+ s.add_dependency 'eac_ruby_utils', '~> 0.70'
18
18
 
19
- s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
19
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.3'
20
20
  end
@@ -21,8 +21,6 @@ module EacCli
21
21
  return sub_value_to_return if sub_entry.found?
22
22
  return nil unless options.required?
23
23
 
24
- puts "|#{sub_entry.path}|"
25
-
26
24
  input_value
27
25
  end
28
26
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacCli
4
- VERSION = '0.22.0'
4
+ VERSION = '0.22.2'
5
5
  end
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ::EacRubyGemSupport::Rspec.default.describe_rubocop
3
+ ::EacRubyUtils::Rspec.default_setup.describe_rubocop
@@ -1,103 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This file was generated by the `rspec --init` command. Conventionally, all
4
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
5
- # The generated `.rspec` file contains `--require spec_helper` which will cause
6
- # this file to always be loaded, without a need to explicitly require it in any
7
- # files.
8
- #
9
- # Given that it is always loaded, you are encouraged to keep this file as
10
- # light-weight as possible. Requiring heavyweight dependencies from this file
11
- # will add to the boot time of your test suite on EVERY test run, even for an
12
- # individual file that may not need all of that loaded. Instead, consider making
13
- # a separate helper file that requires the additional dependencies and performs
14
- # the additional setup, and require it from the spec files that actually need
15
- # it.
16
- #
17
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
18
- RSpec.configure do |config|
19
- # rspec-expectations config goes here. You can use an alternate
20
- # assertion/expectation library such as wrong or the stdlib/minitest
21
- # assertions if you prefer.
22
- config.expect_with :rspec do |expectations|
23
- # This option will default to `true` in RSpec 4. It makes the `description`
24
- # and `failure_message` of custom matchers include text for helper methods
25
- # defined using `chain`, e.g.:
26
- # be_bigger_than(2).and_smaller_than(4).description
27
- # # => "be bigger than 2 and smaller than 4"
28
- # ...rather than:
29
- # # => "be bigger than 2"
30
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
31
- end
32
-
33
- # rspec-mocks config goes here. You can use an alternate test double
34
- # library (such as bogus or mocha) by changing the `mock_with` option here.
35
- config.mock_with :rspec do |mocks|
36
- # Prevents you from mocking or stubbing a method that does not exist on
37
- # a real object. This is generally recommended, and will default to
38
- # `true` in RSpec 4.
39
- mocks.verify_partial_doubles = true
40
- end
41
-
42
- # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
43
- # have no way to turn it off -- the option exists only for backwards
44
- # compatibility in RSpec 3). It causes shared context metadata to be
45
- # inherited by the metadata hash of host groups and examples, rather than
46
- # triggering implicit auto-inclusion in groups with matching metadata.
47
- config.shared_context_metadata_behavior = :apply_to_host_groups
48
-
49
- # The settings below are suggested to provide a good initial experience
50
- # with RSpec, but feel free to customize to your heart's content.
51
- # # This allows you to limit a spec run to individual examples or groups
52
- # # you care about by tagging them with `:focus` metadata. When nothing
53
- # # is tagged with `:focus`, all examples get run. RSpec also provides
54
- # # aliases for `it`, `describe`, and `context` that include `:focus`
55
- # # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
56
- # config.filter_run_when_matching :focus
57
- #
58
- # # Allows RSpec to persist some state between runs in order to support
59
- # # the `--only-failures` and `--next-failure` CLI options. We recommend
60
- # # you configure your source control system to ignore this file.
61
- # config.example_status_persistence_file_path = "spec/examples.txt"
62
- #
63
- # # Limits the available syntax to the non-monkey patched syntax that is
64
- # # recommended. For more details, see:
65
- # # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
66
- # # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
67
- # # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
68
- # config.disable_monkey_patching!
69
- #
70
- # # This setting enables warnings. It's recommended, but in some cases may
71
- # # be too noisy due to issues in dependencies.
72
- # config.warnings = true
73
- #
74
- # # Many RSpec users commonly either run the entire suite or an individual
75
- # # file, and it's useful to allow more verbose output when running an
76
- # # individual spec file.
77
- # if config.files_to_run.one?
78
- # # Use the documentation formatter for detailed output,
79
- # # unless a formatter has already been configured
80
- # # (e.g. via a command-line flag).
81
- # config.default_formatter = "doc"
82
- # end
83
- #
84
- # # Print the 10 slowest examples and example groups at the
85
- # # end of the spec run, to help surface which specs are running
86
- # # particularly slow.
87
- # config.profile_examples = 10
88
- #
89
- # # Run specs in random order to surface order dependencies. If you find an
90
- # # order dependency and want to debug it, you can fix the order by providing
91
- # # the seed, which is printed after each run.
92
- # # --seed 1234
93
- # config.order = :random
94
- #
95
- # # Seed global randomization in this process using the `--seed` CLI option.
96
- # # Setting this allows you to use `--seed` to deterministically reproduce
97
- # # test failures related to randomization by passing the same `--seed` value
98
- # # as the one that triggered the failure.
99
- # Kernel.srand config.seed
100
-
101
- require 'eac_ruby_gem_support/rspec'
102
- ::EacRubyGemSupport::Rspec.setup(::File.expand_path('..', __dir__), config)
103
- end
3
+ require 'eac_ruby_utils/rspec/default_setup'
4
+ ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))