Skip to content

Commit de66477

Browse files
committed
clean comments
1 parent f1f0075 commit de66477

1 file changed

Lines changed: 0 additions & 88 deletions

File tree

spec/spec_helper.rb

Lines changed: 0 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
require 'fiddle'
22
require 'fiddle/import'
33

4-
# This file was generated by the `rspec --init` command. Conventionally, all
5-
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
6-
# The generated `.rspec` file contains `--require spec_helper` which will cause
7-
# this file to always be loaded, without a need to explicitly require it in any
8-
# files.
9-
#
10-
# Given that it is always loaded, you are encouraged to keep this file as
11-
# light-weight as possible. Requiring heavyweight dependencies from this file
12-
# will add to the boot time of your test suite on EVERY test run, even for an
13-
# individual file that may not need all of that loaded. Instead, consider making
14-
# a separate helper file that requires the additional dependencies and performs
15-
# the additional setup, and require it from the spec files that actually need
16-
# it.
17-
#
18-
# See https://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
19-
204
LibPath = File.expand_path(/darwin/ =~ RUBY_PLATFORM ?
215
'./cmake-build-debug/libsigprintf_test.dylib' :
226
'./cmake-build-debug/libsigprintf_test.so')
@@ -46,85 +30,13 @@ module SigString
4630
end
4731

4832
RSpec.configure do |config|
49-
# rspec-expectations config goes here. You can use an alternate
50-
# assertion/expectation library such as wrong or the stdlib/minitest
51-
# assertions if you prefer.
5233
config.expect_with :rspec do |expectations|
53-
# This option will default to `true` in RSpec 4. It makes the `description`
54-
# and `failure_message` of custom matchers include text for helper methods
55-
# defined using `chain`, e.g.:
56-
# be_bigger_than(2).and_smaller_than(4).description
57-
# # => "be bigger than 2 and smaller than 4"
58-
# ...rather than:
59-
# # => "be bigger than 2"
6034
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
6135
end
6236

63-
# rspec-mocks config goes here. You can use an alternate test double
64-
# library (such as bogus or mocha) by changing the `mock_with` option here.
6537
config.mock_with :rspec do |mocks|
66-
# Prevents you from mocking or stubbing a method that does not exist on
67-
# a real object. This is generally recommended, and will default to
68-
# `true` in RSpec 4.
6938
mocks.verify_partial_doubles = true
7039
end
7140

72-
# This option will default to `:apply_to_host_groups` in RSpec 4 (and will
73-
# have no way to turn it off -- the option exists only for backwards
74-
# compatibility in RSpec 3). It causes shared context metadata to be
75-
# inherited by the metadata hash of host groups and examples, rather than
76-
# triggering implicit auto-inclusion in groups with matching metadata.
7741
config.shared_context_metadata_behavior = :apply_to_host_groups
78-
79-
# The settings below are suggested to provide a good initial experience
80-
# with RSpec, but feel free to customize to your heart's content.
81-
=begin
82-
# This allows you to limit a spec run to individual examples or groups
83-
# you care about by tagging them with `:focus` metadata. When nothing
84-
# is tagged with `:focus`, all examples get run. RSpec also provides
85-
# aliases for `it`, `describe`, and `context` that include `:focus`
86-
# metadata: `fit`, `fdescribe` and `fcontext`, respectively.
87-
config.filter_run_when_matching :focus
88-
89-
# Allows RSpec to persist some state between runs in order to support
90-
# the `--only-failures` and `--next-failure` CLI options. We recommend
91-
# you configure your source control system to ignore this file.
92-
config.example_status_persistence_file_path = "spec/examples.txt"
93-
94-
# Limits the available syntax to the non-monkey patched syntax that is
95-
# recommended. For more details, see:
96-
# https://rspec.info/features/3-12/rspec-core/configuration/zero-monkey-patching-mode/
97-
config.disable_monkey_patching!
98-
99-
# This setting enables warnings. It's recommended, but in some cases may
100-
# be too noisy due to issues in dependencies.
101-
config.warnings = true
102-
103-
# Many RSpec users commonly either run the entire suite or an individual
104-
# file, and it's useful to allow more verbose output when running an
105-
# individual spec file.
106-
if config.files_to_run.one?
107-
# Use the documentation formatter for detailed output,
108-
# unless a formatter has already been configured
109-
# (e.g. via a command-line flag).
110-
config.default_formatter = "doc"
111-
end
112-
113-
# Print the 10 slowest examples and example groups at the
114-
# end of the spec run, to help surface which specs are running
115-
# particularly slow.
116-
config.profile_examples = 10
117-
118-
# Run specs in random order to surface order dependencies. If you find an
119-
# order dependency and want to debug it, you can fix the order by providing
120-
# the seed, which is printed after each run.
121-
# --seed 1234
122-
config.order = :random
123-
124-
# Seed global randomization in this process using the `--seed` CLI option.
125-
# Setting this allows you to use `--seed` to deterministically reproduce
126-
# test failures related to randomization by passing the same `--seed` value
127-
# as the one that triggered the failure.
128-
Kernel.srand config.seed
129-
=end
13042
end

0 commit comments

Comments
 (0)