kafka_rest_proxy_client 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +69 -0
  4. data/README.md +129 -0
  5. data/Rakefile +8 -0
  6. data/bin/console +9 -0
  7. data/docs/Body.md +12 -0
  8. data/docs/InlineResponse200.md +10 -0
  9. data/docs/InlineResponse200Offsets.md +11 -0
  10. data/docs/Offset.md +11 -0
  11. data/docs/ProducerApi.md +58 -0
  12. data/docs/ProducerRequest.md +12 -0
  13. data/docs/ProducerResponse.md +10 -0
  14. data/docs/Record.md +10 -0
  15. data/docs/TopicstopicNameRecords.md +10 -0
  16. data/git_push.sh +55 -0
  17. data/kafka_rest_proxy_client.gemspec +33 -0
  18. data/lib/kafka_rest_proxy_client.rb +48 -0
  19. data/lib/kafka_rest_proxy_client/api/producer_api.rb +69 -0
  20. data/lib/kafka_rest_proxy_client/api_client.rb +364 -0
  21. data/lib/kafka_rest_proxy_client/api_error.rb +26 -0
  22. data/lib/kafka_rest_proxy_client/configuration.rb +184 -0
  23. data/lib/kafka_rest_proxy_client/models/body.rb +214 -0
  24. data/lib/kafka_rest_proxy_client/models/inline_response_200.rb +196 -0
  25. data/lib/kafka_rest_proxy_client/models/inline_response_200_offsets.rb +203 -0
  26. data/lib/kafka_rest_proxy_client/models/offset.rb +203 -0
  27. data/lib/kafka_rest_proxy_client/models/producer_request.rb +214 -0
  28. data/lib/kafka_rest_proxy_client/models/producer_response.rb +196 -0
  29. data/lib/kafka_rest_proxy_client/models/record.rb +194 -0
  30. data/lib/kafka_rest_proxy_client/models/topicstopic_name_records.rb +194 -0
  31. data/lib/kafka_rest_proxy_client/version.rb +3 -0
  32. data/spec/api/producer_api_spec.rb +47 -0
  33. data/spec/api_client_spec.rb +225 -0
  34. data/spec/configuration_spec.rb +41 -0
  35. data/spec/models/body_spec.rb +65 -0
  36. data/spec/models/inline_response_200_offsets_spec.rb +59 -0
  37. data/spec/models/inline_response_200_spec.rb +53 -0
  38. data/spec/models/offset_spec.rb +59 -0
  39. data/spec/models/producer_request_spec.rb +65 -0
  40. data/spec/models/producer_response_spec.rb +53 -0
  41. data/spec/models/record_spec.rb +53 -0
  42. data/spec/models/topicstopic_name_records_spec.rb +53 -0
  43. data/spec/spec_helper.rb +110 -0
  44. data/swagger.yml +170 -0
  45. metadata +279 -0
@@ -0,0 +1,53 @@
1
+ =begin
2
+ #Kafka REST Proxy API
3
+
4
+ #An initial draft of the [Kafka REST Proxy API](https://github.com/confluentinc/kafka-rest). ## Example JSON request ``` POST /topics/test HTTP/1.1 Host: kafkaproxy.example.com Content-Type: application/vnd.kafka.json.v2+json Accept: application/vnd.kafka.v2+json, application/vnd.kafka+json, application/json { \"records\": [ { \"key\": \"somekey\", \"value\": {\"foo\": \"bar\"} }, { \"value\": [ \"foo\", \"bar\" ], \"partition\": 1 }, { \"value\": 53.5 } ] } ``` ## Example JSON response ``` HTTP/1.1 200 OK Content-Type: application/vnd.kafka.v2+json { \"key_schema_id\": null, \"value_schema_id\": null, \"offsets\": [ { \"partition\": 2, \"offset\": 100 }, { \"partition\": 1, \"offset\": 101 }, { \"partition\": 2, \"offset\": 102 } ] } ```
5
+
6
+ OpenAPI spec version: 0.1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'spec_helper'
13
+ require 'json'
14
+ require 'date'
15
+
16
+ # Unit tests for KafkaProxyRestClient::InlineResponse200
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'InlineResponse200' do
20
+ before do
21
+ # run before each test
22
+ @instance = KafkaProxyRestClient::InlineResponse200.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of InlineResponse200' do
30
+ it 'should create an instact of InlineResponse200' do
31
+ expect(@instance).to be_instance_of(KafkaProxyRestClient::InlineResponse200)
32
+ end
33
+ end
34
+ describe 'test attribute "offsets"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "key_schema_id"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "value_schema_id"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ end
53
+
@@ -0,0 +1,59 @@
1
+ =begin
2
+ #Kafka REST Proxy API
3
+
4
+ #An initial draft of the [Kafka REST Proxy API](https://github.com/confluentinc/kafka-rest). ## Example JSON request ``` POST /topics/test HTTP/1.1 Host: kafkaproxy.example.com Content-Type: application/vnd.kafka.json.v2+json Accept: application/vnd.kafka.v2+json, application/vnd.kafka+json, application/json { \"records\": [ { \"key\": \"somekey\", \"value\": {\"foo\": \"bar\"} }, { \"value\": [ \"foo\", \"bar\" ], \"partition\": 1 }, { \"value\": 53.5 } ] } ``` ## Example JSON response ``` HTTP/1.1 200 OK Content-Type: application/vnd.kafka.v2+json { \"key_schema_id\": null, \"value_schema_id\": null, \"offsets\": [ { \"partition\": 2, \"offset\": 100 }, { \"partition\": 1, \"offset\": 101 }, { \"partition\": 2, \"offset\": 102 } ] } ```
5
+
6
+ OpenAPI spec version: 0.1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'spec_helper'
13
+ require 'json'
14
+ require 'date'
15
+
16
+ # Unit tests for KafkaProxyRestClient::Offset
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'Offset' do
20
+ before do
21
+ # run before each test
22
+ @instance = KafkaProxyRestClient::Offset.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of Offset' do
30
+ it 'should create an instact of Offset' do
31
+ expect(@instance).to be_instance_of(KafkaProxyRestClient::Offset)
32
+ end
33
+ end
34
+ describe 'test attribute "partition"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "offset"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "error_code"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "error"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ end
59
+
@@ -0,0 +1,65 @@
1
+ =begin
2
+ #Kafka REST Proxy API
3
+
4
+ #An initial draft of the [Kafka REST Proxy API](https://github.com/confluentinc/kafka-rest). ## Example JSON request ``` POST /topics/test HTTP/1.1 Host: kafkaproxy.example.com Content-Type: application/vnd.kafka.json.v2+json Accept: application/vnd.kafka.v2+json, application/vnd.kafka+json, application/json { \"records\": [ { \"key\": \"somekey\", \"value\": {\"foo\": \"bar\"} }, { \"value\": [ \"foo\", \"bar\" ], \"partition\": 1 }, { \"value\": 53.5 } ] } ``` ## Example JSON response ``` HTTP/1.1 200 OK Content-Type: application/vnd.kafka.v2+json { \"key_schema_id\": null, \"value_schema_id\": null, \"offsets\": [ { \"partition\": 2, \"offset\": 100 }, { \"partition\": 1, \"offset\": 101 }, { \"partition\": 2, \"offset\": 102 } ] } ```
5
+
6
+ OpenAPI spec version: 0.1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'spec_helper'
13
+ require 'json'
14
+ require 'date'
15
+
16
+ # Unit tests for KafkaProxyRestClient::ProducerRequest
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ProducerRequest' do
20
+ before do
21
+ # run before each test
22
+ @instance = KafkaProxyRestClient::ProducerRequest.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ProducerRequest' do
30
+ it 'should create an instact of ProducerRequest' do
31
+ expect(@instance).to be_instance_of(KafkaProxyRestClient::ProducerRequest)
32
+ end
33
+ end
34
+ describe 'test attribute "records"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "key_schema"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "key_schema_id"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "value_schema"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ describe 'test attribute "value_schema_id"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ end
65
+
@@ -0,0 +1,53 @@
1
+ =begin
2
+ #Kafka REST Proxy API
3
+
4
+ #An initial draft of the [Kafka REST Proxy API](https://github.com/confluentinc/kafka-rest). ## Example JSON request ``` POST /topics/test HTTP/1.1 Host: kafkaproxy.example.com Content-Type: application/vnd.kafka.json.v2+json Accept: application/vnd.kafka.v2+json, application/vnd.kafka+json, application/json { \"records\": [ { \"key\": \"somekey\", \"value\": {\"foo\": \"bar\"} }, { \"value\": [ \"foo\", \"bar\" ], \"partition\": 1 }, { \"value\": 53.5 } ] } ``` ## Example JSON response ``` HTTP/1.1 200 OK Content-Type: application/vnd.kafka.v2+json { \"key_schema_id\": null, \"value_schema_id\": null, \"offsets\": [ { \"partition\": 2, \"offset\": 100 }, { \"partition\": 1, \"offset\": 101 }, { \"partition\": 2, \"offset\": 102 } ] } ```
5
+
6
+ OpenAPI spec version: 0.1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'spec_helper'
13
+ require 'json'
14
+ require 'date'
15
+
16
+ # Unit tests for KafkaProxyRestClient::ProducerResponse
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ProducerResponse' do
20
+ before do
21
+ # run before each test
22
+ @instance = KafkaProxyRestClient::ProducerResponse.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ProducerResponse' do
30
+ it 'should create an instact of ProducerResponse' do
31
+ expect(@instance).to be_instance_of(KafkaProxyRestClient::ProducerResponse)
32
+ end
33
+ end
34
+ describe 'test attribute "offsets"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "key_schema_id"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "value_schema_id"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ end
53
+
@@ -0,0 +1,53 @@
1
+ =begin
2
+ #Kafka REST Proxy API
3
+
4
+ #An initial draft of the [Kafka REST Proxy API](https://github.com/confluentinc/kafka-rest). ## Example JSON request ``` POST /topics/test HTTP/1.1 Host: kafkaproxy.example.com Content-Type: application/vnd.kafka.json.v2+json Accept: application/vnd.kafka.v2+json, application/vnd.kafka+json, application/json { \"records\": [ { \"key\": \"somekey\", \"value\": {\"foo\": \"bar\"} }, { \"value\": [ \"foo\", \"bar\" ], \"partition\": 1 }, { \"value\": 53.5 } ] } ``` ## Example JSON response ``` HTTP/1.1 200 OK Content-Type: application/vnd.kafka.v2+json { \"key_schema_id\": null, \"value_schema_id\": null, \"offsets\": [ { \"partition\": 2, \"offset\": 100 }, { \"partition\": 1, \"offset\": 101 }, { \"partition\": 2, \"offset\": 102 } ] } ```
5
+
6
+ OpenAPI spec version: 0.1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'spec_helper'
13
+ require 'json'
14
+ require 'date'
15
+
16
+ # Unit tests for KafkaProxyRestClient::Record
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'Record' do
20
+ before do
21
+ # run before each test
22
+ @instance = KafkaProxyRestClient::Record.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of Record' do
30
+ it 'should create an instact of Record' do
31
+ expect(@instance).to be_instance_of(KafkaProxyRestClient::Record)
32
+ end
33
+ end
34
+ describe 'test attribute "key"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "value"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "partition"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ end
53
+
@@ -0,0 +1,53 @@
1
+ =begin
2
+ #Kafka REST Proxy API
3
+
4
+ #An initial draft of the [Kafka REST Proxy API](https://github.com/confluentinc/kafka-rest). ## Example JSON request ``` POST /topics/test HTTP/1.1 Host: kafkaproxy.example.com Content-Type: application/vnd.kafka.json.v2+json Accept: application/vnd.kafka.v2+json, application/vnd.kafka+json, application/json { \"records\": [ { \"key\": \"somekey\", \"value\": {\"foo\": \"bar\"} }, { \"value\": [ \"foo\", \"bar\" ], \"partition\": 1 }, { \"value\": 53.5 } ] } ``` ## Example JSON response ``` HTTP/1.1 200 OK Content-Type: application/vnd.kafka.v2+json { \"key_schema_id\": null, \"value_schema_id\": null, \"offsets\": [ { \"partition\": 2, \"offset\": 100 }, { \"partition\": 1, \"offset\": 101 }, { \"partition\": 2, \"offset\": 102 } ] } ```
5
+
6
+ OpenAPI spec version: 0.1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'spec_helper'
13
+ require 'json'
14
+ require 'date'
15
+
16
+ # Unit tests for KafkaProxyRestClient::TopicstopicNameRecords
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'TopicstopicNameRecords' do
20
+ before do
21
+ # run before each test
22
+ @instance = KafkaProxyRestClient::TopicstopicNameRecords.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of TopicstopicNameRecords' do
30
+ it 'should create an instact of TopicstopicNameRecords' do
31
+ expect(@instance).to be_instance_of(KafkaProxyRestClient::TopicstopicNameRecords)
32
+ end
33
+ end
34
+ describe 'test attribute "key"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "value"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "partition"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ end
53
+
@@ -0,0 +1,110 @@
1
+ =begin
2
+ #Kafka REST Proxy API
3
+
4
+ #An initial draft of the [Kafka REST Proxy API](https://github.com/confluentinc/kafka-rest). ## Example JSON request ``` POST /topics/test HTTP/1.1 Host: kafkaproxy.example.com Content-Type: application/vnd.kafka.json.v2+json Accept: application/vnd.kafka.v2+json, application/vnd.kafka+json, application/json { \"records\": [ { \"key\": \"somekey\", \"value\": {\"foo\": \"bar\"} }, { \"value\": [ \"foo\", \"bar\" ], \"partition\": 1 }, { \"value\": 53.5 } ] } ``` ## Example JSON response ``` HTTP/1.1 200 OK Content-Type: application/vnd.kafka.v2+json { \"key_schema_id\": null, \"value_schema_id\": null, \"offsets\": [ { \"partition\": 2, \"offset\": 100 }, { \"partition\": 1, \"offset\": 101 }, { \"partition\": 2, \"offset\": 102 } ] } ```
5
+
6
+ OpenAPI spec version: 0.1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ # load the gem
13
+ require 'kafka_rest_proxy_client'
14
+
15
+ # The following was generated by the `rspec --init` command. Conventionally, all
16
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
17
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
18
+ # this file to always be loaded, without a need to explicitly require it in any
19
+ # files.
20
+ #
21
+ # Given that it is always loaded, you are encouraged to keep this file as
22
+ # light-weight as possible. Requiring heavyweight dependencies from this file
23
+ # will add to the boot time of your test suite on EVERY test run, even for an
24
+ # individual file that may not need all of that loaded. Instead, consider making
25
+ # a separate helper file that requires the additional dependencies and performs
26
+ # the additional setup, and require it from the spec files that actually need
27
+ # it.
28
+ #
29
+ # The `.rspec` file also contains a few flags that are not defaults but that
30
+ # users commonly want.
31
+ #
32
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
33
+ RSpec.configure do |config|
34
+ # rspec-expectations config goes here. You can use an alternate
35
+ # assertion/expectation library such as wrong or the stdlib/minitest
36
+ # assertions if you prefer.
37
+ config.expect_with :rspec do |expectations|
38
+ # This option will default to `true` in RSpec 4. It makes the `description`
39
+ # and `failure_message` of custom matchers include text for helper methods
40
+ # defined using `chain`, e.g.:
41
+ # be_bigger_than(2).and_smaller_than(4).description
42
+ # # => "be bigger than 2 and smaller than 4"
43
+ # ...rather than:
44
+ # # => "be bigger than 2"
45
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
46
+ end
47
+
48
+ # rspec-mocks config goes here. You can use an alternate test double
49
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
50
+ config.mock_with :rspec do |mocks|
51
+ # Prevents you from mocking or stubbing a method that does not exist on
52
+ # a real object. This is generally recommended, and will default to
53
+ # `true` in RSpec 4.
54
+ mocks.verify_partial_doubles = true
55
+ end
56
+
57
+ # The settings below are suggested to provide a good initial experience
58
+ # with RSpec, but feel free to customize to your heart's content.
59
+ =begin
60
+ # These two settings work together to allow you to limit a spec run
61
+ # to individual examples or groups you care about by tagging them with
62
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
63
+ # get run.
64
+ config.filter_run :focus
65
+ config.run_all_when_everything_filtered = true
66
+
67
+ # Allows RSpec to persist some state between runs in order to support
68
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
69
+ # you configure your source control system to ignore this file.
70
+ config.example_status_persistence_file_path = "spec/examples.txt"
71
+
72
+ # Limits the available syntax to the non-monkey patched syntax that is
73
+ # recommended. For more details, see:
74
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
75
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
76
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
77
+ config.disable_monkey_patching!
78
+
79
+ # This setting enables warnings. It's recommended, but in some cases may
80
+ # be too noisy due to issues in dependencies.
81
+ config.warnings = true
82
+
83
+ # Many RSpec users commonly either run the entire suite or an individual
84
+ # file, and it's useful to allow more verbose output when running an
85
+ # individual spec file.
86
+ if config.files_to_run.one?
87
+ # Use the documentation formatter for detailed output,
88
+ # unless a formatter has already been configured
89
+ # (e.g. via a command-line flag).
90
+ config.default_formatter = 'doc'
91
+ end
92
+
93
+ # Print the 10 slowest examples and example groups at the
94
+ # end of the spec run, to help surface which specs are running
95
+ # particularly slow.
96
+ config.profile_examples = 10
97
+
98
+ # Run specs in random order to surface order dependencies. If you find an
99
+ # order dependency and want to debug it, you can fix the order by providing
100
+ # the seed, which is printed after each run.
101
+ # --seed 1234
102
+ config.order = :random
103
+
104
+ # Seed global randomization in this process using the `--seed` CLI option.
105
+ # Setting this allows you to use `--seed` to deterministically reproduce
106
+ # test failures related to randomization by passing the same `--seed` value
107
+ # as the one that triggered the failure.
108
+ Kernel.srand config.seed
109
+ =end
110
+ end