From 799fc70d3aecfaa0107c7dc41bb85363b184acdf Mon Sep 17 00:00:00 2001 From: goutham Date: Sun, 20 May 2018 18:22:06 +0300 Subject: [PATCH] Add alternative way to load gem for optimization Most projects don't load rspec in production mode. So makes sense to add it to guide. --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 63ed64a..9dc6b37 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,19 @@ Once you have an API that can describe itself in Swagger, you've opened the trea ```ruby gem 'rswag' ``` + or if you like to avoid loading rspec in other bundler groups. + + ```ruby + # Gemfile + gem 'rswag-api' + gem 'rswag-ui' + + groups :test do + gem 'rspec-rails' + gem 'rswag-specs' + end + ``` + 2. Run the install generator