diff --git a/lib/rspec_api_documentation.rb b/lib/rspec_api_documentation.rb index 5986aadb..a15e6018 100644 --- a/lib/rspec_api_documentation.rb +++ b/lib/rspec_api_documentation.rb @@ -1,7 +1,9 @@ require 'active_support' require 'active_support/inflector' +require 'active_support/core_ext/array/extract_options' require 'active_support/core_ext/hash/conversions' require 'active_support/core_ext/hash/deep_merge' +require 'active_support/core_ext/hash/keys' require 'cgi' require 'json' diff --git a/rspec_api_documentation.gemspec b/rspec_api_documentation.gemspec index 69aa9700..978b3bf0 100644 --- a/rspec_api_documentation.gemspec +++ b/rspec_api_documentation.gemspec @@ -28,7 +28,7 @@ Gem::Specification.new do |s| s.add_development_dependency "rack-oauth2", "~> 1.12.0" s.add_development_dependency "webmock", "~> 3.23.0" s.add_development_dependency "rspec-its", "~> 1.3.0" - s.add_development_dependency "faraday", "~> 0.9.2" + s.add_development_dependency "faraday", "~> 1.0.0" s.add_development_dependency "nokogiri", "~> 1.8.4" s.add_development_dependency "yard", "~> 0.9.15" s.add_development_dependency "inch", "~> 0.8.0" diff --git a/spec/views/api_blueprint_index_spec.rb b/spec/views/api_blueprint_index_spec.rb index 1d526597..e923abf2 100644 --- a/spec/views/api_blueprint_index_spec.rb +++ b/spec/views/api_blueprint_index_spec.rb @@ -142,7 +142,7 @@ properties_description: "required, string" }, { name: "option", - description: nil, + description: 'Option', properties_description: 'optional' }] expect(post_route_with_optionals[:has_attributes?]).to eq false @@ -158,7 +158,7 @@ expect(posts_route[:attributes]).to eq [{ required: false, name: "description", - description: nil, + description: 'Description', properties_description: "optional" }] end