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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: faab30b61f2892d598568e3c3c8abb59972086807f79fca4f9857c55ad5bb19e
4
- data.tar.gz: d6bb5ea070d165849d6700c13ccb01cf8b8ce83184c7413d5755ae33b4f07a92
3
+ metadata.gz: ea009dfc20d8f22f4f196ccf32b1dd87d91e1ec511fbc12518277f5a03987d2b
4
+ data.tar.gz: 70209e20066e718cd86d06ebb763e8aaf9886520ae39f0242ac8bdd47b082cb8
5
5
  SHA512:
6
- metadata.gz: c7c38ef14264613355c0d7d815caa4093dbc061937967d603b6ff4862a3e87bc4d5d15e666229bff404a4dcc10e5f80d6263aeefd7655d974ab2f1a9cfae70b5
7
- data.tar.gz: caefccc65dd3d742b59b0e05926d89e4eba39f3b031bc17ee6125ceabfe04492d67586f42ddbc8ec00e4518f55f0ce6243e2478a38d6f48d83a4932873d42353
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
- TODO: Delete this and the text below, and describe your gem
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
- TODO: Write usage instructions here
22
-
23
- ## Development
7
+ `test_helper.rb`
24
8
 
25
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
9
+ ```ruby
10
+ Committee::Minitest::Rails.schema_path = "path-to-spec.yml"
11
+ # optional
12
+ Committee::Minitest::Rails.path_filter = "api"
26
13
 
27
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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
 
@@ -3,7 +3,7 @@
3
3
  module Committee
4
4
  module Minitest
5
5
  module Rails
6
- VERSION = "0.1.0"
6
+ VERSION = "0.2.0"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: committee-minitest-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Pigeon