endoflife_date 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ =begin
2
+ #endoflife.date
3
+
4
+ #Documentation for the endoflife.date API. The API is currently in Alpha. Additional information about the API can be found on the [endoflife.date wiki](https://github.com/endoflife-date/endoflife.date/wiki)
5
+
6
+ The version of the OpenAPI document: 0.0.1
7
+ Contact: blah@cliffano.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.0.0
10
+
11
+ =end
12
+
13
+ module EndOfLifeDateApiClient
14
+ VERSION = '0.10.0'
15
+ end
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #endoflife.date
3
+
4
+ #Documentation for the endoflife.date API. The API is currently in Alpha. Additional information about the API can be found on the [endoflife.date wiki](https://github.com/endoflife-date/endoflife.date/wiki)
5
+
6
+ The version of the OpenAPI document: 0.0.1
7
+ Contact: blah@cliffano.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.0.0
10
+
11
+ =end
12
+
13
+ # Common files
14
+ require 'endoflife_date/api_client'
15
+ require 'endoflife_date/api_error'
16
+ require 'endoflife_date/version'
17
+ require 'endoflife_date/configuration'
18
+
19
+ # Models
20
+ require 'endoflife_date/models/cycle'
21
+
22
+ # APIs
23
+ require 'endoflife_date/api/default_api'
24
+
25
+ module EndOfLifeDateApiClient
26
+ class << self
27
+ # Customize default settings for the SDK using block.
28
+ # EndOfLifeDateApiClient.configure do |config|
29
+ # config.username = "xxx"
30
+ # config.password = "xxx"
31
+ # end
32
+ # If no block given, return the default Configuration object.
33
+ def configure
34
+ if block_given?
35
+ yield(Configuration.default)
36
+ else
37
+ Configuration.default
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,71 @@
1
+ =begin
2
+ #endoflife.date
3
+
4
+ #Documentation for the endoflife.date API. The API is currently in Alpha. Additional information about the API can be found on the [endoflife.date wiki](https://github.com/endoflife-date/endoflife.date/wiki)
5
+
6
+ The version of the OpenAPI document: 0.0.1
7
+ Contact: blah@cliffano.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.0.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for EndOfLifeDateApiClient::DefaultApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'DefaultApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = EndOfLifeDateApiClient::DefaultApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of DefaultApi' do
30
+ it 'should create an instance of DefaultApi' do
31
+ expect(@api_instance).to be_instance_of(EndOfLifeDateApiClient::DefaultApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_api_all_json
36
+ # All Products
37
+ # Return a list of all products. Each of these can be used for the other API endpoints.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Object]
40
+ describe 'get_api_all_json test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
+ end
44
+ end
45
+
46
+ # unit tests for get_api_product_cycle_json
47
+ # Single cycle details
48
+ # Gets details of a single cycle
49
+ # @param product Product URL as per the canonical URL on the endofife.date website
50
+ # @param cycle Release Cycle for which the details must be fetched
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [Cycle]
53
+ describe 'get_api_product_cycle_json test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
56
+ end
57
+ end
58
+
59
+ # unit tests for get_api_product_json
60
+ # Get All Details
61
+ # Get EoL dates of all cycles of a given product.
62
+ # @param product Product URL as per the canonical URL on the endofife.date website
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [Object]
65
+ describe 'get_api_product_json test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
68
+ end
69
+ end
70
+
71
+ end
@@ -0,0 +1,228 @@
1
+ =begin
2
+ #endoflife.date
3
+
4
+ #Documentation for the endoflife.date API. The API is currently in Alpha. Additional information about the API can be found on the [endoflife.date wiki](https://github.com/endoflife-date/endoflife.date/wiki)
5
+
6
+ The version of the OpenAPI document: 0.0.1
7
+ Contact: blah@cliffano.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.0.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+
15
+ describe EndOfLifeDateApiClient::ApiClient do
16
+ context 'initialization' do
17
+ context 'URL stuff' do
18
+ context 'host' do
19
+ it 'removes http from host' do
20
+ EndOfLifeDateApiClient.configure { |c| c.host = 'http://example.com' }
21
+ expect(EndOfLifeDateApiClient::Configuration.default.host).to eq('example.com')
22
+ end
23
+
24
+ it 'removes https from host' do
25
+ EndOfLifeDateApiClient.configure { |c| c.host = 'https://wookiee.com' }
26
+ expect(EndOfLifeDateApiClient::ApiClient.default.config.host).to eq('wookiee.com')
27
+ end
28
+
29
+ it 'removes trailing path from host' do
30
+ EndOfLifeDateApiClient.configure { |c| c.host = 'hobo.com/v4' }
31
+ expect(EndOfLifeDateApiClient::Configuration.default.host).to eq('hobo.com')
32
+ end
33
+ end
34
+
35
+ context 'base_path' do
36
+ it "prepends a slash to base_path" do
37
+ EndOfLifeDateApiClient.configure { |c| c.base_path = 'v4/dog' }
38
+ expect(EndOfLifeDateApiClient::Configuration.default.base_path).to eq('/v4/dog')
39
+ end
40
+
41
+ it "doesn't prepend a slash if one is already there" do
42
+ EndOfLifeDateApiClient.configure { |c| c.base_path = '/v4/dog' }
43
+ expect(EndOfLifeDateApiClient::Configuration.default.base_path).to eq('/v4/dog')
44
+ end
45
+
46
+ it "ends up as a blank string if nil" do
47
+ EndOfLifeDateApiClient.configure { |c| c.base_path = nil }
48
+ expect(EndOfLifeDateApiClient::Configuration.default.base_path).to eq('')
49
+ end
50
+ end
51
+ end
52
+ end
53
+
54
+ describe 'params_encoding in #build_request' do
55
+ let(:config) { EndOfLifeDateApiClient::Configuration.new }
56
+ let(:api_client) { EndOfLifeDateApiClient::ApiClient.new(config) }
57
+
58
+ it 'defaults to nil' do
59
+ expect(EndOfLifeDateApiClient::Configuration.default.params_encoding).to eq(nil)
60
+ expect(config.params_encoding).to eq(nil)
61
+
62
+ request = api_client.build_request(:get, '/test')
63
+ expect(request.options[:params_encoding]).to eq(nil)
64
+ end
65
+
66
+ it 'can be customized' do
67
+ config.params_encoding = :multi
68
+ request = api_client.build_request(:get, '/test')
69
+ expect(request.options[:params_encoding]).to eq(:multi)
70
+ end
71
+ end
72
+
73
+ describe 'timeout in #build_request' do
74
+ let(:config) { EndOfLifeDateApiClient::Configuration.new }
75
+ let(:api_client) { EndOfLifeDateApiClient::ApiClient.new(config) }
76
+
77
+ it 'defaults to 0' do
78
+ expect(EndOfLifeDateApiClient::Configuration.default.timeout).to eq(0)
79
+ expect(config.timeout).to eq(0)
80
+
81
+ request = api_client.build_request(:get, '/test')
82
+ expect(request.options[:timeout]).to eq(0)
83
+ end
84
+
85
+ it 'can be customized' do
86
+ config.timeout = 100
87
+ request = api_client.build_request(:get, '/test')
88
+ expect(request.options[:timeout]).to eq(100)
89
+ end
90
+ end
91
+
92
+
93
+
94
+ describe '#deserialize' do
95
+ it "handles Array<Integer>" do
96
+ api_client = EndOfLifeDateApiClient::ApiClient.new
97
+ headers = { 'Content-Type' => 'application/json' }
98
+ response = double('response', headers: headers, body: '[12, 34]')
99
+ data = api_client.deserialize(response, 'Array<Integer>')
100
+ expect(data).to be_instance_of(Array)
101
+ expect(data).to eq([12, 34])
102
+ end
103
+
104
+ it 'handles Array<Array<Integer>>' do
105
+ api_client = EndOfLifeDateApiClient::ApiClient.new
106
+ headers = { 'Content-Type' => 'application/json' }
107
+ response = double('response', headers: headers, body: '[[12, 34], [56]]')
108
+ data = api_client.deserialize(response, 'Array<Array<Integer>>')
109
+ expect(data).to be_instance_of(Array)
110
+ expect(data).to eq([[12, 34], [56]])
111
+ end
112
+
113
+ it 'handles Hash<String, String>' do
114
+ api_client = EndOfLifeDateApiClient::ApiClient.new
115
+ headers = { 'Content-Type' => 'application/json' }
116
+ response = double('response', headers: headers, body: '{"message": "Hello"}')
117
+ data = api_client.deserialize(response, 'Hash<String, String>')
118
+ expect(data).to be_instance_of(Hash)
119
+ expect(data).to eq(:message => 'Hello')
120
+ end
121
+ end
122
+
123
+ describe "#object_to_hash" do
124
+ it 'ignores nils and includes empty arrays' do
125
+ # uncomment below to test object_to_hash for model
126
+ # api_client = EndOfLifeDateApiClient::ApiClient.new
127
+ # _model = EndOfLifeDateApiClient::ModelName.new
128
+ # update the model attribute below
129
+ # _model.id = 1
130
+ # update the expected value (hash) below
131
+ # expected = {id: 1, name: '', tags: []}
132
+ # expect(api_client.object_to_hash(_model)).to eq(expected)
133
+ end
134
+ end
135
+
136
+ describe '#build_collection_param' do
137
+ let(:param) { ['aa', 'bb', 'cc'] }
138
+ let(:api_client) { EndOfLifeDateApiClient::ApiClient.new }
139
+
140
+ it 'works for csv' do
141
+ expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
142
+ end
143
+
144
+ it 'works for ssv' do
145
+ expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
146
+ end
147
+
148
+ it 'works for tsv' do
149
+ expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
150
+ end
151
+
152
+ it 'works for pipes' do
153
+ expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
154
+ end
155
+
156
+ it 'works for multi' do
157
+ expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
158
+ end
159
+
160
+ it 'fails for invalid collection format' do
161
+ expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
162
+ end
163
+ end
164
+
165
+ describe '#json_mime?' do
166
+ let(:api_client) { EndOfLifeDateApiClient::ApiClient.new }
167
+
168
+ it 'works' do
169
+ expect(api_client.json_mime?(nil)).to eq false
170
+ expect(api_client.json_mime?('')).to eq false
171
+
172
+ expect(api_client.json_mime?('application/json')).to eq true
173
+ expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
174
+ expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
175
+
176
+ expect(api_client.json_mime?('application/xml')).to eq false
177
+ expect(api_client.json_mime?('text/plain')).to eq false
178
+ expect(api_client.json_mime?('application/jsonp')).to eq false
179
+ end
180
+ end
181
+
182
+ describe '#select_header_accept' do
183
+ let(:api_client) { EndOfLifeDateApiClient::ApiClient.new }
184
+
185
+ it 'works' do
186
+ expect(api_client.select_header_accept(nil)).to be_nil
187
+ expect(api_client.select_header_accept([])).to be_nil
188
+
189
+ expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
190
+ expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
191
+ expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
192
+
193
+ expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
194
+ expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
195
+ end
196
+ end
197
+
198
+ describe '#select_header_content_type' do
199
+ let(:api_client) { EndOfLifeDateApiClient::ApiClient.new }
200
+
201
+ it 'works' do
202
+ expect(api_client.select_header_content_type(nil)).to be_nil
203
+ expect(api_client.select_header_content_type([])).to be_nil
204
+
205
+ expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
206
+ expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
207
+ expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
208
+ expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
209
+ expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
210
+ end
211
+ end
212
+
213
+ describe '#sanitize_filename' do
214
+ let(:api_client) { EndOfLifeDateApiClient::ApiClient.new }
215
+
216
+ it 'works' do
217
+ expect(api_client.sanitize_filename('sun')).to eq('sun')
218
+ expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
219
+ expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
220
+ expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
221
+ expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
222
+ expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
223
+ expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
224
+ expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
225
+ expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
226
+ end
227
+ end
228
+ end
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #endoflife.date
3
+
4
+ #Documentation for the endoflife.date API. The API is currently in Alpha. Additional information about the API can be found on the [endoflife.date wiki](https://github.com/endoflife-date/endoflife.date/wiki)
5
+
6
+ The version of the OpenAPI document: 0.0.1
7
+ Contact: blah@cliffano.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.0.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+
15
+ describe EndOfLifeDateApiClient::Configuration do
16
+ let(:config) { EndOfLifeDateApiClient::Configuration.default }
17
+
18
+ before(:each) do
19
+ # uncomment below to setup host and base_path
20
+ # require 'URI'
21
+ # uri = URI.parse("https://endoflife.date")
22
+ # EndOfLifeDateApiClient.configure do |c|
23
+ # c.host = uri.host
24
+ # c.base_path = uri.path
25
+ # end
26
+ end
27
+
28
+ describe '#base_url' do
29
+ it 'should have the default value' do
30
+ # uncomment below to test default value of the base path
31
+ # expect(config.base_url).to eq("https://endoflife.date")
32
+ end
33
+
34
+ it 'should remove trailing slashes' do
35
+ [nil, '', '/', '//'].each do |base_path|
36
+ config.base_path = base_path
37
+ # uncomment below to test trailing slashes
38
+ # expect(config.base_url).to eq("https://endoflife.date")
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,76 @@
1
+ =begin
2
+ #endoflife.date
3
+
4
+ #Documentation for the endoflife.date API. The API is currently in Alpha. Additional information about the API can be found on the [endoflife.date wiki](https://github.com/endoflife-date/endoflife.date/wiki)
5
+
6
+ The version of the OpenAPI document: 0.0.1
7
+ Contact: blah@cliffano.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.0.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for EndOfLifeDateApiClient::Cycle
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe EndOfLifeDateApiClient::Cycle do
21
+ let(:instance) { EndOfLifeDateApiClient::Cycle.new }
22
+
23
+ describe 'test an instance of Cycle' do
24
+ it 'should create an instance of Cycle' do
25
+ expect(instance).to be_instance_of(EndOfLifeDateApiClient::Cycle)
26
+ end
27
+ end
28
+ describe 'test attribute "cycle"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "release_date"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "eol"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "latest"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "link"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
+ end
56
+ end
57
+
58
+ describe 'test attribute "lts"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
61
+ end
62
+ end
63
+
64
+ describe 'test attribute "support"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
67
+ end
68
+ end
69
+
70
+ describe 'test attribute "discontinued"' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
73
+ end
74
+ end
75
+
76
+ end
@@ -0,0 +1,111 @@
1
+ =begin
2
+ #endoflife.date
3
+
4
+ #Documentation for the endoflife.date API. The API is currently in Alpha. Additional information about the API can be found on the [endoflife.date wiki](https://github.com/endoflife-date/endoflife.date/wiki)
5
+
6
+ The version of the OpenAPI document: 0.0.1
7
+ Contact: blah@cliffano.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.0.0
10
+
11
+ =end
12
+
13
+ # load the gem
14
+ require 'endoflife_date'
15
+
16
+ # The following was generated by the `rspec --init` command. Conventionally, all
17
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
18
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
19
+ # this file to always be loaded, without a need to explicitly require it in any
20
+ # files.
21
+ #
22
+ # Given that it is always loaded, you are encouraged to keep this file as
23
+ # light-weight as possible. Requiring heavyweight dependencies from this file
24
+ # will add to the boot time of your test suite on EVERY test run, even for an
25
+ # individual file that may not need all of that loaded. Instead, consider making
26
+ # a separate helper file that requires the additional dependencies and performs
27
+ # the additional setup, and require it from the spec files that actually need
28
+ # it.
29
+ #
30
+ # The `.rspec` file also contains a few flags that are not defaults but that
31
+ # users commonly want.
32
+ #
33
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
34
+ RSpec.configure do |config|
35
+ # rspec-expectations config goes here. You can use an alternate
36
+ # assertion/expectation library such as wrong or the stdlib/minitest
37
+ # assertions if you prefer.
38
+ config.expect_with :rspec do |expectations|
39
+ # This option will default to `true` in RSpec 4. It makes the `description`
40
+ # and `failure_message` of custom matchers include text for helper methods
41
+ # defined using `chain`, e.g.:
42
+ # be_bigger_than(2).and_smaller_than(4).description
43
+ # # => "be bigger than 2 and smaller than 4"
44
+ # ...rather than:
45
+ # # => "be bigger than 2"
46
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
47
+ end
48
+
49
+ # rspec-mocks config goes here. You can use an alternate test double
50
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
51
+ config.mock_with :rspec do |mocks|
52
+ # Prevents you from mocking or stubbing a method that does not exist on
53
+ # a real object. This is generally recommended, and will default to
54
+ # `true` in RSpec 4.
55
+ mocks.verify_partial_doubles = true
56
+ end
57
+
58
+ # The settings below are suggested to provide a good initial experience
59
+ # with RSpec, but feel free to customize to your heart's content.
60
+ =begin
61
+ # These two settings work together to allow you to limit a spec run
62
+ # to individual examples or groups you care about by tagging them with
63
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
64
+ # get run.
65
+ config.filter_run :focus
66
+ config.run_all_when_everything_filtered = true
67
+
68
+ # Allows RSpec to persist some state between runs in order to support
69
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
70
+ # you configure your source control system to ignore this file.
71
+ config.example_status_persistence_file_path = "spec/examples.txt"
72
+
73
+ # Limits the available syntax to the non-monkey patched syntax that is
74
+ # recommended. For more details, see:
75
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
76
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
77
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
78
+ config.disable_monkey_patching!
79
+
80
+ # This setting enables warnings. It's recommended, but in some cases may
81
+ # be too noisy due to issues in dependencies.
82
+ config.warnings = true
83
+
84
+ # Many RSpec users commonly either run the entire suite or an individual
85
+ # file, and it's useful to allow more verbose output when running an
86
+ # individual spec file.
87
+ if config.files_to_run.one?
88
+ # Use the documentation formatter for detailed output,
89
+ # unless a formatter has already been configured
90
+ # (e.g. via a command-line flag).
91
+ config.default_formatter = 'doc'
92
+ end
93
+
94
+ # Print the 10 slowest examples and example groups at the
95
+ # end of the spec run, to help surface which specs are running
96
+ # particularly slow.
97
+ config.profile_examples = 10
98
+
99
+ # Run specs in random order to surface order dependencies. If you find an
100
+ # order dependency and want to debug it, you can fix the order by providing
101
+ # the seed, which is printed after each run.
102
+ # --seed 1234
103
+ config.order = :random
104
+
105
+ # Seed global randomization in this process using the `--seed` CLI option.
106
+ # Setting this allows you to use `--seed` to deterministically reproduce
107
+ # test failures related to randomization by passing the same `--seed` value
108
+ # as the one that triggered the failure.
109
+ Kernel.srand config.seed
110
+ =end
111
+ end