committee-minitest-rails 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -20
- data/lib/committee/coverage/report.rb +1 -1
- data/lib/committee/minitest/rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea009dfc20d8f22f4f196ccf32b1dd87d91e1ec511fbc12518277f5a03987d2b
|
4
|
+
data.tar.gz: 70209e20066e718cd86d06ebb763e8aaf9886520ae39f0242ac8bdd47b082cb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6aef63ac4ad92561d7faba546ed53842d2b2ce6da6861cc4aeb4c9929b8efb7a06ff61650e248690f2b3079c62850f94f6123fa3bc298ab56aeb237266f9d2b
|
7
|
+
data.tar.gz: b6fb1439e3f5bb9b77ae45db5c2f645f3ef38140db4cec91c673b316c1e12b639f192b8294002f0cfec36f04803481215f490ac8690decc7758718dced31901d
|
data/README.md
CHANGED
@@ -1,30 +1,20 @@
|
|
1
1
|
# Committee::Minitest::Rails
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/committee/minitest/rails`. To experiment with that code, run `bin/console` for an interactive prompt.
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
10
|
-
|
11
|
-
Install the gem and add to the application's Gemfile by executing:
|
12
|
-
|
13
|
-
$ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
14
|
-
|
15
|
-
If bundler is not being used to manage dependencies, install the gem by executing:
|
16
|
-
|
17
|
-
$ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
3
|
+
Mintest plugin to generate Open API Spec coverage with Committee and Rails.
|
18
4
|
|
19
5
|
## Usage
|
20
6
|
|
21
|
-
|
22
|
-
|
23
|
-
## Development
|
7
|
+
`test_helper.rb`
|
24
8
|
|
25
|
-
|
9
|
+
```ruby
|
10
|
+
Committee::Minitest::Rails.schema_path = "path-to-spec.yml"
|
11
|
+
# optional
|
12
|
+
Committee::Minitest::Rails.path_filter = "api"
|
26
13
|
|
27
|
-
|
14
|
+
class ActionDispatch::IntegrationTest
|
15
|
+
include Committee::Minitest::Rails::TestMethods
|
16
|
+
end
|
17
|
+
```
|
28
18
|
|
29
19
|
## Contributing
|
30
20
|
|
@@ -17,7 +17,7 @@ module Committee
|
|
17
17
|
|
18
18
|
report[:responses]
|
19
19
|
.select { |response| path_filter.nil? || path_filter.match?(response[:path]) }
|
20
|
-
.sort_by { |response| response[:path] }
|
20
|
+
.sort_by { |response| [response[:path], response[:method], response[:status] ]}
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|